Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.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.TestDoubleLayer10over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer10over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12",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.001218/0.001219, 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.331/1.331, allocations: 222.9 MB / 238.8 MB, free: 4.734 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.00153/0.00153, allocations: 192.5 kB / 289.1 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0342/0.0342, allocations: 8.797 MB / 348.1 MB, free: 4.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 78.78 kB / 410.5 MB, free: 42.42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07332/0.07481, allocations: 51.56 MB / 462.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestDoubleLayer10over12): time 0.00228/0.07713, allocations: 1.309 MB / 463.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.07893, allocations: 1.16 MB / 464.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.503e-05/0.07899, allocations: 4 kB / 464.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004081/0.07942, allocations: 75.75 kB / 464.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008122/0.08024, allocations: 362.8 kB / 465 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.687e-06/0.08026, allocations: 0 / 465 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001326/0.08159, allocations: 0.9597 MB / 465.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.732e-05/0.08165, allocations: 15.98 kB / 465.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.587e-05/0.08168, allocations: 7.938 kB / 466 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.393e-05/0.08173, allocations: 15.92 kB / 466 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.055e-05/0.08175, allocations: 0 / 466 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.08189, allocations: 39.91 kB / 466 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.043e-05/0.08195, allocations: 23.92 kB / 466 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.884e-05/0.08198, allocations: 19.8 kB / 466 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.08214, allocations: 79.97 kB / 466.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.08215, allocations: 0 / 466.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.08216, allocations: 0 / 466.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.08217, allocations: 7.938 kB / 466.1 MB, free: 10.68 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.000348/0.08252, allocations: 383 kB / 466.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.08257, allocations: 8.031 kB / 466.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.415e-05/0.08263, allocations: 110 kB / 466.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003671/0.083, allocations: 112.1 kB / 466.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.08345, allocations: 352 kB / 467.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.889e-05/0.08351, allocations: 150.9 kB / 467.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.08357, allocations: 154.9 kB / 467.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.542e-05/0.08364, allocations: 105.1 kB / 467.5 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.08367, allocations: 79.27 kB / 467.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.708e-05/0.08374, allocations: 158.5 kB / 467.7 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-05/0.08379, allocations: 154.6 kB / 467.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.502e-05/0.08385, allocations: 150.6 kB / 468 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002871/0.08414, allocations: 457.9 kB / 468.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.572e-05/0.08424, allocations: 173.1 kB / 468.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.217e-05/0.08428, allocations: 84.14 kB / 468.7 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.08431, allocations: 83.16 kB / 468.8 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.366e-05/0.08437, allocations: 113.8 kB / 468.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 8.01e-07/0.08437, allocations: 0 / 468.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 7.227e-05/0.08445, allocations: 37.61 kB / 468.9 MB, free: 7.688 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.496e-05/0.08452, allocations: 126.7 kB / 469.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.08469, allocations: 172.5 kB / 469.2 MB, free: 7.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.08471, allocations: 25.7 kB / 469.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.048e-05/0.08478, allocations: 104.1 kB / 469.4 MB, free: 7.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-06/0.08479, allocations: 0 / 469.4 MB, free: 7.234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.051e-05/0.08481, allocations: 9.719 kB / 469.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.08493, allocations: 322.8 kB / 469.7 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.709e-06/0.08494, allocations: 0 / 469.7 MB, free: 6.895 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.659e-06/0.08495, allocations: 3.938 kB / 469.7 MB, free: 6.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.564e-05/0.08499, allocations: 79.28 kB / 469.8 MB, free: 6.812 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.679e-05/0.08502, allocations: 79.28 kB / 469.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.516e-05/0.08509, allocations: 49.44 kB / 469.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.08513, allocations: 81.47 kB / 470 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.096e-05/0.08518, allocations: 75.28 kB / 470 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.041e-05/0.08524, allocations: 158.5 kB / 470.2 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.788e-05/0.08529, allocations: 79.28 kB / 470.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.706e-05/0.08535, allocations: 158.5 kB / 470.4 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.893e-05/0.08543, allocations: 75.28 kB / 470.5 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.08546, allocations: 75.28 kB / 470.6 MB, free: 5.988 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.0001461/0.08562, allocations: 284.2 kB / 470.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.694e-05/0.08571, allocations: 116.9 kB / 471 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.46e-05/0.08577, allocations: 121.5 kB / 471.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.257e-05/0.08585, allocations: 184.2 kB / 471.3 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.048e-05/0.08594, allocations: 176.3 kB / 471.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.078e-05/0.08602, allocations: 180.2 kB / 471.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/0.08628, allocations: 421.2 kB / 472 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-05/0.08633, allocations: 105 kB / 472.1 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.917e-05/0.08637, allocations: 112.9 kB / 472.2 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-05/0.08645, allocations: 188.2 kB / 472.4 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-05/0.08653, allocations: 180.2 kB / 472.6 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-05/0.0866, allocations: 176.3 kB / 472.8 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.116e-05/0.08665, allocations: 176.3 kB / 472.9 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001204/0.08678, allocations: 323.6 kB / 473.3 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.006e-05/0.08685, allocations: 193.9 kB / 473.4 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.224e-05/0.08692, allocations: 176.3 kB / 473.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.263e-05/0.087, allocations: 109 kB / 473.7 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.08706, allocations: 184.2 kB / 473.9 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.0871, allocations: 109 kB / 474 MB, free: 2.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.615e-05/0.08719, allocations: 127.9 kB / 474.1 MB, free: 2.199 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.08719, allocations: 0 / 474.1 MB, free: 2.199 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000242/0.08744, allocations: 0 / 474.1 MB, free: 2.199 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.0003636/0.08781, allocations: 0.8125 MB / 474.9 MB, free: 1.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 3.325e-05/0.08785, allocations: 7.984 kB / 475 MB, free: 1.348 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.08786, allocations: 0 / 475 MB, free: 1.348 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.252e-06/0.08786, allocations: 0 / 475 MB, free: 1.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004266/0.08829, allocations: 0.5263 MB / 475.5 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.08967, allocations: 1.821 MB / 477.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.08995, allocations: 0.6965 MB / 478 MB, free: 14.2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.315e-05/0.08999, allocations: 4 kB / 478 MB, free: 14.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.09003, allocations: 23.42 kB / 478 MB, free: 14.18 MB / 318.1 MB Notification: Performance of SimCode: time 1.433e-06/0.09004, allocations: 4 kB / 478 MB, free: 14.17 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0104/0.1004, allocations: 1.695 MB / 479.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002021/0.1007, allocations: 206.1 kB / 479.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/1.659, allocations: 0 / 479.9 MB, free: 12.31 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe 2>&1)