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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.247/1.247, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.45/2.45, allocations: 469.8 MB / 0.7424 GB, free: 7.41 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 69.94 kB / 0.9087 GB, free: 34.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2352, allocations: 159.2 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003153/0.2384, allocations: 2.037 MB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009042/0.2393, allocations: 0.5689 MB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.909e-05/0.2394, allocations: 7.938 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.819e-05/0.2395, allocations: 19.73 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.2397, allocations: 47.59 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002051/0.2399, allocations: 95.81 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002925/0.2402, allocations: 287.3 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.2404, allocations: 115.7 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.2405, allocations: 115.5 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.2407, allocations: 131.5 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.62e-05/0.2407, allocations: 31.94 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.312e-05/0.2408, allocations: 28 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.192e-05/0.2409, allocations: 67.75 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.241, allocations: 127.3 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002749/0.2413, allocations: 291 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.2413, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2413, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.2413, allocations: 4 kB / 1.068 GB, free: 10.21 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.001095/0.2424, allocations: 0.6526 MB / 1.069 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.2424, allocations: 12.03 kB / 1.069 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.346e-05/0.2425, allocations: 55.16 kB / 1.069 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.21e-05/0.2426, allocations: 28.66 kB / 1.069 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.2429, allocations: 265.2 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.2429, allocations: 24.8 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.688e-05/0.2429, allocations: 20.38 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005914/0.2435, allocations: 295.3 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2436, allocations: 0 / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.527e-05/0.2436, allocations: 8 kB / 1.069 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.2436, allocations: 8 kB / 1.069 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006589/0.2443, allocations: 205.6 kB / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2454, allocations: 0.6621 MB / 1.07 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006284/0.246, allocations: 203.6 kB / 1.07 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/0.2463, allocations: 88.78 kB / 1.07 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.2463, allocations: 0 / 1.07 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004722/0.2468, allocations: 200.9 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.362e-06/0.2468, allocations: 0 / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001038/0.2479, allocations: 339.1 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/0.2479, allocations: 144.4 kB / 1.071 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.2481, allocations: 206.9 kB / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.002e-05/0.2482, allocations: 41.7 kB / 1.071 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.2483, allocations: 160.3 kB / 1.071 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.2483, allocations: 47.44 kB / 1.071 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.2484, allocations: 73.97 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.2486, allocations: 330.8 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003498/0.2489, allocations: 116.2 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.2493, allocations: 192.4 kB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006484/0.25, allocations: 308.2 kB / 1.072 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.25, allocations: 0 / 1.072 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008647/0.2509, allocations: 427.4 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.321e-05/0.2509, allocations: 97.03 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.251, allocations: 4 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.251, allocations: 0 / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/0.2512, allocations: 48 kB / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.2512, allocations: 7.984 kB / 1.073 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.2515, allocations: 63.69 kB / 1.073 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.2516, allocations: 12 kB / 1.073 GB, free: 4.57 MB / 0.8262 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.0001391/0.2517, allocations: 152.3 kB / 1.073 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.305e-05/0.2518, allocations: 27.78 kB / 1.073 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.819e-05/0.2518, allocations: 33.86 kB / 1.073 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2518, allocations: 0 / 1.073 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.2518, allocations: 0 / 1.073 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2518, allocations: 0 / 1.073 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.2529, allocations: 0.6191 MB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2529, allocations: 0 / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001531/0.253, allocations: 27.97 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.2531, allocations: 4 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.2531, allocations: 3.984 kB / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2531, allocations: 0 / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2531, allocations: 0 / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007205/0.2538, allocations: 360.8 kB / 1.074 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.198e-05/0.2539, allocations: 96.86 kB / 1.074 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.038e-05/0.2539, allocations: 11.94 kB / 1.074 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.2542, allocations: 47.92 kB / 1.074 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.2544, allocations: 51.94 kB / 1.074 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.2544, allocations: 11.98 kB / 1.074 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001188/0.2545, allocations: 144.6 kB / 1.075 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2545, allocations: 0 / 1.075 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002857/0.2548, allocations: 59.84 kB / 1.075 GB, free: 2.84 MB / 0.8262 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.001389/0.2562, allocations: 1.008 MB / 1.076 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008477/0.2571, allocations: 442.3 kB / 1.076 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2571, allocations: 0 / 1.076 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003508/0.2574, allocations: 120.2 kB / 1.076 GB, free: 1.219 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.2578, allocations: 43.59 kB / 1.076 GB, free: 1.18 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00379/0.2616, allocations: 2.672 MB / 1.079 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.2619, allocations: 0.7398 MB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.236e-05/0.262, allocations: 21.94 kB / 1.08 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.2621, allocations: 75.41 kB / 1.08 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.2621, allocations: 0 / 1.08 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.384/4.646, allocations: 5.646 MB / 1.085 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/16.17, allocations: 8.297 kB / 1.085 GB, free: 8.051 MB / 0.8419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate_fmu --startTime=0 --stopTime=100 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > 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