Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.Machines.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 238.9 MB, free: 4.77 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 188.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03333/0.03333, allocations: 8.802 MB / 348.1 MB, free: 4.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001443, allocations: 77 kB / 410.5 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0764/0.07786, allocations: 51.57 MB / 462.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestSingleLayer12over12): time 0.002181/0.08007, allocations: 1.304 MB / 463.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.08174, allocations: 1.16 MB / 464.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.927e-05/0.08178, allocations: 0 / 464.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003141/0.0821, allocations: 79.75 kB / 464.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007274/0.08284, allocations: 354.9 kB / 465 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.885e-06/0.08286, allocations: 0 / 465 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001346/0.08421, allocations: 0.9713 MB / 465.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.042e-05/0.08425, allocations: 4 kB / 465.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.568e-05/0.08427, allocations: 11.94 kB / 466 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.698e-05/0.08432, allocations: 19.86 kB / 466 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.428e-06/0.08433, allocations: 0 / 466 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.08445, allocations: 35.92 kB / 466 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.573e-05/0.08451, allocations: 23.95 kB / 466 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.132e-05/0.08455, allocations: 27.75 kB / 466.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.08469, allocations: 75.97 kB / 466.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.0847, allocations: 0 / 466.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.0847, allocations: 0 / 466.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.08471, allocations: 0 / 466.1 MB, free: 10.71 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003177/0.08503, allocations: 387 kB / 466.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.08507, allocations: 15.97 kB / 466.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.253e-05/0.08513, allocations: 106 kB / 466.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003381/0.08547, allocations: 104.1 kB / 466.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.08584, allocations: 359.9 kB / 467.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.693e-05/0.08589, allocations: 154.9 kB / 467.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.08594, allocations: 154.9 kB / 467.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.894e-05/0.086, allocations: 105.1 kB / 467.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.08603, allocations: 75.28 kB / 467.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.878e-05/0.08607, allocations: 154.5 kB / 467.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.245e-05/0.08612, allocations: 150.6 kB / 467.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.787e-05/0.08617, allocations: 154.6 kB / 468 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002386/0.08641, allocations: 465.9 kB / 468.5 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.727e-05/0.08648, allocations: 169.1 kB / 468.6 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.125e-05/0.08652, allocations: 80.14 kB / 468.7 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.08655, allocations: 83.22 kB / 468.8 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.08659, allocations: 113.8 kB / 468.9 MB, free: 7.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 8.21e-07/0.08659, allocations: 0 / 468.9 MB, free: 7.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.717e-05/0.08666, allocations: 37.61 kB / 468.9 MB, free: 7.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.08671, allocations: 126.7 kB / 469.1 MB, free: 7.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.08686, allocations: 172.5 kB / 469.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/0.08687, allocations: 25.7 kB / 469.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.571e-05/0.08693, allocations: 104.1 kB / 469.4 MB, free: 7.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.263e-06/0.08693, allocations: 0 / 469.4 MB, free: 7.254 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.743e-05/0.08696, allocations: 13.72 kB / 469.4 MB, free: 7.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.456e-05/0.08706, allocations: 318.8 kB / 469.7 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.556e-06/0.08707, allocations: 0 / 469.7 MB, free: 6.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.829e-06/0.08708, allocations: 7.938 kB / 469.7 MB, free: 6.906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.026e-05/0.0871, allocations: 75.28 kB / 469.8 MB, free: 6.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.753e-05/0.08714, allocations: 79.28 kB / 469.8 MB, free: 6.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.21e-05/0.08719, allocations: 41.45 kB / 469.9 MB, free: 6.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.08723, allocations: 83.28 kB / 470 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/0.08726, allocations: 79.28 kB / 470 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.822e-05/0.08732, allocations: 158.4 kB / 470.2 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.989e-05/0.08735, allocations: 75.28 kB / 470.3 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.271e-05/0.08741, allocations: 158.5 kB / 470.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.304e-05/0.08747, allocations: 83.28 kB / 470.5 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/0.08751, allocations: 79.22 kB / 470.6 MB, free: 6 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001128/0.08763, allocations: 280.3 kB / 470.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.467e-05/0.08769, allocations: 116.9 kB / 471 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.142e-05/0.08774, allocations: 117.5 kB / 471.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.049e-05/0.08781, allocations: 184.2 kB / 471.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.753e-05/0.08786, allocations: 176.3 kB / 471.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.099e-05/0.08793, allocations: 184.2 kB / 471.6 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002258/0.08816, allocations: 421.2 kB / 472 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.555e-05/0.0882, allocations: 101 kB / 472.1 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.378e-05/0.08824, allocations: 116.9 kB / 472.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.362e-05/0.0883, allocations: 180.3 kB / 472.4 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.877e-05/0.08836, allocations: 188.2 kB / 472.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.601e-05/0.08841, allocations: 176.3 kB / 472.8 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.473e-05/0.08847, allocations: 176.3 kB / 472.9 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001162/0.08859, allocations: 315.7 kB / 473.2 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.08867, allocations: 193.9 kB / 473.4 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.156e-05/0.08873, allocations: 180.3 kB / 473.6 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.257e-05/0.08881, allocations: 101 kB / 473.7 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.313e-05/0.08887, allocations: 188.2 kB / 473.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.264e-05/0.08891, allocations: 101 kB / 474 MB, free: 2.355 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.896e-05/0.08899, allocations: 131.9 kB / 474.1 MB, free: 2.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.089, allocations: 0 / 474.1 MB, free: 2.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.08925, allocations: 4 kB / 474.1 MB, free: 2.223 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003408/0.0896, allocations: 0.8164 MB / 474.9 MB, free: 1.375 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 2.721e-05/0.08964, allocations: 4 kB / 474.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.08964, allocations: 0 / 474.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.062e-06/0.08965, allocations: 0 / 474.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004295/0.09008, allocations: 0.5341 MB / 475.5 MB, free: 0.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.09132, allocations: 1.82 MB / 477.3 MB, free: 14.94 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.09156, allocations: 0.6949 MB / 478 MB, free: 14.22 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.465e-05/0.09161, allocations: 11.97 kB / 478 MB, free: 14.21 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.205e-05/0.09164, allocations: 23.44 kB / 478 MB, free: 14.19 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09165, allocations: 0 / 478 MB, free: 14.19 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01028/0.1019, allocations: 1.69 MB / 479.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002126/0.1022, allocations: 202.3 kB / 479.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.549/1.651, allocations: 3.5 kB / 479.9 MB, free: 12.34 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestSingleLayer12over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestSingleLayer12over12.fmu > HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe 2>&1)