Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.276/2.276, allocations: 253.1 MB / 260.4 MB, free: 7.469 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.001691/0.00169, allocations: 189.2 kB / 319.6 MB, free: 3.309 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.156/2.156, allocations: 205.4 MB / 0.5704 GB, free: 15.06 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.002075/0.002074, allocations: 97.91 kB / 0.6746 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.072e-05/1.089e-05, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2249, allocations: 106.2 MB / 0.888 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7185/0.9434, allocations: 138.5 MB / 1.023 GB, free: 92 kB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/0.9438, allocations: 74.64 kB / 1.023 GB, free: 52 kB / 0.6355 GB Notification: Performance of FrontEnd: time 0.03047/0.9743, allocations: 6.604 MB / 1.03 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.621e-05/0.9745, allocations: 8 kB / 1.03 GB, free: 10.63 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001493/0.976, allocations: 0.6031 MB / 1.03 GB, free: 10 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.9761, allocations: 8.031 kB / 1.03 GB, free: 9.996 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002346/0.9763, allocations: 47.62 kB / 1.03 GB, free: 9.949 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.9773, allocations: 385.8 kB / 1.031 GB, free: 9.59 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/0.9774, allocations: 16 kB / 1.031 GB, free: 9.574 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.991e-05/0.9775, allocations: 16 kB / 1.031 GB, free: 9.559 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006878/0.9782, allocations: 184.3 kB / 1.031 GB, free: 9.457 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007907/0.979, allocations: 297.9 kB / 1.031 GB, free: 9.203 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.979, allocations: 8.828 kB / 1.031 GB, free: 9.195 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.689e-05/0.9791, allocations: 0 / 1.031 GB, free: 9.195 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.9791, allocations: 8 kB / 1.031 GB, free: 9.188 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002918/0.9821, allocations: 1.182 MB / 1.032 GB, free: 8.145 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006131/0.9827, allocations: 152.6 kB / 1.033 GB, free: 8.047 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.983, allocations: 103 kB / 1.033 GB, free: 7.98 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.302e-05/0.9831, allocations: 192 / 1.033 GB, free: 7.98 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.9831, allocations: 38.56 kB / 1.033 GB, free: 7.938 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=22): time 1.934e-06/0.9831, allocations: 0 / 1.033 GB, free: 7.938 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22): time 0.0007227/0.9839, allocations: 197.5 kB / 1.033 GB, free: 7.789 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001609/0.9841, allocations: 166.1 kB / 1.033 GB, free: 7.59 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00052/0.9846, allocations: 267 kB / 1.033 GB, free: 7.383 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.934e-05/0.9847, allocations: 28.83 kB / 1.033 GB, free: 7.352 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.9849, allocations: 175.3 kB / 1.034 GB, free: 7.191 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.591e-05/0.985, allocations: 78.41 kB / 1.034 GB, free: 7.125 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.889e-05/0.985, allocations: 0 / 1.034 GB, free: 7.125 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001689/0.9852, allocations: 341.6 kB / 1.034 GB, free: 6.797 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.9854, allocations: 67.73 kB / 1.034 GB, free: 6.758 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000297/0.9857, allocations: 137 kB / 1.034 GB, free: 6.637 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.986, allocations: 77.55 kB / 1.034 GB, free: 6.59 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.986, allocations: 0 / 1.034 GB, free: 6.59 MB / 0.6511 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000747/0.9868, allocations: 230.6 kB / 1.034 GB, free: 6.414 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.9868, allocations: 12.12 kB / 1.034 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.9868, allocations: 3.906 kB / 1.034 GB, free: 6.398 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.743e-05/0.9869, allocations: 4 kB / 1.034 GB, free: 6.395 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000536/0.9874, allocations: 51.91 kB / 1.034 GB, free: 6.344 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.9875, allocations: 7.938 kB / 1.034 GB, free: 6.336 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004995/0.988, allocations: 43.81 kB / 1.035 GB, free: 6.293 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.337e-05/0.988, allocations: 7.375 kB / 1.035 GB, free: 6.289 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: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001634/0.9882, allocations: 111.5 kB / 1.035 GB, free: 6.176 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.9883, allocations: 39.53 kB / 1.035 GB, free: 6.137 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001736/0.9885, allocations: 36.53 kB / 1.035 GB, free: 6.113 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.9885, allocations: 7.984 kB / 1.035 GB, free: 6.105 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.9885, allocations: 0 / 1.035 GB, free: 6.105 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.9886, allocations: 0 / 1.035 GB, free: 6.105 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007035/0.9893, allocations: 363.5 kB / 1.035 GB, free: 5.793 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.9893, allocations: 0 / 1.035 GB, free: 5.793 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005461/0.9898, allocations: 47.91 kB / 1.035 GB, free: 5.746 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.9899, allocations: 4 kB / 1.035 GB, free: 5.742 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.9899, allocations: 0 / 1.035 GB, free: 5.742 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/0.9899, allocations: 4 kB / 1.035 GB, free: 5.738 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.9899, allocations: 0 / 1.035 GB, free: 5.738 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009956/0.9909, allocations: 408.3 kB / 1.036 GB, free: 5.43 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.9912, allocations: 139.2 kB / 1.036 GB, free: 5.289 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.489e-05/0.9913, allocations: 7.625 kB / 1.036 GB, free: 5.285 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004737/0.9918, allocations: 32.03 kB / 1.036 GB, free: 5.254 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.942e-05/0.9919, allocations: 15.91 kB / 1.036 GB, free: 5.238 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.992, allocations: 15.75 kB / 1.036 GB, free: 5.227 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0003778/0.9924, allocations: 216 kB / 1.036 GB, free: 5.059 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005703/0.993, allocations: 67.69 kB / 1.036 GB, free: 4.992 MB / 0.6511 GB 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 (22): * Single equations (assignments): 22 * 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.0002143/0.9932, allocations: 95.25 kB / 1.036 GB, free: 4.891 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005909/0.9938, allocations: 175.6 kB / 1.036 GB, free: 4.781 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.9938, allocations: 0 / 1.036 GB, free: 4.781 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002508/0.9941, allocations: 98.73 kB / 1.036 GB, free: 4.715 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008929/0.995, allocations: 62.16 kB / 1.036 GB, free: 4.668 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.997, allocations: 497.3 kB / 1.037 GB, free: 4.199 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006967/0.9978, allocations: 0.829 MB / 1.038 GB, free: 3.348 MB / 0.6511 GB Notification: Performance of SimCode: time 1.803e-06/0.9978, allocations: 0 / 1.038 GB, free: 3.348 MB / 0.6511 GB Notification: Performance of Templates: time 0.01293/1.011, allocations: 3.377 MB / 1.041 GB, free: 8 kB / 0.6511 GB