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.00117/0.00117, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.001299, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1472/0.1472, allocations: 8.026 MB / 298.4 MB, free: 2.367 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001338, allocations: 59.91 kB / 360.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09689, allocations: 51.19 MB / 411.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestIceConn): time 0.005661/0.1026, allocations: 3.178 MB / 415.1 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.1044, allocations: 0.7989 MB / 415.9 MB, free: 7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003657/0.1048, allocations: 11.94 kB / 415.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006276/0.1054, allocations: 279 kB / 416.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005382/0.106, allocations: 219 kB / 416.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007345/0.1068, allocations: 294.7 kB / 416.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007034/0.1075, allocations: 495.1 kB / 417.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004536/0.1079, allocations: 203.1 kB / 417.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003272/0.1083, allocations: 207.3 kB / 417.6 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004053/0.1087, allocations: 287 kB / 417.8 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.212e-05/0.1088, allocations: 40 kB / 417.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.109, allocations: 63.98 kB / 418 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.1092, allocations: 191.4 kB / 418.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003033/0.1095, allocations: 298.2 kB / 418.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000734/0.1103, allocations: 0.7007 MB / 419.1 MB, free: 3.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.1103, allocations: 4 kB / 419.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1103, allocations: 0 / 419.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.255e-05/0.1103, allocations: 0 / 419.1 MB, free: 3.754 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.001771/0.1121, allocations: 1.017 MB / 420.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1121, allocations: 12.03 kB / 420.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.042e-05/0.1122, allocations: 66.66 kB / 420.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.1124, allocations: 80 kB / 420.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007028/0.1131, allocations: 0.5428 MB / 420.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.695e-05/0.1131, allocations: 20.66 kB / 420.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.956e-05/0.1132, allocations: 32 kB / 420.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007439/0.1139, allocations: 377.3 kB / 421.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.114, allocations: 7.875 kB / 421.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.114, allocations: 12 kB / 421.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.114, allocations: 8 kB / 421.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007959/0.1148, allocations: 266.4 kB / 421.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2299/0.3447, allocations: 1.674 MB / 423.2 MB, free: 43.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00098/0.3457, allocations: 285.8 kB / 423.5 MB, free: 43.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.3461, allocations: 107.7 kB / 423.6 MB, free: 43.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.3461, allocations: 3.875 kB / 423.6 MB, free: 43.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004993/0.3466, allocations: 166.1 kB / 423.8 MB, free: 43.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 3.065e-06/0.3467, allocations: 0 / 423.8 MB, free: 43.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001974/0.3486, allocations: 0.6408 MB / 424.4 MB, free: 43.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.3487, allocations: 90.12 kB / 424.5 MB, free: 43.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.3499, allocations: 0.9755 MB / 425.5 MB, free: 43.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.3499, allocations: 28.95 kB / 425.5 MB, free: 43.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002292/0.3501, allocations: 343.4 kB / 425.8 MB, free: 43.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.146e-05/0.3502, allocations: 68.33 kB / 425.9 MB, free: 43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.957e-05/0.3503, allocations: 56.41 kB / 426 MB, free: 42.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.591e-05/0.3504, allocations: 376.1 kB / 426.3 MB, free: 42.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003198/0.3507, allocations: 122.7 kB / 426.5 MB, free: 42.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000334/0.3511, allocations: 193.2 kB / 426.6 MB, free: 42.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006035/0.3517, allocations: 316.2 kB / 427 MB, free: 42.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3517, allocations: 3.25 kB / 427 MB, free: 42.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001137/0.3529, allocations: 0.5021 MB / 427.5 MB, free: 42.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.3529, allocations: 31.73 kB / 427.5 MB, free: 42.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.3529, allocations: 4.656 kB / 427.5 MB, free: 42.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002731/0.3532, allocations: 62.28 kB / 427.6 MB, free: 42.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/0.3534, allocations: 54.66 kB / 427.6 MB, free: 42.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00201/0.3554, allocations: 1.976 MB / 429.6 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.3558, allocations: 50.58 kB / 429.6 MB, free: 40.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.3558, allocations: 13.59 kB / 429.6 MB, free: 40.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004425/0.3563, allocations: 319.7 kB / 430 MB, free: 40.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003034/0.3566, allocations: 182.4 kB / 430.1 MB, free: 40.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000511/0.3571, allocations: 306 kB / 430.4 MB, free: 40.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.174e-06/0.3571, allocations: 0 / 430.4 MB, free: 40.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008063/0.3579, allocations: 427.6 kB / 430.9 MB, free: 40 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.358, allocations: 39.02 kB / 430.9 MB, free: 39.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.358, allocations: 3.562 kB / 430.9 MB, free: 39.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001184/0.3581, allocations: 54.56 kB / 431 MB, free: 39.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.3583, allocations: 51.41 kB / 431 MB, free: 39.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/0.3593, allocations: 1.764 MB / 432.8 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.3596, allocations: 38.52 kB / 432.8 MB, free: 38.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.3597, allocations: 14.48 kB / 432.8 MB, free: 38.27 MB / 350.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.0001248/0.3598, allocations: 203.2 kB / 433 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.3599, allocations: 59.84 kB / 433.1 MB, free: 38.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009407/0.3608, allocations: 399.6 kB / 433.5 MB, free: 37.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3608, allocations: 3.281 kB / 433.5 MB, free: 37.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.3608, allocations: 0 / 433.5 MB, free: 37.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.3609, allocations: 0 / 433.5 MB, free: 37.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004275/0.3613, allocations: 491 kB / 433.9 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3613, allocations: 0.9375 kB / 433.9 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002008/0.3615, allocations: 43.11 kB / 434 MB, free: 37.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/0.3617, allocations: 72.47 kB / 434.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.3618, allocations: 3.469 kB / 434.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001666/0.3634, allocations: 1.96 MB / 436 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3635, allocations: 0 / 436 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.3646, allocations: 0.5112 MB / 436.5 MB, free: 35.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.3648, allocations: 154.8 kB / 436.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.114e-05/0.3648, allocations: 7.188 kB / 436.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.3651, allocations: 30.88 kB / 436.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.924e-05/0.3652, allocations: 20.58 kB / 436.7 MB, free: 35.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.3652, allocations: 13.94 kB / 436.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006434/0.3658, allocations: 0.7104 MB / 437.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3658, allocations: 0 / 437.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007151/0.3666, allocations: 188.7 kB / 437.7 MB, free: 35.21 MB / 350.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.002181/0.3688, allocations: 1.319 MB / 439 MB, free: 34.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.3704, allocations: 0.805 MB / 439.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3704, allocations: 0 / 439.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006195/0.371, allocations: 292.5 kB / 440.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004794/0.3715, allocations: 87.98 kB / 440.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009097/0.3806, allocations: 6.336 MB / 446.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.3811, allocations: 0.9275 MB / 447.4 MB, free: 29.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.3813, allocations: 62.3 kB / 447.5 MB, free: 29.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.3816, allocations: 214.8 kB / 447.7 MB, free: 29.81 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3816, allocations: 2.906 kB / 447.7 MB, free: 29.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03535/0.4169, allocations: 12.98 MB / 460.7 MB, free: 28.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.81, allocations: 9.281 kB / 460.7 MB, free: 28.45 MB / 350.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)