Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.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.TestIceConn,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestIceConn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestIceConn,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestIceConn",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.00748/0.00748, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001892/0.001892, allocations: 195.1 kB / 16.67 MB, free: 5.969 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04139/0.04139, allocations: 8.027 MB / 298.6 MB, free: 6.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 59.91 kB / 412.6 MB, free: 22.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08227/0.08393, allocations: 51.18 MB / 463.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestIceConn): time 0.005083/0.08906, allocations: 3.192 MB / 466.9 MB, free: 384 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.09075, allocations: 0.799 MB / 467.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002869/0.09106, allocations: 7.938 kB / 467.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005449/0.09162, allocations: 283 kB / 468 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005503/0.09222, allocations: 219 kB / 468.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007169/0.09295, allocations: 289.8 kB / 468.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006779/0.09364, allocations: 499.1 kB / 469 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003798/0.09403, allocations: 215 kB / 469.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003451/0.09438, allocations: 203.3 kB / 469.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003181/0.09471, allocations: 291 kB / 469.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.732e-05/0.09479, allocations: 40 kB / 469.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.09494, allocations: 67.92 kB / 469.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.09514, allocations: 183.4 kB / 470 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002771/0.09542, allocations: 298.2 kB / 470.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007614/0.09619, allocations: 0.7196 MB / 471 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.09621, allocations: 4 kB / 471 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.09622, allocations: 0 / 471 MB, free: 12.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.09625, allocations: 0 / 471 MB, free: 12.3 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001633/0.09789, allocations: 1.04 MB / 472 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.09795, allocations: 12.03 kB / 472.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.302e-05/0.09803, allocations: 70.72 kB / 472.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.09816, allocations: 80.42 kB / 472.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008141/0.09898, allocations: 0.5551 MB / 472.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.09902, allocations: 24.66 kB / 472.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.917e-05/0.09908, allocations: 28 kB / 472.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007805/0.09987, allocations: 381.2 kB / 473.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.0999, allocations: 0 / 473.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.738e-05/0.09994, allocations: 16 kB / 473.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.09996, allocations: 8 kB / 473.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007221/0.1007, allocations: 270.3 kB / 473.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.1028, allocations: 1.667 MB / 475.1 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008678/0.1037, allocations: 294.5 kB / 475.4 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000298/0.104, allocations: 108.8 kB / 475.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.165e-05/0.104, allocations: 4 kB / 475.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004308/0.1045, allocations: 171.2 kB / 475.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.904e-06/0.1045, allocations: 0 / 475.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001892/0.1064, allocations: 0.6459 MB / 476.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.051e-05/0.1064, allocations: 81.11 kB / 476.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/0.1075, allocations: 0.9689 MB / 477.4 MB, free: 5.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.1075, allocations: 37.7 kB / 477.4 MB, free: 5.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/0.1078, allocations: 344.4 kB / 477.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.84e-05/0.1078, allocations: 75.38 kB / 477.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-05/0.1079, allocations: 53.7 kB / 477.9 MB, free: 5.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1081, allocations: 374.8 kB / 478.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/0.1084, allocations: 121 kB / 478.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000371/0.1088, allocations: 192.1 kB / 478.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006874/0.1095, allocations: 318.9 kB / 478.9 MB, free: 4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1095, allocations: 0 / 478.9 MB, free: 4 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001224/0.1108, allocations: 0.5143 MB / 479.4 MB, free: 3.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.79e-05/0.1108, allocations: 41.62 kB / 479.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1108, allocations: 0 / 479.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.1111, allocations: 56.83 kB / 479.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/0.1113, allocations: 60.11 kB / 479.6 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002396/0.1137, allocations: 1.97 MB / 481.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.1141, allocations: 40.05 kB / 481.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.1141, allocations: 16 kB / 481.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005434/0.1147, allocations: 312.3 kB / 481.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003441/0.1151, allocations: 187.3 kB / 482.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000579/0.1156, allocations: 305.8 kB / 482.4 MB, free: 284 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.713e-06/0.1157, allocations: 0 / 482.4 MB, free: 284 kB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009055/0.1166, allocations: 431.2 kB / 482.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/0.1166, allocations: 36.05 kB / 482.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1166, allocations: 3.984 kB / 482.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001421/0.1168, allocations: 53.16 kB / 482.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.117, allocations: 51.89 kB / 482.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.1186, allocations: 1.763 MB / 484.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003647/0.119, allocations: 39.89 kB / 484.7 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.119, allocations: 8 kB / 484.7 MB, free: 13.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (powReq.count,$PRE.powReq.count,powReq.T_start,$PRE.powReq.T_start,$whenCondition1,ice.toKgFuel.local_reset,ice.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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.0001758/0.1192, allocations: 212.3 kB / 484.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.715e-05/0.1193, allocations: 63.64 kB / 485 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/0.1203, allocations: 396 kB / 485.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1203, allocations: 7.938 kB / 485.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.1204, allocations: 4 kB / 485.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.1204, allocations: 3.984 kB / 485.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000511/0.1209, allocations: 493.2 kB / 485.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1209, allocations: 0 / 485.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002164/0.1211, allocations: 35.91 kB / 485.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000248/0.1214, allocations: 76.8 kB / 486 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.1214, allocations: 4 kB / 486 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.1236, allocations: 1.955 MB / 488 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.1237, allocations: 0 / 488 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.125, allocations: 0.5229 MB / 488.5 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/0.1253, allocations: 156.6 kB / 488.6 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.27e-05/0.1254, allocations: 8 kB / 488.6 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002641/0.1256, allocations: 27.91 kB / 488.7 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.162e-05/0.1257, allocations: 23.97 kB / 488.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.1258, allocations: 7.984 kB / 488.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008999/0.1267, allocations: 0.7099 MB / 489.4 MB, free: 8.824 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1267, allocations: 0 / 489.4 MB, free: 8.824 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007703/0.1274, allocations: 191.6 kB / 489.6 MB, free: 8.637 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (loadTorque.phi,ice.inertia.w,ice.tokgFuel.y,ice.toKgFuel.y) * Number of discrete variables: 3 ($whenCondition1,powReq.T_start,powReq.count) * Number of discrete states: 1 (powReq.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * 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.002319/0.1298, allocations: 1.329 MB / 490.9 MB, free: 7.418 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.1315, allocations: 0.8013 MB / 491.7 MB, free: 6.566 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.1315, allocations: 4.188 kB / 491.7 MB, free: 6.562 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006717/0.1322, allocations: 298.4 kB / 492 MB, free: 6.258 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004918/0.1327, allocations: 90.7 kB / 492.1 MB, free: 6.168 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008504/0.1412, allocations: 6.12 MB / 498.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.1417, allocations: 0.9256 MB / 499.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.1419, allocations: 75.22 kB / 499.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.1422, allocations: 215.4 kB / 499.4 MB, free: 14.65 MB / 382.1 MB Notification: Performance of SimCode: time 2.024e-06/0.1422, allocations: 0 / 499.4 MB, free: 14.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03682/0.179, allocations: 13.26 MB / 0.5007 GB, free: 1.508 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/12.61, allocations: 14.72 kB / 0.5007 GB, free: 1.5 MB / 382.1 MB (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.sim & python3 -m fmpy simulate --output-file EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 EHPTlib_EHPTlib_MapBased_TestingModels_TestIceConn.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestIceConn.pipe 2>&1)