Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.256/2.256, allocations: 253.1 MB / 260.4 MB, free: 7.438 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001742/0.001741, allocations: 181.2 kB / 319.6 MB, free: 3.332 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.02/2.02, allocations: 205.4 MB / 0.5704 GB, free: 15.09 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001347/0.001346, allocations: 86.03 kB / 0.6746 GB, free: 4.445 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.21e-05/1.236e-05, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2199, allocations: 106.3 MB / 0.888 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6993/0.9193, allocations: 139.5 MB / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003157/0.9196, allocations: 78.64 kB / 1.024 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.03238/0.952, allocations: 7.217 MB / 1.031 GB, free: 9.074 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 6.043e-05/0.9522, allocations: 12 kB / 1.031 GB, free: 9.062 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001989/0.9542, allocations: 0.6491 MB / 1.032 GB, free: 8.402 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.9542, allocations: 8.031 kB / 1.032 GB, free: 8.395 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003258/0.9546, allocations: 55.34 kB / 1.032 GB, free: 8.34 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.9556, allocations: 402.1 kB / 1.032 GB, free: 7.969 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.9557, allocations: 16 kB / 1.033 GB, free: 7.953 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.058e-05/0.9558, allocations: 24 kB / 1.033 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009632/0.9568, allocations: 227.7 kB / 1.033 GB, free: 7.797 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009182/0.9577, allocations: 342.9 kB / 1.033 GB, free: 7.52 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/0.9578, allocations: 4.828 kB / 1.033 GB, free: 7.516 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.296e-05/0.9578, allocations: 0 / 1.033 GB, free: 7.516 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.9579, allocations: 8.219 kB / 1.033 GB, free: 7.508 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003385/0.9613, allocations: 1.302 MB / 1.034 GB, free: 6.383 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000652/0.962, allocations: 201 kB / 1.035 GB, free: 6.25 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003225/0.9623, allocations: 115.2 kB / 1.035 GB, free: 6.18 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.476e-05/0.9624, allocations: 11.94 kB / 1.035 GB, free: 6.168 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004226/0.9628, allocations: 152.2 kB / 1.035 GB, free: 6.047 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=33): time 5.05e-06/0.9628, allocations: 0 / 1.035 GB, free: 6.047 MB / 0.6511 GB Notification: Performance of matching and sorting (n=33): time 0.001041/0.9639, allocations: 250.9 kB / 1.035 GB, free: 5.855 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/0.964, allocations: 139.6 kB / 1.035 GB, free: 5.691 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000532/0.9646, allocations: 274.6 kB / 1.035 GB, free: 5.477 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.147e-05/0.9647, allocations: 28.7 kB / 1.035 GB, free: 5.445 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002043/0.9649, allocations: 190 kB / 1.036 GB, free: 5.27 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.965, allocations: 100.6 kB / 1.036 GB, free: 5.184 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/0.9651, allocations: 0 / 1.036 GB, free: 5.184 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002164/0.9653, allocations: 347.5 kB / 1.036 GB, free: 4.852 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.9656, allocations: 81.44 kB / 1.036 GB, free: 4.809 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003782/0.966, allocations: 169.8 kB / 1.036 GB, free: 4.668 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.9663, allocations: 91.23 kB / 1.036 GB, free: 4.617 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.9663, allocations: 0 / 1.036 GB, free: 4.617 MB / 0.6511 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009395/0.9672, allocations: 298 kB / 1.037 GB, free: 4.391 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.9673, allocations: 4 kB / 1.037 GB, free: 4.387 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.9673, allocations: 8.125 kB / 1.037 GB, free: 4.379 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.9673, allocations: 3.938 kB / 1.037 GB, free: 4.375 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000611/0.968, allocations: 63.91 kB / 1.037 GB, free: 4.312 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.968, allocations: 4 kB / 1.037 GB, free: 4.309 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004708/0.9685, allocations: 47.75 kB / 1.037 GB, free: 4.262 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/0.9685, allocations: 10.94 kB / 1.037 GB, free: 4.254 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.and3.u1,con.con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001795/0.9687, allocations: 120.9 kB / 1.037 GB, free: 4.133 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-05/0.9688, allocations: 39.53 kB / 1.037 GB, free: 4.094 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/0.969, allocations: 45.91 kB / 1.037 GB, free: 4.062 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.969, allocations: 4 kB / 1.037 GB, free: 4.059 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.969, allocations: 0 / 1.037 GB, free: 4.059 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.9691, allocations: 3.984 kB / 1.037 GB, free: 4.055 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001654/0.9707, allocations: 0.7341 MB / 1.038 GB, free: 3.453 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.9708, allocations: 4 kB / 1.038 GB, free: 3.449 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000573/0.9714, allocations: 58.72 kB / 1.038 GB, free: 3.395 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.884e-06/0.9714, allocations: 3.938 kB / 1.038 GB, free: 3.391 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.9714, allocations: 4 kB / 1.038 GB, free: 3.387 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.9714, allocations: 0 / 1.038 GB, free: 3.387 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.9715, allocations: 3.984 kB / 1.038 GB, free: 3.383 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001174/0.9726, allocations: 490.8 kB / 1.038 GB, free: 3.012 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002847/0.9729, allocations: 142.6 kB / 1.038 GB, free: 2.871 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.9731, allocations: 3.906 kB / 1.038 GB, free: 2.867 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005219/0.9736, allocations: 32.05 kB / 1.038 GB, free: 2.836 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.9738, allocations: 23.45 kB / 1.038 GB, free: 2.816 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-05/0.9738, allocations: 11.88 kB / 1.038 GB, free: 2.809 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0004083/0.9742, allocations: 214.1 kB / 1.039 GB, free: 2.641 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006354/0.9749, allocations: 75.75 kB / 1.039 GB, free: 2.566 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.and3.u1) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002356/0.9751, allocations: 111.1 kB / 1.039 GB, free: 2.449 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0007315/0.9759, allocations: 242.5 kB / 1.039 GB, free: 2.289 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.9759, allocations: 0 / 1.039 GB, free: 2.289 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000337/0.9762, allocations: 127.2 kB / 1.039 GB, free: 2.203 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007725/0.977, allocations: 64.41 kB / 1.039 GB, free: 2.152 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.9793, allocations: 0.5493 MB / 1.04 GB, free: 1.637 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008082/0.9801, allocations: 0.8538 MB / 1.041 GB, free: 0.7578 MB / 0.6511 GB Notification: Performance of SimCode: time 1.373e-06/0.9801, allocations: 0 / 1.041 GB, free: 0.7578 MB / 0.6511 GB Notification: Performance of Templates: time 0.01544/0.9956, allocations: 3.854 MB / 1.044 GB, free: 12.95 MB / 0.6667 GB