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.001425/0.001425, allocations: 104.3 kB / 19.71 MB, free: 2.148 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.001742/0.001742, allocations: 207.9 kB / 23 MB, free: 4.965 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.429/1.429, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.002546/0.002546, allocations: 285.3 kB / 313.5 MB, free: 2.613 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.238/1.238, allocations: 180.6 MB / 0.5377 GB, free: 14.56 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.003/0.003, allocations: 98.83 kB / 0.7408 GB, free: 27.86 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1962, allocations: 95.38 MB / 0.8339 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003762/0.1999, allocations: 2.004 MB / 0.8359 GB, free: 5.809 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.2011, allocations: 0.5806 MB / 0.8364 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.2013, allocations: 4 kB / 0.8364 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.2014, allocations: 27.66 kB / 0.8365 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001533/0.2016, allocations: 43.59 kB / 0.8365 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.2018, allocations: 95.88 kB / 0.8366 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003648/0.2022, allocations: 283.3 kB / 0.8369 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002568/0.2024, allocations: 91.86 kB / 0.837 GB, free: 4.68 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.2026, allocations: 115.6 kB / 0.8371 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.2028, allocations: 123.4 kB / 0.8372 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.581e-05/0.2028, allocations: 28 kB / 0.8372 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 4.947e-05/0.2029, allocations: 28 kB / 0.8372 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.27e-05/0.203, allocations: 63.81 kB / 0.8373 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.2031, allocations: 95.52 kB / 0.8374 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003688/0.2034, allocations: 314.8 kB / 0.8377 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2034, allocations: 0 / 0.8377 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2034, allocations: 0 / 0.8377 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.231e-06/0.2035, allocations: 0 / 0.8377 GB, free: 3.926 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.001242/0.2047, allocations: 0.5928 MB / 0.8383 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.2047, allocations: 13.34 kB / 0.8383 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.582e-05/0.2048, allocations: 36.75 kB / 0.8383 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003865/0.2052, allocations: 203.5 kB / 0.8385 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.2052, allocations: 16.81 kB / 0.8385 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.2053, allocations: 24.31 kB / 0.8386 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007103/0.206, allocations: 368.7 kB / 0.8389 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.206, allocations: 0 / 0.8389 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.781e-05/0.206, allocations: 7.938 kB / 0.8389 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.206, allocations: 12 kB / 0.8389 GB, free: 2.555 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006847/0.2067, allocations: 201.6 kB / 0.8391 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.2079, allocations: 0.5213 MB / 0.8396 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006874/0.2086, allocations: 186.4 kB / 0.8398 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003109/0.2089, allocations: 88.78 kB / 0.8399 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.2089, allocations: 4 kB / 0.8399 GB, free: 1.52 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005094/0.2094, allocations: 197.8 kB / 0.8401 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.2094, allocations: 0 / 0.8401 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of matching and sorting (n=19): time 0.001074/0.2105, allocations: 337.2 kB / 0.8404 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.68e-05/0.2106, allocations: 144.5 kB / 0.8405 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.2108, allocations: 224.1 kB / 0.8408 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.2108, allocations: 37.64 kB / 0.8408 GB, free: 0.5391 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.2109, allocations: 156.4 kB / 0.8409 GB, free: 392 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.013e-05/0.211, allocations: 55.59 kB / 0.841 GB, free: 336 kB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.2111, allocations: 73.92 kB / 0.8411 GB, free: 256 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001758/0.2113, allocations: 334.8 kB / 0.8414 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000414/0.2117, allocations: 197.3 kB / 0.8416 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005266/0.2122, allocations: 344.4 kB / 0.8419 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006908/0.2129, allocations: 316.7 kB / 0.8422 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2129, allocations: 0 / 0.8422 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009838/0.2139, allocations: 0.5045 MB / 0.8427 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.962e-05/0.214, allocations: 89.09 kB / 0.8428 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.214, allocations: 4 kB / 0.8428 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.214, allocations: 0 / 0.8428 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.2142, allocations: 55.98 kB / 0.8428 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.2143, allocations: 4 kB / 0.8428 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.2146, allocations: 63.83 kB / 0.8429 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.637e-05/0.2146, allocations: 12 kB / 0.8429 GB, free: 14.17 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.0001669/0.2148, allocations: 148.4 kB / 0.843 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.798e-05/0.2148, allocations: 27.86 kB / 0.8431 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.282e-05/0.2149, allocations: 29.8 kB / 0.8431 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.2149, allocations: 7.938 kB / 0.8431 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2149, allocations: 0 / 0.8431 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2149, allocations: 0 / 0.8431 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.216, allocations: 0.52 MB / 0.8436 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.216, allocations: 4 kB / 0.8436 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.2162, allocations: 27.97 kB / 0.8437 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.2162, allocations: 3.938 kB / 0.8437 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.2162, allocations: 7.984 kB / 0.8437 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.2162, allocations: 7.938 kB / 0.8437 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2162, allocations: 4 kB / 0.8437 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007932/0.217, allocations: 351.2 kB / 0.844 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.217, allocations: 27.8 kB / 0.844 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.963e-05/0.2171, allocations: 15.88 kB / 0.8441 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003101/0.2174, allocations: 47.92 kB / 0.8441 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.2175, allocations: 47.92 kB / 0.8441 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.2175, allocations: 11.98 kB / 0.8442 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001382/0.2177, allocations: 147.4 kB / 0.8443 GB, free: 12.69 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.2177, allocations: 0 / 0.8443 GB, free: 12.69 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003126/0.218, allocations: 59.89 kB / 0.8444 GB, free: 12.63 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.0001625/0.2181, allocations: 115.2 kB / 0.8445 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009905/0.2191, allocations: 0.4964 MB / 0.8449 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.2191, allocations: 0 / 0.8449 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003722/0.2195, allocations: 110.8 kB / 0.8451 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00037/0.2199, allocations: 34.22 kB / 0.8451 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009506/0.2208, allocations: 418.4 kB / 0.8455 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.221, allocations: 130.1 kB / 0.8456 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.2211, allocations: 23.42 kB / 0.8456 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of SimCode: time 4.01e-07/0.2211, allocations: 0 / 0.8456 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of Templates: time 0.005621/0.2267, allocations: 3.157 MB / 0.8487 GB, free: 8.066 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.586479575838894] Failed to read output from testmodel.py, exit status != 0: 0.23447151109576225 0.24918757600000002 0.042781105 Calling exit ...