Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001659/0.001659, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001567/0.001567, allocations: 198.5 kB / 16.91 MB, free: 6.195 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.41/1.41, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.715/2.715, allocations: 469.8 MB / 0.7427 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 65.12 kB / 0.9087 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3306, allocations: 159.1 MB / 1.064 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003716/0.3344, allocations: 2.083 MB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001114/0.3355, allocations: 0.565 MB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.3357, allocations: 4 kB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.3358, allocations: 11.86 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001459/0.336, allocations: 35.72 kB / 1.067 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.3363, allocations: 83.91 kB / 1.067 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000354/0.3366, allocations: 283.3 kB / 1.067 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002766/0.3369, allocations: 119.4 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.3371, allocations: 123.5 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.3373, allocations: 139.4 kB / 1.068 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.3373, allocations: 28 kB / 1.068 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.412e-05/0.3374, allocations: 28 kB / 1.068 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.185e-05/0.3375, allocations: 55.83 kB / 1.068 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.3376, allocations: 127.4 kB / 1.068 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.3379, allocations: 219.8 kB / 1.068 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3379, allocations: 0 / 1.068 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3379, allocations: 0 / 1.068 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.3379, allocations: 0 / 1.068 GB, free: 11.19 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.001311/0.3392, allocations: 0.6578 MB / 1.069 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3393, allocations: 8.031 kB / 1.069 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.324e-05/0.3394, allocations: 32.56 kB / 1.069 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.3397, allocations: 269.2 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.3397, allocations: 20.8 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.3e-05/0.3398, allocations: 20.38 kB / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006852/0.3405, allocations: 287.6 kB / 1.069 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.3405, allocations: 0 / 1.069 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/0.3405, allocations: 8 kB / 1.069 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.3406, allocations: 7.938 kB / 1.069 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006683/0.3412, allocations: 213.4 kB / 1.069 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.3425, allocations: 0.6464 MB / 1.07 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006526/0.3431, allocations: 194.4 kB / 1.07 GB, free: 8.66 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003066/0.3435, allocations: 96.78 kB / 1.07 GB, free: 8.562 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.3435, allocations: 4 kB / 1.07 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005931/0.3441, allocations: 187.5 kB / 1.071 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 2.555e-06/0.3441, allocations: 0 / 1.071 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001113/0.3452, allocations: 346.7 kB / 1.071 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.638e-05/0.3453, allocations: 140.5 kB / 1.071 GB, free: 7.852 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002354/0.3456, allocations: 216.1 kB / 1.071 GB, free: 7.633 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.329e-05/0.3456, allocations: 37.7 kB / 1.071 GB, free: 7.59 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.3458, allocations: 152.1 kB / 1.071 GB, free: 7.438 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.896e-05/0.3458, allocations: 47.44 kB / 1.071 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.346, allocations: 65.97 kB / 1.071 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3461, allocations: 338.8 kB / 1.072 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003659/0.3465, allocations: 116.2 kB / 1.072 GB, free: 6.867 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004175/0.3469, allocations: 185.5 kB / 1.072 GB, free: 6.66 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006748/0.3476, allocations: 303.8 kB / 1.072 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.3476, allocations: 4 kB / 1.072 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009732/0.3486, allocations: 432.4 kB / 1.073 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.557e-05/0.3487, allocations: 89.09 kB / 1.073 GB, free: 5.773 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.3487, allocations: 3.984 kB / 1.073 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.3487, allocations: 7.938 kB / 1.073 GB, free: 5.762 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.349, allocations: 47.89 kB / 1.073 GB, free: 5.715 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.349, allocations: 4 kB / 1.073 GB, free: 5.711 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003544/0.3494, allocations: 71.78 kB / 1.073 GB, free: 5.641 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.991e-05/0.3494, allocations: 12 kB / 1.073 GB, free: 5.629 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.0001911/0.3496, allocations: 148.4 kB / 1.073 GB, free: 5.477 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.3496, allocations: 19.81 kB / 1.073 GB, free: 5.457 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.819e-05/0.3497, allocations: 25.81 kB / 1.073 GB, free: 5.434 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3497, allocations: 8 kB / 1.073 GB, free: 5.426 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3497, allocations: 7.938 kB / 1.073 GB, free: 5.418 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3497, allocations: 3.984 kB / 1.073 GB, free: 5.414 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.3509, allocations: 0.6175 MB / 1.074 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3509, allocations: 0 / 1.074 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.3511, allocations: 27.97 kB / 1.074 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.3511, allocations: 4 kB / 1.074 GB, free: 4.711 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.3511, allocations: 7.984 kB / 1.074 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3511, allocations: 0 / 1.074 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3511, allocations: 0 / 1.074 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007595/0.3519, allocations: 362.9 kB / 1.074 GB, free: 4.332 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.51e-05/0.352, allocations: 88.92 kB / 1.074 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.048e-05/0.352, allocations: 11.98 kB / 1.074 GB, free: 4.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003219/0.3524, allocations: 43.94 kB / 1.074 GB, free: 4.172 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.3525, allocations: 55.94 kB / 1.074 GB, free: 4.117 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.3526, allocations: 11.98 kB / 1.074 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000151/0.3527, allocations: 147.4 kB / 1.075 GB, free: 3.961 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3527, allocations: 0 / 1.075 GB, free: 3.961 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000316/0.353, allocations: 55.84 kB / 1.075 GB, free: 3.906 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.0001782/0.3532, allocations: 121.9 kB / 1.075 GB, free: 3.777 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009294/0.3542, allocations: 436.4 kB / 1.075 GB, free: 3.316 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3542, allocations: 0 / 1.075 GB, free: 3.316 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003572/0.3545, allocations: 119.8 kB / 1.075 GB, free: 3.199 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.3549, allocations: 40.22 kB / 1.075 GB, free: 3.16 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009626/0.3559, allocations: 470.7 kB / 1.076 GB, free: 2.668 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.3563, allocations: 0.7401 MB / 1.076 GB, free: 1.898 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.3564, allocations: 31.42 kB / 1.076 GB, free: 1.867 MB / 0.8419 GB Notification: Performance of SimCode: time 5.71e-07/0.3564, allocations: 0 / 1.076 GB, free: 1.867 MB / 0.8419 GB Notification: Performance of Templates: time 0.4814/0.8378, allocations: 3.068 MB / 1.079 GB, free: 22.06 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile (rm -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches