Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.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.TestIceT01,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceT01",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestICE.TestIceT01,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceT01",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.005019/0.005019, allocations: 100.8 kB / 15.73 MB, free: 6.066 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.001407/0.001407, allocations: 195.4 kB / 16.67 MB, free: 5.977 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.04164/0.04164, allocations: 8.42 MB / 299 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 67.88 kB / 413.3 MB, free: 22.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09826/0.1002, allocations: 51.37 MB / 464.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestICE.TestIceT01): time 0.005904/0.1061, allocations: 3.657 MB / 468.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002908/0.109, allocations: 1.709 MB / 470.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003111/0.1094, allocations: 7.938 kB / 470.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006416/0.1101, allocations: 342.7 kB / 470.4 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006439/0.1107, allocations: 286.7 kB / 470.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009441/0.1117, allocations: 400.3 kB / 471.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008645/0.1126, allocations: 0.6433 MB / 471.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004077/0.113, allocations: 230.6 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004266/0.1134, allocations: 290.8 kB / 472.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005169/0.1139, allocations: 358.7 kB / 472.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.482e-05/0.114, allocations: 52 kB / 472.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002248/0.1143, allocations: 104 kB / 472.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000284/0.1146, allocations: 303.1 kB / 473 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004136/0.115, allocations: 457.1 kB / 473.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.1163, allocations: 1.136 MB / 474.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1163, allocations: 0 / 474.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1163, allocations: 0 / 474.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.1163, allocations: 0 / 474.6 MB, free: 8.773 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.002342/0.1187, allocations: 1.429 MB / 476 MB, free: 7.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.1187, allocations: 11.89 kB / 476 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.394e-05/0.1188, allocations: 78.7 kB / 476.1 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.119, allocations: 120.1 kB / 476.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.1202, allocations: 0.8534 MB / 477.1 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.432e-05/0.1203, allocations: 29 kB / 477.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.656e-05/0.1203, allocations: 39.95 kB / 477.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008678/0.1212, allocations: 416.7 kB / 477.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.1212, allocations: 0 / 477.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.1213, allocations: 16 kB / 477.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.1213, allocations: 11.94 kB / 477.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008463/0.1222, allocations: 307.8 kB / 477.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003063/0.1252, allocations: 1.935 MB / 479.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009746/0.1262, allocations: 329.7 kB / 480.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003483/0.1266, allocations: 116.8 kB / 480.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.492e-05/0.1267, allocations: 20.03 kB / 480.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000489/0.1271, allocations: 179.1 kB / 480.5 MB, free: 2.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.225e-06/0.1272, allocations: 0 / 480.5 MB, free: 2.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001542/0.1287, allocations: 0.5794 MB / 481 MB, free: 2.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.226e-05/0.1288, allocations: 81.11 kB / 481.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002139/0.1309, allocations: 1.659 MB / 482.8 MB, free: 300 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.131, allocations: 33.7 kB / 482.8 MB, free: 260 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004608/0.1315, allocations: 477 kB / 483.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.761e-05/0.1315, allocations: 83.23 kB / 483.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.1317, allocations: 69.69 kB / 483.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001979/0.1319, allocations: 322 kB / 483.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003935/0.1323, allocations: 140.7 kB / 483.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004497/0.1327, allocations: 211.5 kB / 484.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008072/0.1336, allocations: 348.6 kB / 484.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1336, allocations: 3.938 kB / 484.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001141/0.1347, allocations: 0.5146 MB / 484.9 MB, free: 14.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.963e-05/0.1348, allocations: 33.7 kB / 485 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1348, allocations: 4 kB / 485 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001636/0.135, allocations: 24.78 kB / 485 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/0.1353, allocations: 83.88 kB / 485.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.1365, allocations: 1.383 MB / 486.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003517/0.1369, allocations: 55.62 kB / 486.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.1369, allocations: 12 kB / 486.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007237/0.1377, allocations: 451.9 kB / 487 MB, free: 11.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003918/0.1381, allocations: 191.7 kB / 487.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000705/0.1388, allocations: 331.9 kB / 487.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.657e-06/0.1388, allocations: 4 kB / 487.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=44) (initialization_lambda0): time 0.001035/0.1398, allocations: 0.4947 MB / 488 MB, free: 10.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.1399, allocations: 33.7 kB / 488 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-06/0.1399, allocations: 0 / 488 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.206e-05/0.14, allocations: 24.84 kB / 488 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002861/0.1403, allocations: 80.11 kB / 488.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.1414, allocations: 1.375 MB / 489.5 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/0.1418, allocations: 39.86 kB / 489.5 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.504e-05/0.1418, allocations: 12 kB / 489.5 MB, free: 9.043 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,iceT.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001828/0.142, allocations: 208.6 kB / 489.7 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.1421, allocations: 103.3 kB / 489.8 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.1432, allocations: 415.8 kB / 490.3 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.1432, allocations: 0 / 490.3 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1432, allocations: 0 / 490.3 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.1432, allocations: 7.984 kB / 490.3 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008138/0.144, allocations: 0.6717 MB / 490.9 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1441, allocations: 4 kB / 490.9 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002804/0.1443, allocations: 59.89 kB / 491 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.089e-05/0.1444, allocations: 24.84 kB / 491 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.1445, allocations: 0 / 491 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00113/0.1456, allocations: 1.371 MB / 492.4 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1456, allocations: 0 / 492.4 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.1469, allocations: 0.5633 MB / 493 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002704/0.1472, allocations: 216.4 kB / 493.2 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.23e-05/0.1473, allocations: 15.98 kB / 493.2 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002661/0.1476, allocations: 23.97 kB / 493.2 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.388e-05/0.1477, allocations: 23.97 kB / 493.2 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.1477, allocations: 4 kB / 493.2 MB, free: 5.109 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001826/0.1495, allocations: 1.191 MB / 494.4 MB, free: 3.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1496, allocations: 0 / 494.4 MB, free: 3.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007228/0.1503, allocations: 259.4 kB / 494.7 MB, free: 3.656 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (iceT.inertia.w,iceT.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 (23): * Single equations (assignments): 20 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003913/0.1542, allocations: 1.612 MB / 496.3 MB, free: 2.273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.156, allocations: 0.808 MB / 497.1 MB, free: 1.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.156, allocations: 4 kB / 497.1 MB, free: 1.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005377/0.1565, allocations: 251.1 kB / 497.3 MB, free: 1.156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006517/0.1572, allocations: 129.9 kB / 497.5 MB, free: 1.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01486/0.1721, allocations: 9.642 MB / 0.4952 GB, free: 7.211 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008235/0.1729, allocations: 1.075 MB / 0.4963 GB, free: 6.109 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004237/0.1734, allocations: 161 kB / 0.4964 GB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005188/0.1739, allocations: 339.3 kB / 0.4968 GB, free: 5.621 MB / 382.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1739, allocations: 0 / 0.4968 GB, free: 5.621 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2766/0.4505, allocations: 19.1 MB / 0.5154 GB, free: 41.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.61, allocations: 2.344 kB / 0.5154 GB, free: 41.38 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceT01_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceT01.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceT01.pipe 2>&1)