Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.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.001262/0.001262, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001437/0.001437, allocations: 217.4 kB / 23.03 MB, free: 4.922 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/package.mo): time 0.04316/0.04316, allocations: 8.533 MB / 321.8 MB, free: 10.43 MB / 254.1 MB " [Timeout remaining time 180] Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/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.TestIceConn,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestICE_TestIceConn",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestICE.TestIceConn,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestICE_TestIceConn",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.002048/0.002048, allocations: 67.89 kB / 447.6 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.101, allocations: 55.42 MB / 0.4913 GB, free: 8.16 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestICE.TestIceConn): time 0.005732/0.1067, allocations: 3.595 MB / 0.4948 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.1089, allocations: 1.164 MB / 0.4959 GB, free: 3.379 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.1091, allocations: 11.94 kB / 0.4959 GB, free: 3.367 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004705/0.1096, allocations: 206.9 kB / 0.4961 GB, free: 3.164 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006186/0.1102, allocations: 278.6 kB / 0.4964 GB, free: 2.891 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007615/0.111, allocations: 372.6 kB / 0.4967 GB, free: 2.531 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007448/0.1117, allocations: 0.6433 MB / 0.4974 GB, free: 1.883 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003799/0.1121, allocations: 199.9 kB / 0.4976 GB, free: 1.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003916/0.1125, allocations: 278.8 kB / 0.4978 GB, free: 1.406 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003855/0.1129, allocations: 322.6 kB / 0.4981 GB, free: 1.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.375e-05/0.113, allocations: 56 kB / 0.4982 GB, free: 1.035 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002096/0.1132, allocations: 123.9 kB / 0.4983 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002316/0.1134, allocations: 215.3 kB / 0.4985 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002719/0.1137, allocations: 266.4 kB / 0.4988 GB, free: 452 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.1147, allocations: 0.9103 MB / 0.4997 GB, free: 15.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1147, allocations: 0 / 0.4997 GB, free: 15.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1147, allocations: 0 / 0.4997 GB, free: 15.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1147, allocations: 4 kB / 0.4997 GB, free: 15.52 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.001824/0.1165, allocations: 1.051 MB / 0.5007 GB, free: 14.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1166, allocations: 8.031 kB / 0.5007 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.877e-05/0.1166, allocations: 17.17 kB / 0.5007 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.794e-05/0.1167, allocations: 78.72 kB / 0.5008 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.1168, allocations: 96.33 kB / 0.5009 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008106/0.1177, allocations: 0.5297 MB / 0.5014 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.662e-05/0.1177, allocations: 33 kB / 0.5014 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.701e-05/0.1178, allocations: 43.95 kB / 0.5015 GB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008925/0.1187, allocations: 435.8 kB / 0.5019 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.1187, allocations: 4 kB / 0.5019 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.371e-05/0.1187, allocations: 16 kB / 0.5019 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.1187, allocations: 12 kB / 0.5019 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008313/0.1196, allocations: 315.7 kB / 0.5022 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/0.1221, allocations: 1.56 MB / 0.5037 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008565/0.123, allocations: 310.7 kB / 0.504 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003301/0.1233, allocations: 120.7 kB / 0.5042 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.1234, allocations: 4 kB / 0.5042 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004657/0.1238, allocations: 183.2 kB / 0.5043 GB, free: 10.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.914e-06/0.1238, allocations: 0 / 0.5043 GB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001711/0.1255, allocations: 0.5328 MB / 0.5049 GB, free: 10.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.1256, allocations: 51.41 kB / 0.5049 GB, free: 9.949 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/0.1268, allocations: 0.9418 MB / 0.5058 GB, free: 8.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.1268, allocations: 33.7 kB / 0.5059 GB, free: 8.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004126/0.1272, allocations: 364.6 kB / 0.5062 GB, free: 8.594 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.2e-05/0.1273, allocations: 91.22 kB / 0.5063 GB, free: 8.504 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.1275, allocations: 78.02 kB / 0.5064 GB, free: 8.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002262/0.1277, allocations: 378.8 kB / 0.5067 GB, free: 8.039 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003943/0.1281, allocations: 158.4 kB / 0.5069 GB, free: 7.879 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004302/0.1285, allocations: 221.4 kB / 0.5071 GB, free: 7.633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007374/0.1293, allocations: 345.6 kB / 0.5074 GB, free: 7.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1293, allocations: 0 / 0.5074 GB, free: 7.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001176/0.1305, allocations: 0.5387 MB / 0.5079 GB, free: 6.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/0.1305, allocations: 29.7 kB / 0.508 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1305, allocations: 4 kB / 0.508 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00033/0.1308, allocations: 60.81 kB / 0.508 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.1311, allocations: 80.03 kB / 0.5081 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/0.1331, allocations: 1.699 MB / 0.5098 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003016/0.1334, allocations: 51.78 kB / 0.5098 GB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.1334, allocations: 12.06 kB / 0.5098 GB, free: 4.652 MB / 382.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: 6 (powReq.count,$PRE.powReq.count,powReq.T_start,$PRE.powReq.T_start,$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 (40): * Single equations (assignments): 38 * 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.0003525/0.1338, allocations: 277.6 kB / 0.5101 GB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.389e-05/0.1339, allocations: 67.53 kB / 0.5102 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.1349, allocations: 413 kB / 0.5106 GB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1349, allocations: 8 kB / 0.5106 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.1349, allocations: 0 / 0.5106 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.1349, allocations: 0 / 0.5106 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005829/0.1355, allocations: 468.3 kB / 0.511 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1355, allocations: 0 / 0.511 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.1358, allocations: 47.89 kB / 0.5111 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002094/0.136, allocations: 61 kB / 0.5111 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.136, allocations: 11.94 kB / 0.5111 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001834/0.1379, allocations: 1.691 MB / 0.5128 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.1379, allocations: 7.969 kB / 0.5128 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.1392, allocations: 0.5485 MB / 0.5133 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/0.1393, allocations: 87.47 kB / 0.5134 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.893e-05/0.1394, allocations: 8 kB / 0.5134 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.1397, allocations: 23.97 kB / 0.5134 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.937e-05/0.1397, allocations: 23.95 kB / 0.5135 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.1398, allocations: 12 kB / 0.5135 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000881/0.1406, allocations: 0.6786 MB / 0.5141 GB, free: 44 kB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1406, allocations: 0 / 0.5141 GB, free: 44 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.1906/0.3312, allocations: 126.9 kB / 0.5142 GB, free: 26.61 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: 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 (21): * Single equations (assignments): 18 * 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.003859/0.3351, allocations: 1.629 MB / 0.5158 GB, free: 25.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009785/0.3361, allocations: 0.4956 MB / 0.5163 GB, free: 25.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3361, allocations: 6.969 kB / 0.5163 GB, free: 25.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004349/0.3365, allocations: 269.2 kB / 0.5166 GB, free: 25.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004954/0.337, allocations: 93.3 kB / 0.5167 GB, free: 25.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00785/0.3448, allocations: 6.471 MB / 0.523 GB, free: 23.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.3452, allocations: 353.6 kB / 0.5233 GB, free: 23.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.3454, allocations: 77.22 kB / 0.5234 GB, free: 23.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.3457, allocations: 240.8 kB / 0.5236 GB, free: 23.59 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3457, allocations: 0 / 0.5236 GB, free: 23.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04793/0.3937, allocations: 14.26 MB / 0.5376 GB, free: 19.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.13, allocations: 6.531 kB / 0.5376 GB, free: 19.11 MB / 382.1 MB " [Timeout remaining time 646] (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_EHPTlib_MapBased_TestingModels_TestICE_TestIceConn_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=50 --tolerance=1e-06 EHPTlib_EHPTlib_MapBased_TestingModels_TestICE_TestIceConn.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestICE.TestIceConn.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.855123899062164] Failed to read output from testmodel.py, exit status != 0: 14.368036295985803 14.385128932 14.267794626 Calling exit ...