Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 117.4 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.553/1.553, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo): time 0.04308/0.04308, allocations: 8.551 MB / 318.1 MB, free: 15.97 MB / 254.1 MB " [Timeout remaining time 180] Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceConnOO",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceConnOO",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: EHPTlib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 72.75 kB / 442.5 MB, free: 40.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09812, allocations: 55.39 MB / 497.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO): time 0.005164/0.1033, allocations: 3.932 MB / 0.49 GB, free: 3.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003494/0.1068, allocations: 1.849 MB / 0.4918 GB, free: 1.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007112/0.1075, allocations: 15.94 kB / 0.4918 GB, free: 1.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006855/0.1082, allocations: 210.8 kB / 0.492 GB, free: 1.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001004/0.1092, allocations: 286.5 kB / 0.4923 GB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.1102, allocations: 379.3 kB / 0.4927 GB, free: 456 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0012/0.1114, allocations: 0.6783 MB / 0.4933 GB, free: 15.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006987/0.1121, allocations: 237.3 kB / 0.4936 GB, free: 15.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008094/0.1129, allocations: 298.8 kB / 0.4938 GB, free: 15.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006454/0.1136, allocations: 346.5 kB / 0.4942 GB, free: 14.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001404/0.1137, allocations: 68 kB / 0.4942 GB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003296/0.114, allocations: 120 kB / 0.4944 GB, free: 14.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002611/0.1143, allocations: 227.3 kB / 0.4946 GB, free: 14.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004961/0.1148, allocations: 381.7 kB / 0.4949 GB, free: 14.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001414/0.1162, allocations: 0.9453 MB / 0.4959 GB, free: 13.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1162, allocations: 0 / 0.4959 GB, free: 13.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1162, allocations: 0 / 0.4959 GB, free: 13.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.514e-05/0.1163, allocations: 0 / 0.4959 GB, free: 13.16 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.002787/0.119, allocations: 1.18 MB / 0.497 GB, free: 11.92 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.1191, allocations: 12.03 kB / 0.497 GB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.626e-05/0.1191, allocations: 9.188 kB / 0.497 GB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001253/0.1192, allocations: 90.7 kB / 0.4971 GB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001994/0.1194, allocations: 96.33 kB / 0.4972 GB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.1205, allocations: 0.6172 MB / 0.4978 GB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.491e-05/0.1205, allocations: 37 kB / 0.4979 GB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.999e-05/0.1206, allocations: 48 kB / 0.4979 GB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.1216, allocations: 483.8 kB / 0.4984 GB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.1217, allocations: 7.938 kB / 0.4984 GB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.773e-05/0.1217, allocations: 20 kB / 0.4984 GB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.1217, allocations: 12 kB / 0.4984 GB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009592/0.1227, allocations: 351.7 kB / 0.4987 GB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003034/0.1257, allocations: 1.875 MB / 0.5006 GB, free: 8.137 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009012/0.1266, allocations: 338.1 kB / 0.5009 GB, free: 7.801 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003756/0.127, allocations: 124.7 kB / 0.501 GB, free: 7.676 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.296e-05/0.127, allocations: 4 kB / 0.501 GB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005572/0.1276, allocations: 211.7 kB / 0.5012 GB, free: 7.453 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 4.789e-06/0.1276, allocations: 0 / 0.5012 GB, free: 7.453 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.002102/0.1297, allocations: 0.6433 MB / 0.5018 GB, free: 6.781 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.1298, allocations: 63.39 kB / 0.5019 GB, free: 6.707 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/0.1313, allocations: 0.9457 MB / 0.5028 GB, free: 5.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.095e-05/0.1313, allocations: 33.7 kB / 0.5029 GB, free: 5.711 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003994/0.1317, allocations: 384.4 kB / 0.5032 GB, free: 5.332 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.1319, allocations: 99.12 kB / 0.5033 GB, free: 5.234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.132, allocations: 86.11 kB / 0.5034 GB, free: 5.145 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1322, allocations: 325.9 kB / 0.5037 GB, free: 4.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004179/0.1326, allocations: 136.8 kB / 0.5038 GB, free: 4.684 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004507/0.1331, allocations: 203.1 kB / 0.504 GB, free: 4.461 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008585/0.1339, allocations: 376 kB / 0.5044 GB, free: 4.062 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.1339, allocations: 4 kB / 0.5044 GB, free: 4.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001499/0.1354, allocations: 0.5306 MB / 0.5049 GB, free: 3.512 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/0.1355, allocations: 37.64 kB / 0.5049 GB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.1355, allocations: 4 kB / 0.505 GB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003487/0.1358, allocations: 56.81 kB / 0.505 GB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.1362, allocations: 76.05 kB / 0.5051 GB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001996/0.1382, allocations: 1.822 MB / 0.5069 GB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003729/0.1385, allocations: 47.69 kB / 0.5069 GB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.632e-05/0.1386, allocations: 19.98 kB / 0.5069 GB, free: 1.301 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: 9 (stepOff.y,stepOn.y,powReq.count,$PRE.powReq.count,powReq.T_start,$PRE.powReq.T_start,toConnIceON.conn.iceON,$whenCondition1,ice.tokgFuel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * 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.0003919/0.139, allocations: 273.2 kB / 0.5072 GB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.1391, allocations: 71.53 kB / 0.5073 GB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.1403, allocations: 446.2 kB / 0.5077 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.1403, allocations: 4 kB / 0.5077 GB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.1403, allocations: 4 kB / 0.5077 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.1403, allocations: 0 / 0.5077 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007233/0.141, allocations: 0.583 MB / 0.5083 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.141, allocations: 0 / 0.5083 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002746/0.1413, allocations: 39.97 kB / 0.5083 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002159/0.1415, allocations: 60.81 kB / 0.5084 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/0.1415, allocations: 4 kB / 0.5084 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002054/0.1436, allocations: 1.826 MB / 0.5101 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1436, allocations: 3.938 kB / 0.5101 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001569/0.1452, allocations: 0.5924 MB / 0.5107 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002473/0.1454, allocations: 172.6 kB / 0.5109 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.927e-05/0.1455, allocations: 4 kB / 0.5109 GB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.1458, allocations: 31.91 kB / 0.5109 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.1459, allocations: 27.97 kB / 0.5109 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.1459, allocations: 15.98 kB / 0.511 GB, free: 12.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001056/0.147, allocations: 0.6786 MB / 0.5116 GB, free: 12.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.147, allocations: 0 / 0.5116 GB, free: 12.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006536/0.1476, allocations: 135.7 kB / 0.5118 GB, free: 12.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (loadTorque.phi,ice.inertia.w,ice.tokgFuel.y) * Number of discrete variables: 6 ($whenCondition1,toConnIceON.conn.iceON,powReq.T_start,powReq.count,stepOn.y,stepOff.y) * Number of discrete states: 1 (powReq.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.004296/0.1519, allocations: 1.644 MB / 0.5134 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.1535, allocations: 0.4981 MB / 0.5138 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.1535, allocations: 0 / 0.5138 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00066/0.1542, allocations: 279 kB / 0.5141 GB, free: 9.895 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006924/0.1548, allocations: 82.95 kB / 0.5142 GB, free: 9.812 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.166, allocations: 6.555 MB / 0.5206 GB, free: 3.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006902/0.1667, allocations: 0.9635 MB / 0.5215 GB, free: 2.113 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002378/0.167, allocations: 76.34 kB / 0.5216 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003939/0.1674, allocations: 263.3 kB / 0.5219 GB, free: 1.777 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1674, allocations: 0 / 0.5219 GB, free: 1.777 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05259/0.22, allocations: 14.41 MB / 0.5359 GB, free: 3.457 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.15, allocations: 4.062 kB / 0.5359 GB, free: 3.453 MB / 398.1 MB " [Timeout remaining time 647] (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceConnOO_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestICE_TestIceConnOO.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestICE.TestIceConnOO.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.12121168000158] Failed to read output from testmodel.py, exit status != 0: 13.364861279027537 13.390279532 13.269215002 Calling exit ...