Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.OperationalEnvelope,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OperationalEnvelope",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OperationalEnvelope",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.001151/0.001152, allocations: 108 kB / 15.61 MB, free: 152 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.001152/0.001152, allocations: 194.8 kB / 16.53 MB, free: 6.699 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.684/2.684, allocations: 469.4 MB / 0.742 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 63.11 kB / 0.9083 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3346, allocations: 159.1 MB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope): time 0.004939/0.3396, allocations: 3.201 MB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002347/0.342, allocations: 1.345 MB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002687/0.3423, allocations: 8 kB / 1.068 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003823/0.3427, allocations: 111 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005624/0.3433, allocations: 246.5 kB / 1.068 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006808/0.344, allocations: 361.5 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008129/0.3448, allocations: 0.8498 MB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004506/0.3453, allocations: 312.7 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003236/0.3456, allocations: 330.7 kB / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004207/0.346, allocations: 422.3 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.3461, allocations: 84 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.3464, allocations: 124 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002289/0.3466, allocations: 259.3 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003242/0.3469, allocations: 386 kB / 1.071 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.348, allocations: 1.129 MB / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.348, allocations: 0 / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.624e-06/0.348, allocations: 0 / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.418e-06/0.348, allocations: 0 / 1.073 GB, free: 5.297 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.002168/0.3502, allocations: 1.176 MB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.3502, allocations: 12.02 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.3503, allocations: 79.72 kB / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001508/0.3505, allocations: 87.91 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.3516, allocations: 0.6876 MB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.935e-05/0.3517, allocations: 41.36 kB / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.187e-05/0.3517, allocations: 43.94 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009798/0.3527, allocations: 0.5187 MB / 1.075 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.3528, allocations: 3.938 kB / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.369e-05/0.3528, allocations: 16 kB / 1.075 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.3528, allocations: 8 kB / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009862/0.3538, allocations: 383.7 kB / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/0.3561, allocations: 1.394 MB / 1.077 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008856/0.357, allocations: 325 kB / 1.077 GB, free: 348 kB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004444/0.3574, allocations: 165.7 kB / 1.077 GB, free: 180 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.3575, allocations: 8 kB / 1.077 GB, free: 172 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007075/0.3582, allocations: 269.5 kB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.355e-06/0.3582, allocations: 0 / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001561/0.3597, allocations: 0.5108 MB / 1.078 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.3599, allocations: 166.3 kB / 1.078 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.3609, allocations: 0.8008 MB / 1.079 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.931e-05/0.361, allocations: 45.7 kB / 1.079 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002779/0.3613, allocations: 320.3 kB / 1.079 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.713e-05/0.3614, allocations: 86.88 kB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.3615, allocations: 86.06 kB / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001884/0.3617, allocations: 378.8 kB / 1.08 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000471/0.3622, allocations: 164.7 kB / 1.08 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005314/0.3628, allocations: 248.1 kB / 1.08 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000918/0.3637, allocations: 389.5 kB / 1.081 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3637, allocations: 0 / 1.081 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001247/0.365, allocations: 0.5365 MB / 1.081 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.126e-05/0.365, allocations: 71.33 kB / 1.081 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.3651, allocations: 0 / 1.081 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.3651, allocations: 4 kB / 1.081 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.3654, allocations: 55.89 kB / 1.081 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.3654, allocations: 7.938 kB / 1.081 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004689/0.3659, allocations: 79.59 kB / 1.081 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.672e-05/0.3659, allocations: 16 kB / 1.081 GB, free: 11.8 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 34 (opeEnv.disErr.y,$PRE.opeEnv.disErr.y,TEvaInEmu.count,$PRE.TEvaInEmu.count,TEvaInEmu.T_start,$PRE.TEvaInEmu.T_start,TConOutEmu.count,$PRE.TConOutEmu.count,TConOutEmu.T_start,$PRE.TConOutEmu.T_start,opeEnv.bouMapCoo.hysBou.y,$PRE.opeEnv.bouMapCoo.hysBou.y,opeEnv.bouMapCoo.hysRig.y,$PRE.opeEnv.bouMapCoo.hysRig.y,opeEnv.bouMapCoo.hysLef.y,$PRE.opeEnv.bouMapCoo.hysLef.y,opeEnv.bouMapCoo.noErr,opeEnv.bouMapHea.hysBou.y,$PRE.opeEnv.bouMapHea.hysBou.y,opeEnv.bouMapHea.hysRig.y,$PRE.opeEnv.bouMapHea.hysRig.y,opeEnv.bouMapHea.hysLef.y,$PRE.opeEnv.bouMapHea.hysLef.y,opeEnv.bouMapHea.noErr,opeEnv.booPasThr.y,hys.y,$PRE.hys.y,sigBus.hea,$whenCondition1,$whenCondition2,$whenCondition3,opeEnv.intConOne.y,opeEnv.disErr.local_set,opeEnv.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 2 * 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.0003275/0.3663, allocations: 241.8 kB / 1.082 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.786e-05/0.3664, allocations: 63.19 kB / 1.082 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.3675, allocations: 427.8 kB / 1.082 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.3675, allocations: 8.031 kB / 1.082 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3675, allocations: 3.938 kB / 1.082 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.3675, allocations: 3.984 kB / 1.082 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/0.3693, allocations: 1.161 MB / 1.083 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3694, allocations: 0 / 1.083 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.3696, allocations: 59.86 kB / 1.083 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.3696, allocations: 0 / 1.083 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.3696, allocations: 11.98 kB / 1.083 GB, free: 9.754 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3696, allocations: 0 / 1.083 GB, free: 9.754 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3697, allocations: 0 / 1.083 GB, free: 9.754 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.3707, allocations: 0.5796 MB / 1.084 GB, free: 9.16 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.3709, allocations: 156.3 kB / 1.084 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.371, allocations: 16 kB / 1.084 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004594/0.3715, allocations: 47.94 kB / 1.084 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.3717, allocations: 75.83 kB / 1.084 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.069e-05/0.3717, allocations: 15.98 kB / 1.084 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006644/0.3724, allocations: 0.5576 MB / 1.085 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3724, allocations: 0 / 1.085 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005106/0.3729, allocations: 127.7 kB / 1.085 GB, free: 8.156 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 21 (opeEnv.booPasThr.y,opeEnv.bouMapHea.noErr,opeEnv.bouMapCoo.noErr,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,sigBus.hea,hys.y,opeEnv.disErr.y,opeEnv.bouMapHea.hysLef.y,opeEnv.bouMapHea.hysRig.y,opeEnv.bouMapHea.hysBou.y,opeEnv.bouMapCoo.hysLef.y,opeEnv.bouMapCoo.hysRig.y,opeEnv.bouMapCoo.hysBou.y,TConOutEmu.T_start,TConOutEmu.count,TEvaInEmu.T_start,TEvaInEmu.count) * Number of discrete states: 10 (TEvaInEmu.count,TConOutEmu.count,opeEnv.bouMapCoo.hysLef.y,opeEnv.bouMapCoo.hysRig.y,opeEnv.bouMapHea.hysLef.y,opeEnv.bouMapHea.hysRig.y,opeEnv.bouMapCoo.hysBou.y,opeEnv.bouMapHea.hysBou.y,hys.y,opeEnv.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002742/0.3756, allocations: 1.573 MB / 1.086 GB, free: 6.691 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001272/0.3769, allocations: 0.5038 MB / 1.087 GB, free: 6.164 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3769, allocations: 0 / 1.087 GB, free: 6.164 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005163/0.3775, allocations: 196.2 kB / 1.087 GB, free: 5.973 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009527/0.3784, allocations: 160 kB / 1.087 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008882/0.3873, allocations: 5.832 MB / 1.093 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005257/0.3879, allocations: 0.91 MB / 1.094 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003924/0.3883, allocations: 92.8 kB / 1.094 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003712/0.3887, allocations: 251.3 kB / 1.094 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of SimCode: time 6.11e-07/0.3887, allocations: 0 / 1.094 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04014/0.4288, allocations: 15.7 MB / 1.11 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.194/8.623, allocations: 6.375 kB / 1.11 GB, free: 15.14 MB / 0.8731 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OperationalEnvelope.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe 2>&1)