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.001056/0.001056, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.296/1.296, allocations: 222.9 MB / 239 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.001193/0.001193, allocations: 192.5 kB / 289.3 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03478/0.03478, allocations: 8.798 MB / 348.2 MB, free: 4.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 73.27 kB / 410.7 MB, free: 42.48 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07172/0.07323, allocations: 51.56 MB / 462.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.TestSingleLayer12over12): time 0.002306/0.07557, allocations: 1.301 MB / 463.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.0773, allocations: 1.145 MB / 464.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.09e-05/0.07735, allocations: 0 / 464.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000381/0.07775, allocations: 75.75 kB / 464.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009294/0.0787, allocations: 369.9 kB / 465.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.488e-06/0.07872, allocations: 0 / 465.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00129/0.08001, allocations: 0.9675 MB / 466.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.512e-05/0.08006, allocations: 7.984 kB / 466.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.027e-05/0.08009, allocations: 7.938 kB / 466.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.732e-05/0.08013, allocations: 15.88 kB / 466.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.746e-06/0.08015, allocations: 0 / 466.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.08028, allocations: 51.91 kB / 466.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.685e-05/0.08033, allocations: 19.97 kB / 466.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.632e-05/0.08037, allocations: 23.75 kB / 466.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001451/0.08052, allocations: 80.02 kB / 466.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.08053, allocations: 0 / 466.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.08054, allocations: 0 / 466.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.08055, allocations: 0 / 466.3 MB, free: 10.76 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.0003142/0.08086, allocations: 389.5 kB / 466.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.08091, allocations: 12.03 kB / 466.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.3e-05/0.08096, allocations: 110 kB / 466.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000365/0.08133, allocations: 116.1 kB / 466.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.08171, allocations: 336 kB / 467.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.378e-05/0.08177, allocations: 158.9 kB / 467.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.52e-05/0.08182, allocations: 150.9 kB / 467.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.242e-05/0.08188, allocations: 113 kB / 467.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.08191, allocations: 79.27 kB / 467.7 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.763e-05/0.08196, allocations: 150.6 kB / 467.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.141e-05/0.08201, allocations: 150.6 kB / 468 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.661e-05/0.08206, allocations: 154.6 kB / 468.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002654/0.08233, allocations: 465.9 kB / 468.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.94e-05/0.08241, allocations: 173.1 kB / 468.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.747e-05/0.08244, allocations: 80.14 kB / 468.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.08247, allocations: 75.28 kB / 469 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.347e-05/0.08252, allocations: 121.7 kB / 469.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 9.91e-07/0.08253, allocations: 4 kB / 469.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.628e-05/0.0826, allocations: 37.61 kB / 469.1 MB, free: 7.754 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.08265, allocations: 126.7 kB / 469.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.08281, allocations: 168.5 kB / 469.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.08283, allocations: 25.7 kB / 469.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.159e-05/0.08288, allocations: 104.1 kB / 469.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.192e-06/0.08289, allocations: 0 / 469.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-05/0.08292, allocations: 17.72 kB / 469.5 MB, free: 7.281 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.705e-05/0.08302, allocations: 318.8 kB / 469.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.627e-06/0.08303, allocations: 0 / 469.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.505e-06/0.08303, allocations: 0 / 469.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.875e-05/0.08311, allocations: 79.28 kB / 469.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.106e-05/0.08313, allocations: 79.28 kB / 470 MB, free: 6.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.732e-05/0.08319, allocations: 49.38 kB / 470.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.08323, allocations: 79.28 kB / 470.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/0.08326, allocations: 87.22 kB / 470.2 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.502e-05/0.08331, allocations: 150.6 kB / 470.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.825e-05/0.08333, allocations: 75.28 kB / 470.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.145e-05/0.08338, allocations: 154.5 kB / 470.6 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.54e-05/0.08345, allocations: 79.28 kB / 470.7 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.08348, allocations: 83.22 kB / 470.8 MB, free: 6.051 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.0001017/0.08358, allocations: 280.3 kB / 471 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.624e-05/0.08365, allocations: 112.8 kB / 471.1 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.971e-05/0.0837, allocations: 117.6 kB / 471.3 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.343e-05/0.08375, allocations: 180.2 kB / 471.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-05/0.0838, allocations: 180.3 kB / 471.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.271e-05/0.08386, allocations: 192.2 kB / 471.8 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001992/0.08407, allocations: 413.2 kB / 472.2 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.114e-05/0.08411, allocations: 112.9 kB / 472.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.697e-05/0.08414, allocations: 104.9 kB / 472.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.279e-05/0.08419, allocations: 176.3 kB / 472.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.255e-05/0.08424, allocations: 184.2 kB / 472.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.349e-05/0.08431, allocations: 180.3 kB / 472.9 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.537e-05/0.08436, allocations: 184.2 kB / 473.1 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001148/0.08448, allocations: 307.7 kB / 473.4 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.322e-05/0.08456, allocations: 193.9 kB / 473.6 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.048e-05/0.08463, allocations: 184.3 kB / 473.8 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.812e-05/0.08471, allocations: 108.9 kB / 473.9 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.001e-05/0.08478, allocations: 180.3 kB / 474.1 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/0.08481, allocations: 101 kB / 474.2 MB, free: 2.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.084e-05/0.08491, allocations: 127.9 kB / 474.3 MB, free: 2.285 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08492, allocations: 3.938 kB / 474.3 MB, free: 2.281 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.08517, allocations: 4 kB / 474.3 MB, free: 2.277 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.0003391/0.08552, allocations: 0.813 MB / 475.1 MB, free: 1.434 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 3.234e-05/0.08556, allocations: 7.984 kB / 475.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.08556, allocations: 0 / 475.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.423e-06/0.08557, allocations: 4 kB / 475.1 MB, free: 1.422 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000414/0.08599, allocations: 467.6 kB / 475.6 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.08731, allocations: 1.825 MB / 477.4 MB, free: 15.06 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.08758, allocations: 0.7002 MB / 478.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.13e-05/0.08763, allocations: 7.984 kB / 478.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.9e-05/0.08767, allocations: 23.42 kB / 478.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of SimCode: time 1.553e-06/0.08768, allocations: 0 / 478.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01051/0.0982, allocations: 1.728 MB / 479.9 MB, free: 12.7 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/0.09841, allocations: 200.3 kB / 480.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.596/1.694, allocations: 4 kB / 480.1 MB, free: 12.43 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)