Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OperationalEnvelope",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope,fileNamePrefix="IBPSA_latest_IBPSA_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.0013/0.0013, allocations: 107 kB / 16.27 MB, free: 5.93 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.001311/0.001311, allocations: 186.5 kB / 17.2 MB, free: 5.574 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.417/1.417, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8135/0.8135, allocations: 126.7 MB / 417.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 67.89 kB / 0.4959 GB, free: 2.684 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3244, allocations: 78.87 MB / 0.5729 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope): time 0.004283/0.3287, allocations: 3.171 MB / 0.576 GB, free: 28.68 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002267/0.331, allocations: 1.345 MB / 0.5773 GB, free: 27.74 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003037/0.3313, allocations: 7.469 kB / 0.5773 GB, free: 27.74 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003341/0.3317, allocations: 112.5 kB / 0.5774 GB, free: 27.67 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005137/0.3322, allocations: 256 kB / 0.5777 GB, free: 27.52 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006583/0.3329, allocations: 352.5 kB / 0.578 GB, free: 27.31 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006677/0.3336, allocations: 0.8449 MB / 0.5788 GB, free: 26.85 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003765/0.334, allocations: 321.9 kB / 0.5791 GB, free: 26.66 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002568/0.3342, allocations: 329.9 kB / 0.5794 GB, free: 26.45 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003353/0.3346, allocations: 416.3 kB / 0.5798 GB, free: 26.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.3347, allocations: 87.84 kB / 0.5799 GB, free: 26.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002042/0.3349, allocations: 131.8 kB / 0.5801 GB, free: 26.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.3351, allocations: 255.9 kB / 0.5803 GB, free: 25.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002267/0.3353, allocations: 383.8 kB / 0.5807 GB, free: 25.66 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006843/0.336, allocations: 1.131 MB / 0.5818 GB, free: 24.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.336, allocations: 3.984 kB / 0.5818 GB, free: 24.76 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.336, allocations: 0 / 0.5818 GB, free: 24.76 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.336, allocations: 1.469 kB / 0.5818 GB, free: 24.76 MB / 446.1 MB 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.002228/0.3383, allocations: 1.181 MB / 0.5829 GB, free: 23.81 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3383, allocations: 9.406 kB / 0.5829 GB, free: 23.81 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001442/0.3385, allocations: 85.72 kB / 0.583 GB, free: 23.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002076/0.3387, allocations: 87.11 kB / 0.5831 GB, free: 23.69 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.3401, allocations: 0.6888 MB / 0.5838 GB, free: 23.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/0.3402, allocations: 36.38 kB / 0.5838 GB, free: 23.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.828e-05/0.3403, allocations: 41.53 kB / 0.5838 GB, free: 23.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.3416, allocations: 0.5176 MB / 0.5844 GB, free: 22.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3417, allocations: 1.125 kB / 0.5844 GB, free: 22.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.888e-05/0.3417, allocations: 15.94 kB / 0.5844 GB, free: 22.76 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.521e-05/0.3417, allocations: 10.69 kB / 0.5844 GB, free: 22.76 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.3432, allocations: 384.9 kB / 0.5847 GB, free: 22.58 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003012/0.3462, allocations: 1.396 MB / 0.5861 GB, free: 21.51 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.3475, allocations: 316.7 kB / 0.5864 GB, free: 21.35 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006248/0.3481, allocations: 169.4 kB / 0.5866 GB, free: 21.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-05/0.3482, allocations: 3.516 kB / 0.5866 GB, free: 21.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009081/0.3491, allocations: 275.1 kB / 0.5868 GB, free: 21.08 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 2.435e-06/0.3491, allocations: 0 / 0.5868 GB, free: 21.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.002198/0.3513, allocations: 0.5141 MB / 0.5873 GB, free: 20.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.3514, allocations: 164.9 kB / 0.5875 GB, free: 20.63 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00151/0.3529, allocations: 0.8024 MB / 0.5883 GB, free: 20.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.519e-05/0.353, allocations: 46.55 kB / 0.5883 GB, free: 20.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002913/0.3533, allocations: 325.5 kB / 0.5886 GB, free: 19.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.704e-05/0.3534, allocations: 86.45 kB / 0.5887 GB, free: 19.78 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002128/0.3537, allocations: 90.05 kB / 0.5888 GB, free: 19.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.3538, allocations: 377.6 kB / 0.5892 GB, free: 19.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006937/0.3545, allocations: 164.2 kB / 0.5893 GB, free: 19.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007351/0.3552, allocations: 253.5 kB / 0.5896 GB, free: 19.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.3565, allocations: 372.8 kB / 0.5899 GB, free: 18.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3565, allocations: 2.219 kB / 0.5899 GB, free: 18.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00176/0.3583, allocations: 0.5479 MB / 0.5905 GB, free: 18.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.617e-05/0.3583, allocations: 65.7 kB / 0.5905 GB, free: 18.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.3583, allocations: 6.188 kB / 0.5905 GB, free: 18.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.3584, allocations: 3.812 kB / 0.5905 GB, free: 18.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004336/0.3588, allocations: 58.08 kB / 0.5906 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.3588, allocations: 3.188 kB / 0.5906 GB, free: 18.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000774/0.3596, allocations: 66.97 kB / 0.5907 GB, free: 18.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.008e-05/0.3597, allocations: 16.03 kB / 0.5907 GB, free: 18.41 MB / 446.1 MB 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.0004295/0.3601, allocations: 250.1 kB / 0.5909 GB, free: 18.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.3603, allocations: 67.19 kB / 0.591 GB, free: 18.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001552/0.3619, allocations: 428 kB / 0.5914 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.3619, allocations: 4.438 kB / 0.5914 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.3619, allocations: 0.7812 kB / 0.5914 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.3619, allocations: 5.141 kB / 0.5914 GB, free: 17.94 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002294/0.3642, allocations: 1.17 MB / 0.5925 GB, free: 17.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.3642, allocations: 1.219 kB / 0.5925 GB, free: 17.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003311/0.3646, allocations: 44.42 kB / 0.5926 GB, free: 17.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3646, allocations: 2.531 kB / 0.5926 GB, free: 17.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.68e-05/0.3647, allocations: 6.531 kB / 0.5926 GB, free: 17.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.3647, allocations: 9.391 kB / 0.5926 GB, free: 17.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3647, allocations: 8.953 kB / 0.5926 GB, free: 17.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.3661, allocations: 0.5756 MB / 0.5932 GB, free: 16.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.3663, allocations: 152.3 kB / 0.5933 GB, free: 16.44 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.3664, allocations: 17.72 kB / 0.5933 GB, free: 16.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006961/0.3671, allocations: 51.88 kB / 0.5934 GB, free: 16.37 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.3674, allocations: 71.77 kB / 0.5934 GB, free: 16.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.445e-05/0.3674, allocations: 15.98 kB / 0.5935 GB, free: 16.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008252/0.3683, allocations: 0.5615 MB / 0.594 GB, free: 15.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3683, allocations: 4 kB / 0.594 GB, free: 15.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008395/0.3691, allocations: 123.7 kB / 0.5941 GB, free: 15.61 MB / 446.1 MB 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.003777/0.3729, allocations: 1.564 MB / 0.5957 GB, free: 14.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.3745, allocations: 0.499 MB / 0.5961 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3745, allocations: 4 kB / 0.5961 GB, free: 13.65 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006684/0.3752, allocations: 192.3 kB / 0.5963 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/0.3766, allocations: 172.9 kB / 0.5965 GB, free: 13.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.3871, allocations: 5.818 MB / 0.6022 GB, free: 7.355 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.3875, allocations: 0.9099 MB / 0.6031 GB, free: 6.418 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005294/0.388, allocations: 96.78 kB / 0.6032 GB, free: 6.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004728/0.3885, allocations: 247.3 kB / 0.6034 GB, free: 6.078 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3885, allocations: 0 / 0.6034 GB, free: 6.078 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05281/0.4414, allocations: 15.68 MB / 0.6187 GB, free: 6.699 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.495/8.936, allocations: 14.39 kB / 0.6187 GB, free: 6.688 MB / 462.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_OperationalEnvelope.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe 2>&1)