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.0008939/0.0008939, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.0008063/0.0008063, allocations: 172.4 kB / 16.26 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.266/1.266, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1508/0.1508, allocations: 8.023 MB / 299.5 MB, free: 3.34 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003194/0.0003193, allocations: 12 kB / 362.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1127, allocations: 52.18 MB / 414.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestIceConn): time 0.004124/0.1168, allocations: 2.834 MB / 417.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.1183, allocations: 0.7719 MB / 418.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.1185, allocations: 11.94 kB / 418.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005509/0.1191, allocations: 279.3 kB / 418.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003527/0.1194, allocations: 187.3 kB / 418.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006032/0.1201, allocations: 263.2 kB / 419 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004712/0.1205, allocations: 467.1 kB / 419.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000348/0.1209, allocations: 186.6 kB / 419.6 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002192/0.1211, allocations: 171.3 kB / 419.8 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003077/0.1214, allocations: 251 kB / 420.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.751e-05/0.1215, allocations: 15.94 kB / 420.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.1216, allocations: 43.98 kB / 420.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.1218, allocations: 163.4 kB / 420.3 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002556/0.1221, allocations: 283.9 kB / 420.6 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000628/0.1227, allocations: 0.6537 MB / 421.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1227, allocations: 0 / 421.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.1227, allocations: 0 / 421.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1227, allocations: 0 / 421.2 MB, free: 3.051 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.001677/0.1244, allocations: 0.9202 MB / 422.1 MB, free: 2.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.1245, allocations: 12.03 kB / 422.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.478e-05/0.1246, allocations: 70.66 kB / 422.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.1247, allocations: 76 kB / 422.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006476/0.1253, allocations: 0.5428 MB / 422.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.1254, allocations: 28.66 kB / 422.9 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.67e-05/0.1254, allocations: 28 kB / 422.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007639/0.1262, allocations: 397.3 kB / 423.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.1262, allocations: 3.938 kB / 423.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.1263, allocations: 16 kB / 423.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.1263, allocations: 8 kB / 423.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007648/0.1271, allocations: 298.4 kB / 423.6 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1905/0.3175, allocations: 1.68 MB / 425.3 MB, free: 41.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009212/0.3185, allocations: 325.5 kB / 425.6 MB, free: 41.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003205/0.3188, allocations: 125.5 kB / 425.7 MB, free: 41.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.893e-05/0.3189, allocations: 3.844 kB / 425.7 MB, free: 41.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005075/0.3194, allocations: 193.1 kB / 425.9 MB, free: 41.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 3.968e-06/0.3194, allocations: 0 / 425.9 MB, free: 41.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001934/0.3213, allocations: 0.7405 MB / 426.6 MB, free: 41.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.3214, allocations: 80.08 kB / 426.7 MB, free: 41.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009011/0.3223, allocations: 0.9731 MB / 427.7 MB, free: 41.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.3223, allocations: 29.2 kB / 427.7 MB, free: 41.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.3226, allocations: 347.7 kB / 428.1 MB, free: 40.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.442e-05/0.3226, allocations: 74.8 kB / 428.1 MB, free: 40.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.3227, allocations: 25.81 kB / 428.2 MB, free: 40.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3228, allocations: 384.5 kB / 428.5 MB, free: 40.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003562/0.3232, allocations: 122.4 kB / 428.7 MB, free: 40.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003715/0.3236, allocations: 215.1 kB / 428.9 MB, free: 40.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006737/0.3243, allocations: 352.9 kB / 429.2 MB, free: 40.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.3243, allocations: 3.281 kB / 429.2 MB, free: 40.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001161/0.3254, allocations: 0.558 MB / 429.8 MB, free: 40.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.734e-05/0.3255, allocations: 195.3 kB / 430 MB, free: 39.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.3255, allocations: 7.281 kB / 430 MB, free: 39.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/0.3258, allocations: 61.05 kB / 430 MB, free: 39.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/0.326, allocations: 56.34 kB / 430.1 MB, free: 39.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001912/0.3279, allocations: 1.853 MB / 431.9 MB, free: 38.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003018/0.3282, allocations: 57.97 kB / 432 MB, free: 38.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.3283, allocations: 10.25 kB / 432 MB, free: 38.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.182e-06/0.3283, allocations: 6.656 kB / 432 MB, free: 38.58 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007427/0.329, allocations: 384.1 kB / 432.4 MB, free: 38.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3291, allocations: 3.969 kB / 432.4 MB, free: 38.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000116/0.3292, allocations: 46.23 kB / 432.4 MB, free: 38.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.3294, allocations: 62.84 kB / 432.5 MB, free: 38.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.3304, allocations: 1.585 MB / 434.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.3307, allocations: 47.12 kB / 434.1 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.3307, allocations: 12.59 kB / 434.1 MB, free: 37.13 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.000348/0.3311, allocations: 338.9 kB / 434.5 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.859e-05/0.3311, allocations: 65 kB / 434.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000997/0.3321, allocations: 440.3 kB / 435 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.3322, allocations: 10.78 kB / 435 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/0.3322, allocations: 0 / 435 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3322, allocations: 1.453 kB / 435 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004626/0.3326, allocations: 488.7 kB / 435.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3326, allocations: 0.6562 kB / 435.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002044/0.3329, allocations: 46.59 kB / 435.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002278/0.3331, allocations: 78.42 kB / 435.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.3331, allocations: 10.88 kB / 435.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001724/0.3349, allocations: 1.836 MB / 437.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3349, allocations: 10.3 kB / 437.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.336, allocations: 0.5744 MB / 438 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.3362, allocations: 167 kB / 438.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.09e-05/0.3362, allocations: 7.344 kB / 438.2 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.3365, allocations: 37.78 kB / 438.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.355e-05/0.3366, allocations: 20.59 kB / 438.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.3366, allocations: 10.11 kB / 438.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005984/0.3372, allocations: 0.71 MB / 439 MB, free: 34.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3372, allocations: 0 / 439 MB, free: 34.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006964/0.3379, allocations: 200 kB / 439.2 MB, free: 34.51 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.002109/0.34, allocations: 1.364 MB / 440.5 MB, free: 33.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.3415, allocations: 0.8657 MB / 441.4 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3416, allocations: 0 / 441.4 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005845/0.3421, allocations: 328 kB / 441.7 MB, free: 33.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004895/0.3426, allocations: 82.67 kB / 441.8 MB, free: 33.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007826/0.3505, allocations: 6.683 MB / 448.5 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.3508, allocations: 0.9262 MB / 449.4 MB, free: 29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001731/0.351, allocations: 63.95 kB / 449.5 MB, free: 28.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.3512, allocations: 211.5 kB / 449.7 MB, free: 28.82 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3512, allocations: 0 / 449.7 MB, free: 28.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.3741, allocations: 12.11 MB / 461.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001726/0.3744, allocations: 280.7 kB / 462 MB, free: 27.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/2.413, allocations: 0 / 462 MB, free: 27.53 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestIceConn_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestIceConn.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestIceConn.pipe 2>&1)