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.001067/0.001067, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.363/1.363, allocations: 223.3 MB / 239.4 MB, free: 5.496 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.001153/0.001153, allocations: 180.5 kB / 290.6 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03269/0.03269, allocations: 8.803 MB / 350.5 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003513, allocations: 13.61 kB / 413.9 MB, free: 42.71 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0835/0.08387, allocations: 52.56 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestSingleLayer12over12): time 0.001264/0.08518, allocations: 0.9666 MB / 467.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.08684, allocations: 1.157 MB / 468.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.126e-05/0.08688, allocations: 0 / 468.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.08722, allocations: 71.75 kB / 468.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007741/0.08801, allocations: 350.9 kB / 469 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.406e-06/0.08802, allocations: 0 / 469 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00129/0.08932, allocations: 0.9677 MB / 470 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.818e-05/0.08937, allocations: 8 kB / 470 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.794e-05/0.08939, allocations: 7.938 kB / 470 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.811e-05/0.08945, allocations: 23.84 kB / 470 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.687e-06/0.08946, allocations: 0 / 470 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.08959, allocations: 39.92 kB / 470.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.919e-05/0.08965, allocations: 19.91 kB / 470.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.955e-05/0.0897, allocations: 49.52 kB / 470.1 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.08986, allocations: 71.8 kB / 470.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.08987, allocations: 0 / 470.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.08988, allocations: 4 kB / 470.2 MB, free: 9.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.08989, allocations: 0 / 470.2 MB, free: 9.281 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.0003614/0.09025, allocations: 375 kB / 470.6 MB, free: 8.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.0903, allocations: 12.03 kB / 470.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.386e-05/0.09036, allocations: 110 kB / 470.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000363/0.09073, allocations: 108.1 kB / 470.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.09115, allocations: 352 kB / 471.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.744e-05/0.09126, allocations: 154.9 kB / 471.3 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.046e-05/0.09133, allocations: 154.9 kB / 471.4 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.796e-05/0.0914, allocations: 113.1 kB / 471.6 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/0.09143, allocations: 75.28 kB / 471.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.509e-05/0.09149, allocations: 154.6 kB / 471.8 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.012e-05/0.09155, allocations: 150.6 kB / 471.9 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.742e-05/0.0916, allocations: 154.5 kB / 472.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002949/0.0919, allocations: 465.9 kB / 472.5 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001062/0.09202, allocations: 173.1 kB / 472.7 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.528e-05/0.09206, allocations: 80.14 kB / 472.8 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.0921, allocations: 75.28 kB / 472.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/0.09215, allocations: 117.7 kB / 473 MB, free: 6.332 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.09216, allocations: 0 / 473 MB, free: 6.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.28e-05/0.09223, allocations: 33.61 kB / 473 MB, free: 6.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.09229, allocations: 134.7 kB / 473.1 MB, free: 6.148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.09246, allocations: 164.5 kB / 473.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.949e-06/0.09247, allocations: 25.7 kB / 473.3 MB, free: 5.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.09253, allocations: 104.1 kB / 473.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.212e-06/0.09253, allocations: 0 / 473.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.181e-05/0.09256, allocations: 9.719 kB / 473.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.09268, allocations: 322.8 kB / 473.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.278e-06/0.09268, allocations: 0 / 473.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.114e-06/0.09269, allocations: 3.938 kB / 473.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.435e-05/0.09272, allocations: 79.28 kB / 473.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.187e-05/0.09275, allocations: 83.22 kB / 473.9 MB, free: 5.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.194e-05/0.09281, allocations: 37.55 kB / 473.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.09285, allocations: 79.28 kB / 474 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/0.09288, allocations: 75.28 kB / 474.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.083e-05/0.09294, allocations: 166.5 kB / 474.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.071e-05/0.09297, allocations: 79.27 kB / 474.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.674e-05/0.09302, allocations: 158.5 kB / 474.5 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.411e-05/0.09309, allocations: 75.28 kB / 474.6 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.09312, allocations: 79.28 kB / 474.6 MB, free: 4.59 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.0001219/0.09324, allocations: 272.3 kB / 474.9 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.83e-05/0.09331, allocations: 124.7 kB / 475 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.643e-05/0.09337, allocations: 121.5 kB / 475.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.395e-05/0.09343, allocations: 180.2 kB / 475.3 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.185e-05/0.0935, allocations: 180.3 kB / 475.5 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.735e-05/0.09356, allocations: 176.3 kB / 475.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002228/0.09379, allocations: 425.1 kB / 476.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.523e-05/0.09383, allocations: 109 kB / 476.2 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.531e-05/0.09388, allocations: 112.9 kB / 476.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-05/0.09395, allocations: 180.3 kB / 476.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-05/0.09402, allocations: 184.2 kB / 476.7 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-05/0.09409, allocations: 184.2 kB / 476.8 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.651e-05/0.09416, allocations: 176.3 kB / 477 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.09431, allocations: 315.7 kB / 477.3 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.521e-05/0.0944, allocations: 189.9 kB / 477.5 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.196e-05/0.09449, allocations: 180.2 kB / 477.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.203e-05/0.09457, allocations: 105 kB / 477.8 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.463e-05/0.09466, allocations: 184.2 kB / 478 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-05/0.09471, allocations: 109 kB / 478.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.317e-05/0.09481, allocations: 124 kB / 478.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.09482, allocations: 0 / 478.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.09506, allocations: 4 kB / 478.2 MB, free: 0.8086 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.0004532/0.09552, allocations: 0.8168 MB / 479 MB, free: 15.96 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 3.232e-05/0.09556, allocations: 4 kB / 479 MB, free: 15.96 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.09557, allocations: 4 kB / 479 MB, free: 15.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.472e-06/0.09558, allocations: 3.938 kB / 479 MB, free: 15.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.09608, allocations: 0.5341 MB / 479.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.09747, allocations: 1.821 MB / 481.4 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.09774, allocations: 0.6965 MB / 482.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.614e-05/0.09779, allocations: 7.984 kB / 482.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.409e-05/0.09783, allocations: 23.44 kB / 482.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.09784, allocations: 4 kB / 482.1 MB, free: 12.76 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01122/0.1091, allocations: 1.622 MB / 483.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.1093, allocations: 199.5 kB / 483.9 MB, free: 11.01 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.622/1.731, allocations: 0 / 483.9 MB, free: 11.01 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)