Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.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.001471/0.001471, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001698/0.001698, allocations: 219 kB / 23.01 MB, free: 4.566 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.45/1.45, allocations: 230.6 MB / 256.8 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002649/0.002649, allocations: 282.1 kB / 313.5 MB, free: 2.84 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.212/1.212, allocations: 180.6 MB / 0.5377 GB, free: 13.04 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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: translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="empty",numberOfIntervals=100,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="empty",numberOfIntervals=100,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.002881/0.002881, allocations: 94.58 kB / 0.7409 GB, free: 28.38 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.21, allocations: 95.38 MB / 0.834 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.004162/0.2141, allocations: 2.079 MB / 0.836 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001413/0.2155, allocations: 0.6273 MB / 0.8366 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002121/0.2158, allocations: 7.938 kB / 0.8366 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.2159, allocations: 23.67 kB / 0.8367 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002018/0.2161, allocations: 35.66 kB / 0.8367 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003287/0.2165, allocations: 99.81 kB / 0.8368 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004539/0.2169, allocations: 279.4 kB / 0.8371 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002688/0.2172, allocations: 95.91 kB / 0.8372 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.2174, allocations: 123.6 kB / 0.8373 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.2176, allocations: 131.5 kB / 0.8374 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.533e-05/0.2176, allocations: 31.94 kB / 0.8374 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 4.475e-05/0.2177, allocations: 28 kB / 0.8375 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.406e-05/0.2177, allocations: 63.77 kB / 0.8375 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.2179, allocations: 119.4 kB / 0.8376 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004066/0.2183, allocations: 302.8 kB / 0.8379 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2183, allocations: 0 / 0.8379 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2183, allocations: 11.94 kB / 0.8379 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.2183, allocations: 0 / 0.8379 GB, free: 4.074 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001261/0.2196, allocations: 0.5889 MB / 0.8385 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.2196, allocations: 9.344 kB / 0.8385 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.527e-05/0.2197, allocations: 36.75 kB / 0.8386 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.2201, allocations: 203.5 kB / 0.8387 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.047e-05/0.2201, allocations: 16.81 kB / 0.8388 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.242e-05/0.2202, allocations: 20.38 kB / 0.8388 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006615/0.2208, allocations: 299.5 kB / 0.8391 GB, free: 2.82 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.2208, allocations: 0 / 0.8391 GB, free: 2.82 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.2209, allocations: 4 kB / 0.8391 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2209, allocations: 4 kB / 0.8391 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006631/0.2215, allocations: 205.6 kB / 0.8393 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.2227, allocations: 0.6104 MB / 0.8399 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00064/0.2234, allocations: 190.4 kB / 0.84 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003082/0.2237, allocations: 88.72 kB / 0.8401 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.2237, allocations: 0 / 0.8401 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005036/0.2242, allocations: 205.9 kB / 0.8403 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=19): time 1.813e-06/0.2242, allocations: 0 / 0.8403 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of matching and sorting (n=19): time 0.001077/0.2253, allocations: 341.2 kB / 0.8407 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.2254, allocations: 136.5 kB / 0.8408 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.2256, allocations: 216.2 kB / 0.841 GB, free: 0.7383 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.403e-05/0.2257, allocations: 41.7 kB / 0.841 GB, free: 0.6914 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.2258, allocations: 160.3 kB / 0.8412 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.459e-05/0.2258, allocations: 55.61 kB / 0.8412 GB, free: 488 kB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.226, allocations: 65.97 kB / 0.8413 GB, free: 416 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001749/0.2261, allocations: 338.8 kB / 0.8416 GB, free: 68 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003812/0.2265, allocations: 112.2 kB / 0.8417 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004205/0.2269, allocations: 186.1 kB / 0.8419 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007142/0.2276, allocations: 312.8 kB / 0.8422 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2276, allocations: 0 / 0.8422 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009415/0.2286, allocations: 431.5 kB / 0.8426 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.658e-05/0.2287, allocations: 89.09 kB / 0.8427 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2287, allocations: 0 / 0.8427 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.2287, allocations: 7.938 kB / 0.8427 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.2289, allocations: 47.89 kB / 0.8428 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.2289, allocations: 4 kB / 0.8428 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003332/0.2293, allocations: 67.89 kB / 0.8428 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.2293, allocations: 12 kB / 0.8428 GB, free: 14.72 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (minFloRatSaf.disErr.y,$PRE.minFloRatSaf.disErr.y,mEvaEmu_flow.count,$PRE.mEvaEmu_flow.count,mEvaEmu_flow.T_start,$PRE.mEvaEmu_flow.T_start,mConEmu_flow.count,$PRE.mConEmu_flow.count,mConEmu_flow.T_start,$PRE.mConEmu_flow.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,minFloRatSaf.hysEva.y,$PRE.minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,$PRE.minFloRatSaf.hysCon.y,minFloRatSaf.booPasThr.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,minFloRatSaf.intConOne.y,minFloRatSaf.disErr.local_set,minFloRatSaf.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001639/0.2295, allocations: 153.9 kB / 0.843 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.047e-05/0.2295, allocations: 23.86 kB / 0.843 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.197e-05/0.2296, allocations: 33.73 kB / 0.843 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.2296, allocations: 4 kB / 0.843 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2296, allocations: 0 / 0.843 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2296, allocations: 0 / 0.843 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.2307, allocations: 0.5857 MB / 0.8436 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2307, allocations: 0 / 0.8436 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.2309, allocations: 35.95 kB / 0.8436 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.2309, allocations: 0 / 0.8436 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.2309, allocations: 4 kB / 0.8437 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2309, allocations: 4 kB / 0.8437 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.2309, allocations: 7.922 kB / 0.8437 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007398/0.2317, allocations: 347.2 kB / 0.844 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.485e-05/0.2317, allocations: 23.89 kB / 0.844 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.41e-05/0.2317, allocations: 8 kB / 0.844 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.232, allocations: 51.86 kB / 0.8441 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.2322, allocations: 51.92 kB / 0.8441 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.2322, allocations: 11.98 kB / 0.8441 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001352/0.2323, allocations: 143.4 kB / 0.8443 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.2323, allocations: 3.938 kB / 0.8443 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000312/0.2326, allocations: 63.89 kB / 0.8443 GB, free: 13.11 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (minFloRatSaf.booPasThr.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,minFloRatSaf.disErr.y,minFloRatSaf.hysCon.y,minFloRatSaf.hysEva.y,ySetPul.T_start,ySetPul.count,mConEmu_flow.T_start,mConEmu_flow.count,mEvaEmu_flow.T_start,mEvaEmu_flow.count) * Number of discrete states: 7 (mEvaEmu_flow.count,mConEmu_flow.count,ySetPul.count,minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,hys.y,minFloRatSaf.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001558/0.2328, allocations: 119.1 kB / 0.8445 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008785/0.2337, allocations: 415.1 kB / 0.8448 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2337, allocations: 0 / 0.8448 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003469/0.234, allocations: 104.2 kB / 0.8449 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.2344, allocations: 51.48 kB / 0.845 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009281/0.2353, allocations: 415.7 kB / 0.8454 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.2358, allocations: 0.7439 MB / 0.8461 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.2359, allocations: 23.42 kB / 0.8461 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of SimCode: time 4.31e-07/0.2359, allocations: 0 / 0.8461 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of Templates: time 0.005744/0.2416, allocations: 3.096 MB / 0.8492 GB, free: 8.086 MB / 0.5919 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.616835759952664] Failed to read output from testmodel.py, exit status != 0: 0.24986899504438043 0.26617793500000003 0.044674984 Calling exit ...