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.004617/0.004617, allocations: 96.72 kB / 15.73 MB, free: 6 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.001249/0.001249, allocations: 186.2 kB / 16.67 MB, free: 5.93 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.878/2.878, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 63.89 kB / 1.083 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2939, allocations: 162.2 MB / 1.242 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003366/0.2973, allocations: 2.04 MB / 1.244 GB, free: 8.109 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009822/0.2983, allocations: 0.5728 MB / 1.244 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.843e-05/0.2984, allocations: 7.938 kB / 1.244 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001117/0.2985, allocations: 23.73 kB / 1.244 GB, free: 7.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.2987, allocations: 43.59 kB / 1.244 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.2989, allocations: 91.88 kB / 1.244 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.2992, allocations: 287.3 kB / 1.244 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002575/0.2995, allocations: 119.4 kB / 1.245 GB, free: 6.961 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001451/0.2997, allocations: 123.5 kB / 1.245 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.2998, allocations: 131.4 kB / 1.245 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.19e-05/0.2999, allocations: 28 kB / 1.245 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.758e-05/0.2999, allocations: 32 kB / 1.245 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 6.803e-05/0.3, allocations: 59.81 kB / 1.245 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.3001, allocations: 123.3 kB / 1.245 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.3005, allocations: 302.8 kB / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3005, allocations: 0 / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3005, allocations: 4 kB / 1.245 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.3005, allocations: 0 / 1.245 GB, free: 6.172 MB / 0.9981 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.001264/0.3018, allocations: 0.6603 MB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.3018, allocations: 8.031 kB / 1.246 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.661e-05/0.3019, allocations: 59.11 kB / 1.246 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.632e-05/0.302, allocations: 32.75 kB / 1.246 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.3024, allocations: 269.4 kB / 1.246 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.3024, allocations: 16.81 kB / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.618e-05/0.3025, allocations: 28.36 kB / 1.246 GB, free: 4.992 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006709/0.3032, allocations: 291.4 kB / 1.247 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.3032, allocations: 7.938 kB / 1.247 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.3032, allocations: 4 kB / 1.247 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.3032, allocations: 4 kB / 1.247 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007139/0.304, allocations: 209.5 kB / 1.247 GB, free: 4.465 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.3052, allocations: 0.6545 MB / 1.248 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006947/0.3059, allocations: 194.4 kB / 1.248 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003365/0.3062, allocations: 92.78 kB / 1.248 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.3063, allocations: 0 / 1.248 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005188/0.3068, allocations: 204.9 kB / 1.248 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=19): time 1.453e-06/0.3068, allocations: 0 / 1.248 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19): time 0.001135/0.3079, allocations: 333.3 kB / 1.248 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.531e-05/0.3081, allocations: 132.5 kB / 1.248 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000223/0.3083, allocations: 222.9 kB / 1.249 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.3083, allocations: 33.7 kB / 1.249 GB, free: 2.5 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.3085, allocations: 164.6 kB / 1.249 GB, free: 2.336 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.952e-05/0.3085, allocations: 55.62 kB / 1.249 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.3086, allocations: 65.97 kB / 1.249 GB, free: 2.211 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3088, allocations: 338.8 kB / 1.249 GB, free: 1.871 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003853/0.3092, allocations: 120.1 kB / 1.249 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004338/0.3096, allocations: 180.4 kB / 1.25 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007185/0.3104, allocations: 306.5 kB / 1.25 GB, free: 1.215 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.3104, allocations: 8 kB / 1.25 GB, free: 1.207 MB / 0.9981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009686/0.3114, allocations: 431.6 kB / 1.25 GB, free: 0.7617 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.338e-05/0.3114, allocations: 93.03 kB / 1.25 GB, free: 0.6523 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3115, allocations: 0 / 1.25 GB, free: 0.6523 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.3115, allocations: 4 kB / 1.25 GB, free: 0.6484 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002402/0.3117, allocations: 47.89 kB / 1.25 GB, free: 0.6016 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.3117, allocations: 4 kB / 1.25 GB, free: 0.5977 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/0.3121, allocations: 71.84 kB / 1.251 GB, free: 0.5273 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.96e-05/0.3122, allocations: 12 kB / 1.251 GB, free: 0.5156 MB / 0.9981 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.0001698/0.3123, allocations: 153 kB / 1.251 GB, free: 364 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.026e-05/0.3124, allocations: 27.8 kB / 1.251 GB, free: 336 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.688e-05/0.3124, allocations: 21.88 kB / 1.251 GB, free: 312 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.3125, allocations: 7.984 kB / 1.251 GB, free: 304 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3125, allocations: 7.938 kB / 1.251 GB, free: 296 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3125, allocations: 0 / 1.251 GB, free: 296 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4989/0.8114, allocations: 0.601 MB / 1.251 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.8114, allocations: 1.25 kB / 1.251 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.8116, allocations: 30.73 kB / 1.251 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.8116, allocations: 1.781 kB / 1.251 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.8117, allocations: 6.875 kB / 1.251 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.8117, allocations: 1.594 kB / 1.251 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.8117, allocations: 0.9688 kB / 1.251 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007438/0.8124, allocations: 353.7 kB / 1.252 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.8125, allocations: 97.47 kB / 1.252 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.764e-05/0.8125, allocations: 15.47 kB / 1.252 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003505/0.8129, allocations: 47.03 kB / 1.252 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.813, allocations: 51.77 kB / 1.252 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.622e-05/0.8131, allocations: 11.36 kB / 1.252 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001074/0.8132, allocations: 142.9 kB / 1.252 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8132, allocations: 0.5938 kB / 1.252 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000328/0.8135, allocations: 60.36 kB / 1.252 GB, free: 14.66 MB / 0.9981 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.001294/0.8148, allocations: 1.016 MB / 1.253 GB, free: 14 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008505/0.8157, allocations: 436 kB / 1.254 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.8157, allocations: 0.875 kB / 1.254 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000372/0.8161, allocations: 121.6 kB / 1.254 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.8164, allocations: 35.48 kB / 1.254 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003707/0.8201, allocations: 2.685 MB / 1.256 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/0.8203, allocations: 0.7414 MB / 1.257 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001068/0.8204, allocations: 20.64 kB / 1.257 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.8205, allocations: 77.23 kB / 1.257 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of SimCode: time 1.273e-06/0.8206, allocations: 4.781 kB / 1.257 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.8491, allocations: 5.731 MB / 1.263 GB, free: 11 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.894/8.743, allocations: 2 kB / 1.263 GB, free: 11 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.csv --start-time 0 --stop-time 100 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 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.csv","/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