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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_latest_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_latest_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.006188/0.006188, allocations: 104 kB / 15.74 MB, free: 6.02 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.001727/0.001727, allocations: 193.3 kB / 16.67 MB, free: 5.938 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.471/2.471, allocations: 482.6 MB / 0.755 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 71.89 kB / 1.083 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6337/0.6354, allocations: 162.3 MB / 1.242 GB, free: 1.109 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.002931/0.6384, allocations: 2.024 MB / 1.244 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0008724/0.6393, allocations: 0.5688 MB / 1.244 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.572e-05/0.6394, allocations: 4 kB / 1.244 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.6395, allocations: 27.67 kB / 1.244 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.6396, allocations: 39.59 kB / 1.245 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002048/0.6398, allocations: 95.88 kB / 1.245 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.6401, allocations: 295.3 kB / 1.245 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.6403, allocations: 115.4 kB / 1.245 GB, free: 13.93 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.6405, allocations: 123.5 kB / 1.245 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.6406, allocations: 139.4 kB / 1.245 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.557e-05/0.6407, allocations: 28 kB / 1.245 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 4.292e-05/0.6407, allocations: 28 kB / 1.245 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.113e-05/0.6408, allocations: 59.81 kB / 1.245 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.6409, allocations: 119.4 kB / 1.245 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003011/0.6412, allocations: 303.6 kB / 1.246 GB, free: 13.15 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.6412, allocations: 4 kB / 1.246 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6413, allocations: 0 / 1.246 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.6413, allocations: 0 / 1.246 GB, free: 13.14 MB / 0.9669 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.001097/0.6424, allocations: 0.6681 MB / 1.246 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.6424, allocations: 12.03 kB / 1.246 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.871e-05/0.6425, allocations: 55.17 kB / 1.246 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.498e-05/0.6425, allocations: 28.75 kB / 1.247 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002955/0.6428, allocations: 265.4 kB / 1.247 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.6429, allocations: 20.81 kB / 1.247 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.726e-05/0.6429, allocations: 28.38 kB / 1.247 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005963/0.6435, allocations: 295.3 kB / 1.247 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.6435, allocations: 0 / 1.247 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.376e-05/0.6436, allocations: 8 kB / 1.247 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.6436, allocations: 4 kB / 1.247 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006493/0.6442, allocations: 209.6 kB / 1.247 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.6453, allocations: 0.6545 MB / 1.248 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006258/0.6459, allocations: 202.3 kB / 1.248 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.6462, allocations: 92.78 kB / 1.248 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.6463, allocations: 4 kB / 1.248 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004511/0.6467, allocations: 195.1 kB / 1.248 GB, free: 10.22 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.6467, allocations: 4 kB / 1.248 GB, free: 10.22 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.001004/0.6477, allocations: 339 kB / 1.249 GB, free: 9.883 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.6478, allocations: 140.5 kB / 1.249 GB, free: 9.715 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.648, allocations: 218.9 kB / 1.249 GB, free: 9.492 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.6481, allocations: 33.7 kB / 1.249 GB, free: 9.453 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.6482, allocations: 164.6 kB / 1.249 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.432e-05/0.6482, allocations: 51.64 kB / 1.249 GB, free: 9.238 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.6483, allocations: 61.97 kB / 1.249 GB, free: 9.172 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.6485, allocations: 334.8 kB / 1.25 GB, free: 8.836 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003536/0.6488, allocations: 116.2 kB / 1.25 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003907/0.6492, allocations: 180.4 kB / 1.25 GB, free: 8.52 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006507/0.6499, allocations: 318.5 kB / 1.25 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.6499, allocations: 0 / 1.25 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008738/0.6508, allocations: 424.2 kB / 1.251 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.274e-05/0.6508, allocations: 97.03 kB / 1.251 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.6509, allocations: 3.984 kB / 1.251 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.6509, allocations: 4 kB / 1.251 GB, free: 7.613 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.6511, allocations: 47.89 kB / 1.251 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.6511, allocations: 4 kB / 1.251 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.6514, allocations: 67.72 kB / 1.251 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.441e-05/0.6515, allocations: 16 kB / 1.251 GB, free: 7.48 MB / 0.9669 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.0001401/0.6516, allocations: 155.9 kB / 1.251 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.456e-05/0.6516, allocations: 19.84 kB / 1.251 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.915e-05/0.6517, allocations: 21.88 kB / 1.251 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.6517, allocations: 4 kB / 1.251 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.6517, allocations: 0 / 1.251 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.6517, allocations: 3.984 kB / 1.251 GB, free: 7.27 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.6527, allocations: 0.6173 MB / 1.252 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.6528, allocations: 4 kB / 1.252 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.6529, allocations: 23.97 kB / 1.252 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.6529, allocations: 0 / 1.252 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.6529, allocations: 15.98 kB / 1.252 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.6529, allocations: 0 / 1.252 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.653, allocations: 4 kB / 1.252 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007197/0.6537, allocations: 355 kB / 1.252 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.776e-05/0.6537, allocations: 104.9 kB / 1.252 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.6538, allocations: 7.938 kB / 1.252 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003165/0.6541, allocations: 47.94 kB / 1.252 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.6542, allocations: 47.94 kB / 1.252 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.6543, allocations: 11.98 kB / 1.252 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001133/0.6544, allocations: 140.6 kB / 1.252 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6544, allocations: 0 / 1.252 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002782/0.6547, allocations: 67.89 kB / 1.253 GB, free: 5.75 MB / 0.9669 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.001386/0.6561, allocations: 1.02 MB / 1.254 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0008361/0.6569, allocations: 431.8 kB / 1.254 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.6569, allocations: 3.938 kB / 1.254 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003489/0.6573, allocations: 113.8 kB / 1.254 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.6576, allocations: 31.97 kB / 1.254 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003794/0.6614, allocations: 2.694 MB / 1.257 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.6617, allocations: 0.7437 MB / 1.257 GB, free: 0.5273 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 9.06e-05/0.6618, allocations: 17.95 kB / 1.257 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.662, allocations: 79.41 kB / 1.258 GB, free: 440 kB / 0.9669 GB Notification: Performance of SimCode: time 3.4e-07/0.662, allocations: 0 / 1.258 GB, free: 440 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5321/1.194, allocations: 5.735 MB / 1.263 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.627/9.821, allocations: 8.312 kB / 1.263 GB, free: 10.89 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate_fmu --startTime=0 --stopTime=100 --timeout=400 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > 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