Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4894/0.4894, allocations: 94.74 MB / 102 MB, free: 10.37 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002148/0.002148, allocations: 172.4 kB / 125.3 MB, free: 12.01 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.273/1.273, allocations: 170.5 MB / 319 MB, free: 9.465 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001707/0.001707, allocations: 109.1 kB / 381 MB, free: 18.19 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.783e-06/6.813e-06, allocations: 0 / 448.6 MB, free: 2.164 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1234, allocations: 61.52 MB / 0.4981 GB, free: 4.555 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3269/0.4504, allocations: 98.59 MB / 0.5944 GB, free: 3.828 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.4507, allocations: 78.25 kB / 0.5945 GB, free: 3.754 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.02077/0.4715, allocations: 7.75 MB / 0.602 GB, free: 12.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.516e-05/0.4715, allocations: 8.188 kB / 0.602 GB, free: 12.09 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0008733/0.4724, allocations: 0.6075 MB / 0.6026 GB, free: 11.44 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.4725, allocations: 8.781 kB / 0.6026 GB, free: 11.43 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.4726, allocations: 55.42 kB / 0.6027 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006298/0.4732, allocations: 375.4 kB / 0.6031 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.4733, allocations: 11.94 kB / 0.6031 GB, free: 10.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.4733, allocations: 16 kB / 0.6031 GB, free: 10.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003616/0.4737, allocations: 177.3 kB / 0.6033 GB, free: 10.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004256/0.4741, allocations: 271.9 kB / 0.6035 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.4741, allocations: 0.7969 kB / 0.6035 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/0.4742, allocations: 0 / 0.6035 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.4742, allocations: 8 kB / 0.6035 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.4756, allocations: 0.9169 MB / 0.6044 GB, free: 9.504 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/0.4759, allocations: 158.8 kB / 0.6046 GB, free: 9.344 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.476, allocations: 91.02 kB / 0.6047 GB, free: 9.254 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.4761, allocations: 192 / 0.6047 GB, free: 9.254 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.4761, allocations: 38.75 kB / 0.6047 GB, free: 9.207 MB / 426.7 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.4761, allocations: 0 / 0.6047 GB, free: 9.207 MB / 426.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003656/0.4765, allocations: 196.2 kB / 0.6049 GB, free: 9.012 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.4766, allocations: 132.5 kB / 0.605 GB, free: 8.852 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002629/0.4768, allocations: 252.6 kB / 0.6052 GB, free: 8.605 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.4769, allocations: 29.7 kB / 0.6053 GB, free: 8.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.895e-05/0.477, allocations: 168 kB / 0.6054 GB, free: 8.402 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.257e-05/0.477, allocations: 67 kB / 0.6055 GB, free: 8.336 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.041e-05/0.4771, allocations: 0 / 0.6055 GB, free: 8.336 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4772, allocations: 342.7 kB / 0.6058 GB, free: 7.992 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.4773, allocations: 64 kB / 0.6059 GB, free: 7.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.4775, allocations: 107.1 kB / 0.606 GB, free: 7.812 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/0.4776, allocations: 63.97 kB / 0.606 GB, free: 7.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4776, allocations: 0 / 0.606 GB, free: 7.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003251/0.4779, allocations: 212.5 kB / 0.6063 GB, free: 7.539 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.478, allocations: 7.375 kB / 0.6063 GB, free: 7.535 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.478, allocations: 8.031 kB / 0.6063 GB, free: 7.527 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.478, allocations: 0 / 0.6063 GB, free: 7.527 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/0.4782, allocations: 55.91 kB / 0.6063 GB, free: 7.473 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.4782, allocations: 0 / 0.6063 GB, free: 7.473 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.4784, allocations: 35.83 kB / 0.6064 GB, free: 7.438 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.4785, allocations: 4 kB / 0.6064 GB, free: 7.434 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.con.hys.y,con.hys.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.4786, allocations: 113.7 kB / 0.6065 GB, free: 7.316 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.891e-05/0.4786, allocations: 31.56 kB / 0.6065 GB, free: 7.285 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.915e-05/0.4787, allocations: 34.97 kB / 0.6065 GB, free: 7.246 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.4787, allocations: 8 kB / 0.6065 GB, free: 7.238 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.4788, allocations: 0 / 0.6065 GB, free: 7.238 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4788, allocations: 3.938 kB / 0.6065 GB, free: 7.234 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003926/0.4792, allocations: 353.8 kB / 0.6069 GB, free: 6.852 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4792, allocations: 0 / 0.6069 GB, free: 6.852 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002541/0.4794, allocations: 51.44 kB / 0.6069 GB, free: 6.805 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.4794, allocations: 0 / 0.6069 GB, free: 6.805 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.4795, allocations: 0 / 0.6069 GB, free: 6.805 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4795, allocations: 8 kB / 0.6069 GB, free: 6.797 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4795, allocations: 0 / 0.6069 GB, free: 6.797 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005111/0.48, allocations: 392 kB / 0.6073 GB, free: 6.398 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.4802, allocations: 128.7 kB / 0.6074 GB, free: 6.254 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.903e-05/0.4802, allocations: 0 / 0.6074 GB, free: 6.254 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.4804, allocations: 28.05 kB / 0.6075 GB, free: 6.227 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.4805, allocations: 15.97 kB / 0.6075 GB, free: 6.211 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.4805, allocations: 4 kB / 0.6075 GB, free: 6.207 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001894/0.4807, allocations: 199.1 kB / 0.6077 GB, free: 6.016 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003218/0.4811, allocations: 63.69 kB / 0.6077 GB, free: 5.953 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001382/0.4812, allocations: 103.2 kB / 0.6078 GB, free: 5.844 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002995/0.4815, allocations: 159.9 kB / 0.608 GB, free: 5.688 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4815, allocations: 0 / 0.608 GB, free: 5.688 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.4817, allocations: 90.19 kB / 0.6081 GB, free: 5.602 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004112/0.4821, allocations: 62.86 kB / 0.6081 GB, free: 5.543 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.4832, allocations: 463.3 kB / 0.6086 GB, free: 5.074 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004327/0.4836, allocations: 0.8177 MB / 0.6094 GB, free: 4.227 MB / 426.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4837, allocations: 0 / 0.6094 GB, free: 4.227 MB / 426.7 MB Notification: Performance of Templates: time 0.007021/0.4907, allocations: 2.989 MB / 0.6123 GB, free: 1.324 MB / 426.7 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)