Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|minFloRatSaf.sigBus.mEvaMea_flow|minFloRatSaf.sigBus.mConMea_flow|minFloRatSaf.mEvaMin_flow|minFloRatSaf.mConMin_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|minFloRatSaf.sigBus.mEvaMea_flow|minFloRatSaf.sigBus.mConMea_flow|minFloRatSaf.mEvaMin_flow|minFloRatSaf.mConMin_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 108.4 kB / 16.27 MB, free: 5.984 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.001343/0.001343, allocations: 187.8 kB / 17.2 MB, free: 5.609 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.412/1.412, allocations: 222.9 MB / 240.9 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.759/2.759, allocations: 482.4 MB / 0.7553 GB, free: 6.992 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 72.2 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8088/0.8108, allocations: 162.2 MB / 1.083 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003394/0.8142, allocations: 2.028 MB / 1.085 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00114/0.8154, allocations: 0.5762 MB / 1.085 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.8155, allocations: 3.656 kB / 1.085 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.8157, allocations: 28.33 kB / 1.086 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.8159, allocations: 36.69 kB / 1.086 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.8162, allocations: 95.33 kB / 1.086 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.8165, allocations: 291.7 kB / 1.086 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002776/0.8168, allocations: 118.3 kB / 1.086 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.817, allocations: 122.3 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.8172, allocations: 135.4 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.326e-05/0.8173, allocations: 28.16 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.181e-05/0.8174, allocations: 32.41 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.044e-05/0.8174, allocations: 57.2 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.8176, allocations: 122.8 kB / 1.087 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004332/0.8181, allocations: 289.3 kB / 1.087 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.8181, allocations: 0.6875 kB / 1.087 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.293e-06/0.8181, allocations: 0 / 1.087 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.605e-06/0.8181, allocations: 0.9062 kB / 1.087 GB, free: 15.17 MB / 0.8419 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.001376/0.8195, allocations: 0.66 MB / 1.087 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.8195, allocations: 9.844 kB / 1.087 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.415e-05/0.8196, allocations: 27.89 kB / 1.087 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.82, allocations: 266.2 kB / 1.088 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.82, allocations: 15.33 kB / 1.088 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.244e-05/0.8201, allocations: 24.16 kB / 1.088 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007203/0.8208, allocations: 285.1 kB / 1.088 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.8208, allocations: 0 / 1.088 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.8209, allocations: 11.09 kB / 1.088 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.8209, allocations: 5.594 kB / 1.088 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000753/0.8216, allocations: 207.4 kB / 1.088 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.823, allocations: 0.6508 MB / 1.089 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007129/0.8237, allocations: 199.2 kB / 1.089 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/0.8241, allocations: 95.94 kB / 1.089 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.8241, allocations: 1.469 kB / 1.089 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000601/0.8247, allocations: 187.9 kB / 1.089 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 4.228e-06/0.8247, allocations: 3.938 kB / 1.089 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001198/0.8259, allocations: 346.3 kB / 1.09 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.826, allocations: 141.9 kB / 1.09 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002629/0.8263, allocations: 209.5 kB / 1.09 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/0.8264, allocations: 36.33 kB / 1.09 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.8265, allocations: 162.1 kB / 1.09 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.135e-05/0.8266, allocations: 43.39 kB / 1.09 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.8267, allocations: 69 kB / 1.09 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.8269, allocations: 335.9 kB / 1.091 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003846/0.8273, allocations: 112 kB / 1.091 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000457/0.8277, allocations: 191.2 kB / 1.091 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007272/0.8285, allocations: 310 kB / 1.091 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.8285, allocations: 1.25 kB / 1.091 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001023/0.8295, allocations: 425.8 kB / 1.092 GB, free: 12 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.194e-05/0.8296, allocations: 93.08 kB / 1.092 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.8296, allocations: 1.094 kB / 1.092 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.8296, allocations: 6.469 kB / 1.092 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002637/0.8299, allocations: 47.8 kB / 1.092 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.8299, allocations: 4.188 kB / 1.092 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.8303, allocations: 67.34 kB / 1.092 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.8304, allocations: 9.578 kB / 1.092 GB, free: 11.88 MB / 0.8419 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.0001974/0.8306, allocations: 151.8 kB / 1.092 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.311e-05/0.8306, allocations: 19.08 kB / 1.092 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.753e-05/0.8307, allocations: 32.66 kB / 1.092 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.8307, allocations: 5.438 kB / 1.092 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.8307, allocations: 1.25 kB / 1.092 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.8307, allocations: 5.125 kB / 1.092 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.8319, allocations: 0.6086 MB / 1.093 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.832, allocations: 0 / 1.093 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.8321, allocations: 35.8 kB / 1.093 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.8321, allocations: 0.6562 kB / 1.093 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.8322, allocations: 4.219 kB / 1.093 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.8322, allocations: 0.5938 kB / 1.093 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.8322, allocations: 5.297 kB / 1.093 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008355/0.833, allocations: 361.9 kB / 1.093 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.988e-05/0.8331, allocations: 95.75 kB / 1.093 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.302e-05/0.8332, allocations: 8.719 kB / 1.093 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003407/0.8335, allocations: 41.89 kB / 1.093 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.8337, allocations: 54.86 kB / 1.093 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.8337, allocations: 7.891 kB / 1.093 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001649/0.8339, allocations: 152.3 kB / 1.093 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.6e-07/0.8339, allocations: 0 / 1.093 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003395/0.8343, allocations: 62.31 kB / 1.093 GB, free: 10.86 MB / 0.8419 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.0001802/0.8344, allocations: 121.7 kB / 1.094 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00102/0.8355, allocations: 439 kB / 1.094 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.8355, allocations: 0 / 1.094 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000405/0.8359, allocations: 113 kB / 1.094 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004016/0.8363, allocations: 40.28 kB / 1.094 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.8374, allocations: 404.6 kB / 1.095 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.8379, allocations: 0.7403 MB / 1.095 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.838, allocations: 27.27 kB / 1.095 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of SimCode: time 3.81e-07/0.838, allocations: 0.5625 kB / 1.095 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of Templates: time 0.006686/0.8447, allocations: 3.083 MB / 1.098 GB, free: 9.16 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches