Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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: translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope") translateModel(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001228/0.001228, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.34/1.34, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002515/0.002514, allocations: 289.8 kB / 291.3 MB, free: 14.52 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.215/1.215, allocations: 178.6 MB / 0.5079 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00267/0.00267, allocations: 91.84 kB / 0.6071 GB, free: 9.25 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1812, allocations: 89.14 MB / 0.6942 GB, free: 24 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope): time 0.005096/0.1863, allocations: 3.194 MB / 0.6973 GB, free: 12.8 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002326/0.1887, allocations: 1.341 MB / 0.6986 GB, free: 11.46 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.1889, allocations: 8 kB / 0.6986 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003678/0.1893, allocations: 111 kB / 0.6987 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005503/0.1899, allocations: 254.5 kB / 0.699 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006709/0.1906, allocations: 353.9 kB / 0.6993 GB, free: 10.75 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000845/0.1914, allocations: 0.8457 MB / 0.7001 GB, free: 9.898 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00049/0.1919, allocations: 320.6 kB / 0.7004 GB, free: 9.578 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000337/0.1922, allocations: 330.7 kB / 0.7008 GB, free: 9.254 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004775/0.1927, allocations: 414.3 kB / 0.7011 GB, free: 8.848 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.1929, allocations: 88 kB / 0.7012 GB, free: 8.762 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.1931, allocations: 128 kB / 0.7014 GB, free: 8.637 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002659/0.1934, allocations: 259.3 kB / 0.7016 GB, free: 8.383 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003497/0.1937, allocations: 378 kB / 0.702 GB, free: 8.012 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001079/0.1948, allocations: 1.133 MB / 0.7031 GB, free: 6.875 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.1948, allocations: 0 / 0.7031 GB, free: 6.875 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.542e-06/0.1948, allocations: 0 / 0.7031 GB, free: 6.875 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.508e-06/0.1948, allocations: 7.938 kB / 0.7031 GB, free: 6.867 MB / 0.545 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.002205/0.1971, allocations: 1.169 MB / 0.7042 GB, free: 5.637 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.1971, allocations: 8.031 kB / 0.7042 GB, free: 5.629 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001615/0.1973, allocations: 91.98 kB / 0.7043 GB, free: 5.539 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.1984, allocations: 0.6877 MB / 0.705 GB, free: 4.809 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.954e-05/0.1985, allocations: 29.38 kB / 0.705 GB, free: 4.781 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.772e-05/0.1986, allocations: 48.12 kB / 0.7051 GB, free: 4.734 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009948/0.1996, allocations: 0.5109 MB / 0.7056 GB, free: 4.191 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1996, allocations: 0 / 0.7056 GB, free: 4.191 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.1996, allocations: 16 kB / 0.7056 GB, free: 4.176 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.1997, allocations: 12 kB / 0.7056 GB, free: 4.164 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009832/0.2006, allocations: 371.8 kB / 0.7059 GB, free: 3.801 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/0.2029, allocations: 1.398 MB / 0.7073 GB, free: 2.352 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008937/0.2038, allocations: 319.4 kB / 0.7076 GB, free: 2.031 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004487/0.2043, allocations: 169.2 kB / 0.7078 GB, free: 1.863 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.2043, allocations: 240 / 0.7078 GB, free: 1.863 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007152/0.205, allocations: 274.2 kB / 0.708 GB, free: 1.578 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.784e-06/0.205, allocations: 0 / 0.708 GB, free: 1.578 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001501/0.2065, allocations: 0.5162 MB / 0.7085 GB, free: 1.055 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.2067, allocations: 166.2 kB / 0.7087 GB, free: 0.8555 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.2077, allocations: 0.793 MB / 0.7095 GB, free: 56 kB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.897e-05/0.2077, allocations: 45.7 kB / 0.7095 GB, free: 4 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.2949/0.5027, allocations: 315.5 kB / 0.7098 GB, free: 49.68 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.5029, allocations: 85.52 kB / 0.7099 GB, free: 49.68 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.503, allocations: 89.31 kB / 0.71 GB, free: 49.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.757e-05/0.5031, allocations: 376.8 kB / 0.7103 GB, free: 49.35 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004889/0.5036, allocations: 163.2 kB / 0.7105 GB, free: 49.35 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004864/0.5041, allocations: 253 kB / 0.7107 GB, free: 49.26 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008313/0.505, allocations: 379.5 kB / 0.7111 GB, free: 49.14 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.505, allocations: 5.406 kB / 0.7111 GB, free: 49.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001387/0.5064, allocations: 0.5314 MB / 0.7116 GB, free: 49.03 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.252e-05/0.5064, allocations: 63.44 kB / 0.7117 GB, free: 48.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5065, allocations: 2.469 kB / 0.7117 GB, free: 48.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.5065, allocations: 7.969 kB / 0.7117 GB, free: 48.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003102/0.5068, allocations: 62.72 kB / 0.7118 GB, free: 48.96 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.5068, allocations: 5.625 kB / 0.7118 GB, free: 48.96 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004847/0.5073, allocations: 72.77 kB / 0.7118 GB, free: 48.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.305e-05/0.5074, allocations: 15.38 kB / 0.7118 GB, free: 48.95 MB / 0.545 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.0003108/0.5077, allocations: 247.3 kB / 0.7121 GB, free: 48.84 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.5078, allocations: 63.91 kB / 0.7121 GB, free: 48.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/0.5089, allocations: 431.4 kB / 0.7125 GB, free: 48.75 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.5089, allocations: 4.562 kB / 0.7126 GB, free: 48.75 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5089, allocations: 0 / 0.7126 GB, free: 48.75 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.5089, allocations: 5.281 kB / 0.7126 GB, free: 48.75 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.5105, allocations: 1.178 MB / 0.7137 GB, free: 48.34 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.5105, allocations: 3.375 kB / 0.7137 GB, free: 48.34 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002079/0.5107, allocations: 44.08 kB / 0.7138 GB, free: 48.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.5107, allocations: 7.047 kB / 0.7138 GB, free: 48.34 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.5108, allocations: 9.906 kB / 0.7138 GB, free: 48.33 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.5108, allocations: 0 / 0.7138 GB, free: 48.33 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5108, allocations: 2.906 kB / 0.7138 GB, free: 48.33 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008787/0.5117, allocations: 0.577 MB / 0.7143 GB, free: 48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.5118, allocations: 149.8 kB / 0.7145 GB, free: 47.87 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.208e-05/0.5119, allocations: 20.31 kB / 0.7145 GB, free: 47.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.5123, allocations: 42.77 kB / 0.7145 GB, free: 47.85 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.5125, allocations: 72.97 kB / 0.7146 GB, free: 47.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.5125, allocations: 11.08 kB / 0.7146 GB, free: 47.84 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000534/0.513, allocations: 0.5647 MB / 0.7152 GB, free: 47.59 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.513, allocations: 0 / 0.7152 GB, free: 47.59 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004513/0.5135, allocations: 135.8 kB / 0.7153 GB, free: 47.56 MB / 0.545 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.00134/0.5149, allocations: 388.4 kB / 0.7157 GB, free: 47.45 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001035/0.5159, allocations: 0.4964 MB / 0.7162 GB, free: 47.23 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.5159, allocations: 0 / 0.7162 GB, free: 47.23 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0004323/0.5163, allocations: 192.9 kB / 0.7163 GB, free: 47.18 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007938/0.5172, allocations: 170.7 kB / 0.7165 GB, free: 47.13 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.5186, allocations: 1.057 MB / 0.7175 GB, free: 46.56 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.519, allocations: 0.9174 MB / 0.7184 GB, free: 45.83 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.5191, allocations: 58.34 kB / 0.7185 GB, free: 45.82 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.5191, allocations: 0 / 0.7185 GB, free: 45.82 MB / 0.545 GB Notification: Performance of Templates: time 0.01056/0.5297, allocations: 9.329 MB / 0.7276 GB, free: 44.84 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.OperationalEnvelope.pipe 2>&1)