Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceP.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/Complex 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/EHPTlib 2.1.4-main/package.mo", uses=false) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(EHPTlib.MapBased.TestingModels.TestIceP,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestIceP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestIceP,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestIceP",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.005581/0.005581, allocations: 98.22 kB / 15.73 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 198.7 kB / 16.67 MB, free: 5.527 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04461/0.04461, allocations: 8.33 MB / 298.9 MB, free: 6.523 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002479/0.002479, allocations: 55.91 kB / 413 MB, free: 22.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1217, allocations: 51.26 MB / 464.3 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestIceP): time 0.005421/0.1272, allocations: 3.431 MB / 467.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.13, allocations: 1.651 MB / 469.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.1302, allocations: 7.938 kB / 469.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005742/0.1308, allocations: 330.9 kB / 469.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005042/0.1314, allocations: 262.8 kB / 469.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008855/0.1323, allocations: 388.9 kB / 470.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006463/0.1329, allocations: 0.5575 MB / 470.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003214/0.1333, allocations: 190.8 kB / 471.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002814/0.1336, allocations: 235.2 kB / 471.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004599/0.134, allocations: 334.9 kB / 471.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.265e-05/0.1341, allocations: 40 kB / 471.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000185/0.1343, allocations: 99.97 kB / 471.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002196/0.1345, allocations: 215.3 kB / 472 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000297/0.1348, allocations: 326 kB / 472.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009216/0.1358, allocations: 0.8168 MB / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1358, allocations: 3.938 kB / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1358, allocations: 0 / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1358, allocations: 0 / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001727/0.1375, allocations: 1.133 MB / 474.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1376, allocations: 12.03 kB / 474.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.806e-05/0.1377, allocations: 70.66 kB / 474.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.1378, allocations: 96.3 kB / 474.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008518/0.1387, allocations: 0.5942 MB / 475 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.1387, allocations: 24.59 kB / 475 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.46e-05/0.1388, allocations: 35.95 kB / 475.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007878/0.1396, allocations: 375.6 kB / 475.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1396, allocations: 4 kB / 475.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.1397, allocations: 12 kB / 475.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.1397, allocations: 8 kB / 475.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007737/0.1404, allocations: 278.4 kB / 475.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002335/0.1428, allocations: 1.592 MB / 477.3 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009294/0.1437, allocations: 383.8 kB / 477.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/0.1441, allocations: 112.8 kB / 477.8 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.1441, allocations: 4 kB / 477.8 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004647/0.1446, allocations: 187.2 kB / 478 MB, free: 5.207 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.432e-06/0.1446, allocations: 0 / 478 MB, free: 5.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001747/0.1464, allocations: 0.6032 MB / 478.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.859e-05/0.1464, allocations: 85.05 kB / 478.7 MB, free: 4.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.1477, allocations: 1.126 MB / 479.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.1478, allocations: 29.7 kB / 479.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003445/0.1481, allocations: 384.4 kB / 480.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.955e-05/0.1482, allocations: 71.34 kB / 480.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.985e-05/0.1483, allocations: 61.69 kB / 480.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1485, allocations: 314 kB / 480.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.1488, allocations: 112.8 kB / 480.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003971/0.1492, allocations: 184.1 kB / 480.9 MB, free: 2.156 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007208/0.15, allocations: 301.2 kB / 481.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.15, allocations: 0 / 481.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0011/0.1511, allocations: 475.4 kB / 481.7 MB, free: 1.352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.928e-05/0.1512, allocations: 45.64 kB / 481.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.1512, allocations: 0 / 481.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002664/0.1514, allocations: 56.81 kB / 481.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.1517, allocations: 59.89 kB / 481.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00194/0.1537, allocations: 1.826 MB / 483.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003257/0.154, allocations: 47.75 kB / 483.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.154, allocations: 12 kB / 483.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005545/0.1546, allocations: 336 kB / 484.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003492/0.155, allocations: 163.7 kB / 484.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006185/0.1556, allocations: 288.2 kB / 484.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.543e-06/0.1556, allocations: 0 / 484.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization_lambda0): time 0.0009691/0.1566, allocations: 447.1 kB / 484.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.602e-05/0.1566, allocations: 41.69 kB / 485 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-06/0.1566, allocations: 192 / 485 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002028/0.1568, allocations: 65.03 kB / 485 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002074/0.1571, allocations: 51.91 kB / 485.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001873/0.1589, allocations: 1.826 MB / 486.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002833/0.1592, allocations: 39.92 kB / 487 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.1593, allocations: 15.98 kB / 487 MB, free: 11.7 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 6 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,iceP.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001615/0.1594, allocations: 196.1 kB / 487.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.1595, allocations: 75.47 kB / 487.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.1606, allocations: 396.7 kB / 487.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1606, allocations: 4 kB / 487.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.1606, allocations: 0 / 487.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1606, allocations: 0 / 487.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/0.1622, allocations: 0.9823 MB / 488.6 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1622, allocations: 4 kB / 488.6 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002378/0.1625, allocations: 39.91 kB / 488.7 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002006/0.1627, allocations: 64.81 kB / 488.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.1627, allocations: 4 kB / 488.7 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001814/0.1645, allocations: 1.81 MB / 490.5 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1646, allocations: 3.984 kB / 490.5 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.1659, allocations: 0.5894 MB / 491.1 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001829/0.1661, allocations: 172.6 kB / 491.3 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.815e-05/0.1662, allocations: 4.188 kB / 491.3 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002888/0.1665, allocations: 35.91 kB / 491.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.396e-05/0.1666, allocations: 23.91 kB / 491.4 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.1666, allocations: 7.984 kB / 491.4 MB, free: 7.039 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001011/0.1676, allocations: 0.8231 MB / 492.2 MB, free: 6.219 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1676, allocations: 0 / 492.2 MB, free: 6.219 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008548/0.1685, allocations: 207.5 kB / 492.4 MB, free: 6.016 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (iceP.inertia.w,iceP.tokgFuel.y,loadTorque.phi) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003866/0.1724, allocations: 1.629 MB / 494 MB, free: 4.625 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.1742, allocations: 0.7742 MB / 494.8 MB, free: 3.801 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.1742, allocations: 0.75 kB / 494.8 MB, free: 3.801 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005406/0.1747, allocations: 258.5 kB / 495 MB, free: 3.535 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007491/0.1755, allocations: 101.6 kB / 495.1 MB, free: 3.441 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.1863, allocations: 6.711 MB / 0.4901 GB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007078/0.1871, allocations: 0.9568 MB / 0.491 GB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002596/0.1873, allocations: 79.36 kB / 0.4911 GB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003367/0.1877, allocations: 239.4 kB / 0.4913 GB, free: 11.28 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1877, allocations: 0 / 0.4913 GB, free: 11.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2527/0.4404, allocations: 15.05 MB / 0.506 GB, free: 45.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.29, allocations: 5.656 kB / 0.506 GB, free: 45.75 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceP.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceP.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceP.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestIceP_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestIceP.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceP.pipe 2>&1)