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.0009119/0.000912, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.001137/0.001137, allocations: 172 kB / 16.26 MB, free: 6.664 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.382/1.382, allocations: 223.2 MB / 240.3 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.856/2.856, allocations: 473.5 MB / 0.747 GB, free: 6.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003701/0.0003702, allocations: 9.906 kB / 0.9158 GB, free: 33.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3336, allocations: 162.2 MB / 1.074 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003209/0.3368, allocations: 1.735 MB / 1.076 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001411/0.3383, allocations: 0.5729 MB / 1.076 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002037/0.3385, allocations: 0 / 1.076 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.3387, allocations: 11.86 kB / 1.076 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.3389, allocations: 39.72 kB / 1.077 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.3392, allocations: 83.91 kB / 1.077 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00027/0.3394, allocations: 255.4 kB / 1.077 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.3397, allocations: 111.3 kB / 1.077 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.3398, allocations: 95.55 kB / 1.077 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.34, allocations: 107.5 kB / 1.077 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.593e-05/0.34, allocations: 8 kB / 1.077 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.487e-05/0.3401, allocations: 15.94 kB / 1.077 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.637e-05/0.3401, allocations: 39.83 kB / 1.077 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.3403, allocations: 125.1 kB / 1.077 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.3405, allocations: 271.2 kB / 1.078 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3405, allocations: 0 / 1.078 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3405, allocations: 0 / 1.078 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.3405, allocations: 0 / 1.078 GB, free: 4.012 MB / 0.8262 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.001199/0.3418, allocations: 0.6333 MB / 1.078 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3418, allocations: 8.031 kB / 1.078 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.201e-05/0.3419, allocations: 32.59 kB / 1.078 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.3422, allocations: 265.2 kB / 1.078 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.3423, allocations: 16.81 kB / 1.078 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.44e-05/0.3423, allocations: 24.38 kB / 1.079 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006461/0.343, allocations: 299.6 kB / 1.079 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.343, allocations: 0 / 1.079 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.377e-05/0.343, allocations: 12 kB / 1.079 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.343, allocations: 11.94 kB / 1.079 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007127/0.3438, allocations: 237.6 kB / 1.079 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.345, allocations: 0.6697 MB / 1.08 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007049/0.3457, allocations: 230.4 kB / 1.08 GB, free: 1.414 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003342/0.346, allocations: 108.8 kB / 1.08 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.3461, allocations: 4 kB / 1.08 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005809/0.3466, allocations: 212.6 kB / 1.08 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.733e-06/0.3467, allocations: 0 / 1.08 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001149/0.3478, allocations: 395.3 kB / 1.081 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.3479, allocations: 132.5 kB / 1.081 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.3481, allocations: 226.6 kB / 1.081 GB, free: 304 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.597e-05/0.3482, allocations: 33.7 kB / 1.081 GB, free: 264 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3483, allocations: 160.2 kB / 1.081 GB, free: 100 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.18e-05/0.3483, allocations: 55.36 kB / 1.081 GB, free: 44 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.977e-05/0.3484, allocations: 49.7 kB / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3485, allocations: 330.8 kB / 1.082 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003812/0.3489, allocations: 132.2 kB / 1.082 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004178/0.3493, allocations: 204.4 kB / 1.082 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007065/0.35, allocations: 335.8 kB / 1.082 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.35, allocations: 0 / 1.082 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009487/0.351, allocations: 467.9 kB / 1.083 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.901e-05/0.3511, allocations: 93.88 kB / 1.083 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3511, allocations: 0 / 1.083 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.3511, allocations: 7.938 kB / 1.083 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.3514, allocations: 56.02 kB / 1.083 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.3514, allocations: 4 kB / 1.083 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003691/0.3517, allocations: 79.72 kB / 1.083 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.3518, allocations: 16 kB / 1.083 GB, free: 14.18 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.0001451/0.3519, allocations: 146.2 kB / 1.083 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.684e-05/0.352, allocations: 27.72 kB / 1.083 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.261e-05/0.352, allocations: 33.8 kB / 1.083 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.3521, allocations: 4 kB / 1.083 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3521, allocations: 0 / 1.083 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3521, allocations: 0 / 1.083 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.3532, allocations: 0.6502 MB / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3532, allocations: 4 kB / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001641/0.3534, allocations: 39.95 kB / 1.084 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.3534, allocations: 0 / 1.084 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.3534, allocations: 8 kB / 1.084 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3534, allocations: 0 / 1.084 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3534, allocations: 3.984 kB / 1.084 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007888/0.3542, allocations: 388.2 kB / 1.084 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.3543, allocations: 88.92 kB / 1.084 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.495e-05/0.3543, allocations: 12 kB / 1.084 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003508/0.3547, allocations: 59.94 kB / 1.084 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.3548, allocations: 55.91 kB / 1.084 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.3549, allocations: 11.94 kB / 1.084 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.00012/0.355, allocations: 143.2 kB / 1.085 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.355, allocations: 0 / 1.085 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003064/0.3553, allocations: 59.84 kB / 1.085 GB, free: 12.38 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.0001594/0.3555, allocations: 127.2 kB / 1.085 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009625/0.3564, allocations: 458.9 kB / 1.085 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3564, allocations: 0 / 1.085 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003931/0.3568, allocations: 141.5 kB / 1.085 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.3572, allocations: 38.3 kB / 1.085 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008459/0.3581, allocations: 461.4 kB / 1.086 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.3584, allocations: 0.7403 MB / 1.086 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001084/0.3585, allocations: 21.95 kB / 1.086 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.191e-05/0.3586, allocations: 23.42 kB / 1.087 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of SimCode: time 3.7e-07/0.3586, allocations: 0 / 1.087 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of Templates: time 0.006298/0.3649, allocations: 3.057 MB / 1.089 GB, free: 7.301 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=480 -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/jenkins/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