Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_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_latest_EHPTlib_MapBased_TestingModels_TestIceConn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestIceConn,fileNamePrefix="EHPTlib_latest_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.001646/0.001646, allocations: 108 kB / 15.6 MB, free: 132 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.001995/0.001995, allocations: 198.4 kB / 16.53 MB, free: 6.668 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1561/0.1561, allocations: 8.022 MB / 298.4 MB, free: 2.383 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.91 kB / 360.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1019, allocations: 51.19 MB / 411.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestIceConn): time 0.005664/0.1076, allocations: 3.184 MB / 415.1 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.1092, allocations: 0.7989 MB / 415.9 MB, free: 6.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002994/0.1095, allocations: 7.938 kB / 415.9 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000548/0.1101, allocations: 287 kB / 416.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005115/0.1106, allocations: 215 kB / 416.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006561/0.1113, allocations: 290.9 kB / 416.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000547/0.1119, allocations: 499.1 kB / 417.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003401/0.1122, allocations: 195.1 kB / 417.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002661/0.1125, allocations: 211.3 kB / 417.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003072/0.1128, allocations: 287 kB / 417.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.35e-05/0.1129, allocations: 40 kB / 417.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001404/0.113, allocations: 67.98 kB / 418 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.1132, allocations: 187.4 kB / 418.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002515/0.1135, allocations: 302.2 kB / 418.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006309/0.1141, allocations: 0.6968 MB / 419.1 MB, free: 3.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1141, allocations: 4 kB / 419.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1141, allocations: 0 / 419.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.1141, allocations: 0 / 419.1 MB, free: 3.664 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.001591/0.1157, allocations: 1.021 MB / 420.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.1158, allocations: 8.031 kB / 420.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.018e-05/0.1159, allocations: 66.72 kB / 420.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.116, allocations: 79.94 kB / 420.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006436/0.1166, allocations: 0.5427 MB / 420.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.1167, allocations: 20.66 kB / 420.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.105e-05/0.1167, allocations: 39.94 kB / 420.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007436/0.1175, allocations: 377.2 kB / 421.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.1175, allocations: 4 kB / 421.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.1176, allocations: 8 kB / 421.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.1176, allocations: 12 kB / 421.3 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007293/0.1183, allocations: 262.4 kB / 421.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1463/0.2647, allocations: 1.67 MB / 423.2 MB, free: 43.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008984/0.2656, allocations: 281.3 kB / 423.5 MB, free: 43.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003045/0.2659, allocations: 108.5 kB / 423.6 MB, free: 43.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.266, allocations: 5 kB / 423.6 MB, free: 43.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005247/0.2665, allocations: 173.2 kB / 423.8 MB, free: 43.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 3.086e-06/0.2665, allocations: 0 / 423.8 MB, free: 43.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001946/0.2685, allocations: 0.6387 MB / 424.4 MB, free: 43.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/0.2685, allocations: 88.59 kB / 424.5 MB, free: 43.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.2696, allocations: 0.9717 MB / 425.5 MB, free: 43.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.863e-05/0.2696, allocations: 32.36 kB / 425.5 MB, free: 43.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.2698, allocations: 348.5 kB / 425.9 MB, free: 42.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.907e-05/0.2699, allocations: 70.61 kB / 425.9 MB, free: 42.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.163e-05/0.27, allocations: 57.31 kB / 426 MB, free: 42.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.649e-05/0.2701, allocations: 375.1 kB / 426.3 MB, free: 42.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003006/0.2704, allocations: 118.3 kB / 426.5 MB, free: 42.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/0.2707, allocations: 192.3 kB / 426.6 MB, free: 42.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005924/0.2713, allocations: 313.8 kB / 427 MB, free: 42.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.2713, allocations: 3.281 kB / 427 MB, free: 42.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001116/0.2724, allocations: 0.4999 MB / 427.5 MB, free: 42.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.077e-05/0.2725, allocations: 41.39 kB / 427.5 MB, free: 42.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.2725, allocations: 0 / 427.5 MB, free: 42.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002713/0.2728, allocations: 67.11 kB / 427.6 MB, free: 42.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.273, allocations: 49.83 kB / 427.6 MB, free: 42.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001961/0.275, allocations: 1.977 MB / 429.6 MB, free: 40.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.2753, allocations: 48.94 kB / 429.6 MB, free: 40.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.2754, allocations: 10.2 kB / 429.6 MB, free: 40.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005542/0.2759, allocations: 315.1 kB / 430 MB, free: 40.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002873/0.2762, allocations: 189.1 kB / 430.1 MB, free: 40.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005113/0.2767, allocations: 301.5 kB / 430.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.733e-06/0.2768, allocations: 3.125 kB / 430.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007548/0.2775, allocations: 432.3 kB / 430.9 MB, free: 39.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.2775, allocations: 35.27 kB / 430.9 MB, free: 39.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2776, allocations: 3.188 kB / 430.9 MB, free: 39.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000117/0.2777, allocations: 45.8 kB / 430.9 MB, free: 39.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.2779, allocations: 57.08 kB / 431 MB, free: 39.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009485/0.2788, allocations: 1.763 MB / 432.8 MB, free: 38.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.2791, allocations: 42.52 kB / 432.8 MB, free: 38.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.2791, allocations: 10.38 kB / 432.8 MB, free: 38.22 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 9.546e-05/0.2792, allocations: 206.6 kB / 433 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.798e-05/0.2793, allocations: 61.88 kB / 433.1 MB, free: 37.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009187/0.2802, allocations: 394.8 kB / 433.5 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2802, allocations: 4.859 kB / 433.5 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.2802, allocations: 0 / 433.5 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2803, allocations: 0 / 433.5 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003402/0.2806, allocations: 491.3 kB / 433.9 MB, free: 37.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2806, allocations: 3.938 kB / 433.9 MB, free: 37.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/0.2808, allocations: 40.19 kB / 434 MB, free: 37.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000209/0.281, allocations: 72.08 kB / 434.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.2811, allocations: 10.62 kB / 434.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001586/0.2827, allocations: 1.945 MB / 436 MB, free: 35.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2827, allocations: 0 / 436 MB, free: 35.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.2838, allocations: 0.5211 MB / 436.5 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.2839, allocations: 156.4 kB / 436.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.581e-05/0.284, allocations: 4.125 kB / 436.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000227/0.2842, allocations: 31.27 kB / 436.7 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.227e-05/0.2843, allocations: 31.48 kB / 436.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.2843, allocations: 7.281 kB / 436.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005608/0.2849, allocations: 0.7106 MB / 437.5 MB, free: 35.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2849, allocations: 0 / 437.5 MB, free: 35.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006407/0.2855, allocations: 187.4 kB / 437.7 MB, free: 35.16 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.001979/0.2875, allocations: 1.314 MB / 439 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.2889, allocations: 0.8065 MB / 439.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.289, allocations: 0 / 439.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005226/0.2895, allocations: 289.8 kB / 440.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004483/0.2899, allocations: 94.22 kB / 440.1 MB, free: 33.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00691/0.2969, allocations: 6.335 MB / 446.5 MB, free: 30.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.2972, allocations: 0.9243 MB / 447.4 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000169/0.2974, allocations: 69.64 kB / 447.5 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.2976, allocations: 214 kB / 447.7 MB, free: 29.77 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2976, allocations: 2.906 kB / 447.7 MB, free: 29.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03642/0.334, allocations: 12.98 MB / 460.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.86, allocations: 6.188 kB / 460.7 MB, free: 28.41 MB / 350.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceConn.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceConn.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceConn.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceConn.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_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_latest_EHPTlib_MapBased_TestingModels_TestIceConn.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceConn.pipe 2>&1)