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.005949/0.005949, allocations: 102 kB / 15.73 MB, free: 6.043 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.001217/0.001217, allocations: 188.1 kB / 16.67 MB, free: 5.977 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.619/2.619, allocations: 469.4 MB / 0.7422 GB, free: 7.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 71.88 kB / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.294, allocations: 159.1 MB / 1.22 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope): time 0.004697/0.2987, allocations: 3.198 MB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002361/0.3011, allocations: 1.345 MB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000506/0.3016, allocations: 4 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005136/0.3022, allocations: 115 kB / 1.224 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0008716/0.3031, allocations: 258.5 kB / 1.225 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008791/0.304, allocations: 351.1 kB / 1.225 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001405/0.3054, allocations: 0.8538 MB / 1.226 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007064/0.3061, allocations: 320.6 kB / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000684/0.3068, allocations: 330.8 kB / 1.226 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007173/0.3076, allocations: 422.3 kB / 1.227 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002088/0.3078, allocations: 84 kB / 1.227 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003299/0.3081, allocations: 127.9 kB / 1.227 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003268/0.3085, allocations: 259.3 kB / 1.227 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0004933/0.309, allocations: 378 kB / 1.228 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001388/0.3104, allocations: 1.156 MB / 1.229 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3104, allocations: 0 / 1.229 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.225e-06/0.3104, allocations: 0 / 1.229 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.641e-05/0.3104, allocations: 0 / 1.229 GB, free: 5.426 MB / 0.9825 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.002782/0.3132, allocations: 1.18 MB / 1.23 GB, free: 4.184 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.3133, allocations: 12.02 kB / 1.23 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001687/0.3134, allocations: 87.62 kB / 1.23 GB, free: 4.074 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000218/0.3137, allocations: 80 kB / 1.23 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001344/0.315, allocations: 0.6916 MB / 1.231 GB, free: 3.266 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/0.3151, allocations: 29.38 kB / 1.231 GB, free: 3.238 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.35e-05/0.3152, allocations: 55.88 kB / 1.231 GB, free: 3.184 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009897/0.3162, allocations: 0.5109 MB / 1.231 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3162, allocations: 0 / 1.231 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/0.3162, allocations: 19.94 kB / 1.231 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.3163, allocations: 12 kB / 1.231 GB, free: 2.617 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000943/0.3172, allocations: 383.7 kB / 1.232 GB, free: 2.238 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.3195, allocations: 1.379 MB / 1.233 GB, free: 0.8047 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008363/0.3204, allocations: 315.5 kB / 1.233 GB, free: 500 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004117/0.3208, allocations: 173.4 kB / 1.234 GB, free: 324 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.767e-05/0.3209, allocations: 4 kB / 1.234 GB, free: 320 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005922/0.3215, allocations: 277.4 kB / 1.234 GB, free: 24 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=31): time 2.174e-06/0.3215, allocations: 3.938 kB / 1.234 GB, free: 20 kB / 0.9825 GB Notification: Performance of matching and sorting (n=31): time 0.001439/0.3229, allocations: 0.5244 MB / 1.234 GB, free: 15.49 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.045e-05/0.323, allocations: 158.2 kB / 1.234 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.3241, allocations: 0.8008 MB / 1.235 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.612e-05/0.3241, allocations: 41.7 kB / 1.235 GB, free: 14.44 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002731/0.3244, allocations: 328.3 kB / 1.236 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.205e-05/0.3245, allocations: 90.92 kB / 1.236 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.3247, allocations: 90.05 kB / 1.236 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3248, allocations: 374.8 kB / 1.236 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004321/0.3253, allocations: 160.7 kB / 1.236 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004724/0.3258, allocations: 248.1 kB / 1.237 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000789/0.3266, allocations: 385.6 kB / 1.237 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3266, allocations: 0 / 1.237 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001136/0.3277, allocations: 0.5441 MB / 1.237 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.604e-05/0.3278, allocations: 69.23 kB / 1.237 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.3278, allocations: 4 kB / 1.237 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.3278, allocations: 4 kB / 1.237 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.3281, allocations: 55.89 kB / 1.238 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.3281, allocations: 7.984 kB / 1.238 GB, free: 12 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004656/0.3286, allocations: 71.56 kB / 1.238 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.925e-05/0.3287, allocations: 20 kB / 1.238 GB, free: 11.91 MB / 0.9981 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.0002964/0.329, allocations: 253.7 kB / 1.238 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.3291, allocations: 71.09 kB / 1.238 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009884/0.3301, allocations: 419.9 kB / 1.238 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3301, allocations: 4 kB / 1.238 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.3301, allocations: 0 / 1.238 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.3301, allocations: 3.984 kB / 1.238 GB, free: 11.15 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.3319, allocations: 1.169 MB / 1.239 GB, free: 9.926 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.3319, allocations: 4 kB / 1.239 GB, free: 9.922 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.3321, allocations: 39.97 kB / 1.24 GB, free: 9.883 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.335e-06/0.3321, allocations: 3.984 kB / 1.24 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.3321, allocations: 8 kB / 1.24 GB, free: 9.871 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.3322, allocations: 4 kB / 1.24 GB, free: 9.867 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3322, allocations: 4.016 kB / 1.24 GB, free: 9.863 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009927/0.3332, allocations: 0.5726 MB / 1.24 GB, free: 9.277 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.3333, allocations: 160.3 kB / 1.24 GB, free: 9.102 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.3334, allocations: 12 kB / 1.24 GB, free: 9.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004293/0.3339, allocations: 47.88 kB / 1.24 GB, free: 9.043 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.3341, allocations: 71.89 kB / 1.24 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.227e-05/0.3341, allocations: 15.98 kB / 1.24 GB, free: 8.957 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006718/0.3348, allocations: 0.5615 MB / 1.241 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3348, allocations: 3.938 kB / 1.241 GB, free: 8.398 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005059/0.3353, allocations: 123.7 kB / 1.241 GB, free: 8.277 MB / 0.9981 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.002549/0.3379, allocations: 1.578 MB / 1.243 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001055/0.3389, allocations: 492.2 kB / 1.243 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.3389, allocations: 4 kB / 1.243 GB, free: 6.293 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004803/0.3394, allocations: 191.8 kB / 1.243 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009239/0.3404, allocations: 163.9 kB / 1.243 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008265/0.3486, allocations: 5.634 MB / 1.249 GB, free: 176 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5804/0.929, allocations: 0.9064 MB / 1.25 GB, free: 29.15 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0004564/0.9295, allocations: 93.2 kB / 1.25 GB, free: 29.14 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003798/0.9299, allocations: 247.8 kB / 1.25 GB, free: 29.14 MB / 0.9981 GB Notification: Performance of SimCode: time 1.112e-06/0.9299, allocations: 0 / 1.25 GB, free: 29.14 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04404/0.974, allocations: 15.94 MB / 1.266 GB, free: 27.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.659/9.633, allocations: 15.38 kB / 1.266 GB, free: 27.89 MB / 0.9981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OperationalEnvelope_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OperationalEnvelope.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe 2>&1)