Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.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 3.0.0-main/package.mo", uses=false) Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-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.TestICE.TestIceP,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestICE.TestIceP,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_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.005798/0.005798, allocations: 99.41 kB / 15.73 MB, free: 6.008 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.001449/0.001449, allocations: 193 kB / 16.68 MB, free: 5.934 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.04097/0.04097, allocations: 8.41 MB / 298.9 MB, free: 6.414 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 67.89 kB / 413.3 MB, free: 22.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1123, allocations: 51.36 MB / 464.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestICE.TestIceP): time 0.006173/0.1185, allocations: 3.761 MB / 468.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003351/0.1219, allocations: 1.74 MB / 470.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003514/0.1223, allocations: 11.94 kB / 470.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007172/0.1231, allocations: 342.6 kB / 470.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007747/0.1239, allocations: 298.6 kB / 470.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001226/0.1251, allocations: 406.8 kB / 471.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0012/0.1263, allocations: 0.69 MB / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005413/0.1269, allocations: 247.7 kB / 472.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004889/0.1274, allocations: 294.8 kB / 472.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005918/0.128, allocations: 374.6 kB / 472.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.393e-05/0.1281, allocations: 56 kB / 472.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002833/0.1284, allocations: 112 kB / 473 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003343/0.1287, allocations: 307 kB / 473.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005088/0.1293, allocations: 469 kB / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00163/0.1309, allocations: 1.179 MB / 474.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.1309, allocations: 4 kB / 474.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1309, allocations: 0 / 474.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.1309, allocations: 0 / 474.9 MB, free: 8.473 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.002563/0.1335, allocations: 1.456 MB / 476.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/0.1336, allocations: 15.83 kB / 476.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.1337, allocations: 82.7 kB / 476.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/0.1339, allocations: 124.1 kB / 476.6 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.1354, allocations: 0.8499 MB / 477.4 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.935e-05/0.1354, allocations: 36.94 kB / 477.5 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.796e-05/0.1355, allocations: 40 kB / 477.5 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009414/0.1365, allocations: 452.6 kB / 478 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.1365, allocations: 3.984 kB / 478 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.1365, allocations: 16 kB / 478 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.1366, allocations: 8 kB / 478 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00088/0.1374, allocations: 335.7 kB / 478.3 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003236/0.1407, allocations: 2.017 MB / 480.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.1418, allocations: 439.9 kB / 480.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004012/0.1422, allocations: 136.8 kB / 480.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.463e-05/0.1423, allocations: 16.05 kB / 480.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005232/0.1428, allocations: 197.1 kB / 481.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.614e-06/0.1428, allocations: 0 / 481.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002048/0.1449, allocations: 0.6795 MB / 481.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.357e-05/0.145, allocations: 85.11 kB / 481.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002358/0.1473, allocations: 1.667 MB / 483.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.773e-05/0.1474, allocations: 33.7 kB / 483.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005489/0.148, allocations: 485.2 kB / 484 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.1481, allocations: 95.14 kB / 484.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.1483, allocations: 78.06 kB / 484.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1484, allocations: 322 kB / 484.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004384/0.1489, allocations: 146.3 kB / 484.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004804/0.1494, allocations: 207.3 kB / 484.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008586/0.1502, allocations: 370.2 kB / 485.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1503, allocations: 4 kB / 485.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001317/0.1516, allocations: 0.5745 MB / 485.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.383e-05/0.1516, allocations: 33.7 kB / 485.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1517, allocations: 0 / 485.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003489/0.152, allocations: 64.75 kB / 485.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/0.1524, allocations: 84.03 kB / 486 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/0.1544, allocations: 1.814 MB / 487.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004044/0.1549, allocations: 55.69 kB / 487.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/0.1549, allocations: 12 kB / 487.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008093/0.1557, allocations: 469.7 kB / 488.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004004/0.1561, allocations: 199 kB / 488.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007159/0.1569, allocations: 340.6 kB / 488.8 MB, free: 9.906 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.834e-06/0.1569, allocations: 0 / 488.8 MB, free: 9.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.001197/0.1581, allocations: 0.5536 MB / 489.4 MB, free: 9.336 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.1581, allocations: 33.7 kB / 489.4 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-06/0.1581, allocations: 0 / 489.4 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002061/0.1583, allocations: 60.81 kB / 489.5 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002719/0.1586, allocations: 75.89 kB / 489.6 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001976/0.1606, allocations: 1.822 MB / 491.4 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003707/0.161, allocations: 43.91 kB / 491.4 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.161, allocations: 15.94 kB / 491.4 MB, free: 7.137 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 (41): * Single equations (assignments): 39 * 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.0002099/0.1613, allocations: 207.7 kB / 491.6 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.1614, allocations: 107.3 kB / 491.8 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001222/0.1626, allocations: 472.4 kB / 492.2 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.1626, allocations: 4 kB / 492.2 MB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.1627, allocations: 3.938 kB / 492.2 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1627, allocations: 3.984 kB / 492.2 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00211/0.1648, allocations: 1.214 MB / 493.4 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1648, allocations: 4 kB / 493.4 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002847/0.1651, allocations: 55.95 kB / 493.5 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002129/0.1653, allocations: 56.75 kB / 493.6 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.1654, allocations: 11.94 kB / 493.6 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001975/0.1673, allocations: 1.799 MB / 495.4 MB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1673, allocations: 4.062 kB / 495.4 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.169, allocations: 0.6928 MB / 496.1 MB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003677/0.1694, allocations: 220.4 kB / 496.3 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.376e-05/0.1695, allocations: 11.98 kB / 496.3 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003212/0.1698, allocations: 19.97 kB / 496.3 MB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.1699, allocations: 27.97 kB / 496.3 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-05/0.17, allocations: 8 kB / 496.3 MB, free: 1.988 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002121/0.1721, allocations: 1.199 MB / 497.5 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1721, allocations: 0 / 497.5 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00124/0.1734, allocations: 279.4 kB / 497.8 MB, free: 0.5078 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 (22): * Single equations (assignments): 19 * 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.004469/0.1779, allocations: 1.735 MB / 499.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002232/0.1801, allocations: 0.8728 MB / 0.4887 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.1802, allocations: 0 / 0.4887 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005957/0.1808, allocations: 290.4 kB / 0.489 GB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009132/0.1817, allocations: 116.3 kB / 0.4891 GB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01611/0.1978, allocations: 9.906 MB / 0.4988 GB, free: 3.586 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009409/0.1988, allocations: 1.095 MB / 0.4998 GB, free: 2.465 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003848/0.1992, allocations: 129.2 kB / 0.4999 GB, free: 2.336 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005145/0.1997, allocations: 347.3 kB / 0.5003 GB, free: 1.996 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.1997, allocations: 4 kB / 0.5003 GB, free: 1.992 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2696/0.4693, allocations: 20.26 MB / 0.5201 GB, free: 40.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.72, allocations: 3.375 kB / 0.5201 GB, free: 40.19 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceP.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceP.pipe 2>&1)