Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [: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.375/2.375, allocations: 253.1 MB / 260.4 MB, free: 7.52 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.002128/0.002127, allocations: 181.2 kB / 319.6 MB, free: 3.328 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/2, allocations: 205.4 MB / 0.5704 GB, free: 15.16 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.001316/0.001315, allocations: 95.53 kB / 0.6746 GB, free: 4.531 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.214e-05/1.218e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.244, allocations: 106.3 MB / 0.888 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8217/1.066, allocations: 138.6 MB / 1.023 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004107/1.066, allocations: 80.16 kB / 1.023 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.05575/1.122, allocations: 12.25 MB / 1.035 GB, free: 5.77 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 7.521e-05/1.122, allocations: 16 kB / 1.035 GB, free: 5.754 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002467/1.125, allocations: 0.8873 MB / 1.036 GB, free: 4.863 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.764e-05/1.125, allocations: 8.031 kB / 1.036 GB, free: 4.855 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002874/1.125, allocations: 82.97 kB / 1.036 GB, free: 4.773 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/1.127, allocations: 0.5307 MB / 1.037 GB, free: 4.309 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.515e-05/1.127, allocations: 23.98 kB / 1.037 GB, free: 4.285 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/1.127, allocations: 32 kB / 1.037 GB, free: 4.254 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001404/1.128, allocations: 389.8 kB / 1.037 GB, free: 4.039 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/1.13, allocations: 0.533 MB / 1.038 GB, free: 3.625 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.447e-05/1.13, allocations: 7.984 kB / 1.038 GB, free: 3.617 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.072e-05/1.13, allocations: 3.938 kB / 1.038 GB, free: 3.613 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/1.13, allocations: 16 kB / 1.038 GB, free: 3.598 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005345/1.135, allocations: 1.988 MB / 1.04 GB, free: 2.082 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009368/1.136, allocations: 302.7 kB / 1.04 GB, free: 1.895 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000546/1.137, allocations: 210.8 kB / 1.04 GB, free: 1.77 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.989e-05/1.137, allocations: 4.438 kB / 1.04 GB, free: 1.766 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000614/1.137, allocations: 233 kB / 1.041 GB, free: 1.598 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=50): time 4.469e-06/1.138, allocations: 4 kB / 1.041 GB, free: 1.594 MB / 0.6511 GB Notification: Performance of matching and sorting (n=50): time 0.001276/1.139, allocations: 390 kB / 1.041 GB, free: 1.316 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/1.139, allocations: 166.6 kB / 1.041 GB, free: 1.117 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007772/1.14, allocations: 347.8 kB / 1.041 GB, free: 0.8477 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.604e-05/1.14, allocations: 25.7 kB / 1.041 GB, free: 0.8164 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.00029/1.14, allocations: 251.7 kB / 1.042 GB, free: 0.5977 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/1.14, allocations: 167.1 kB / 1.042 GB, free: 464 kB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.725e-05/1.14, allocations: 0 / 1.042 GB, free: 464 kB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000284/1.141, allocations: 360.5 kB / 1.042 GB, free: 116 kB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004573/1.141, allocations: 153.3 kB / 1.042 GB, free: 32 kB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005861/1.142, allocations: 244.7 kB / 1.043 GB, free: 15.84 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005038/1.142, allocations: 170.4 kB / 1.043 GB, free: 15.73 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/1.142, allocations: 0 / 1.043 GB, free: 15.73 MB / 0.6667 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001351/1.144, allocations: 460.5 kB / 1.043 GB, free: 15.4 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/1.144, allocations: 4 kB / 1.043 GB, free: 15.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/1.144, allocations: 8.125 kB / 1.043 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.916e-05/1.144, allocations: 8 kB / 1.043 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/1.145, allocations: 127.6 kB / 1.043 GB, free: 15.27 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/1.145, allocations: 4 kB / 1.043 GB, free: 15.26 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008718/1.146, allocations: 75.55 kB / 1.043 GB, free: 15.19 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-05/1.146, allocations: 15.75 kB / 1.043 GB, free: 15.18 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * 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.0002011/1.146, allocations: 116.9 kB / 1.043 GB, free: 15.05 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/1.146, allocations: 51.34 kB / 1.044 GB, free: 15 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002396/1.146, allocations: 63.81 kB / 1.044 GB, free: 14.97 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/1.147, allocations: 4 kB / 1.044 GB, free: 14.97 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/1.147, allocations: 4 kB / 1.044 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/1.147, allocations: 7.969 kB / 1.044 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00259/1.149, allocations: 1.106 MB / 1.045 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/1.149, allocations: 0 / 1.045 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/1.15, allocations: 111.8 kB / 1.045 GB, free: 14.04 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.455e-05/1.15, allocations: 4 kB / 1.045 GB, free: 14.03 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.156e-05/1.15, allocations: 3.812 kB / 1.045 GB, free: 14.03 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/1.15, allocations: 4 kB / 1.045 GB, free: 14.03 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.15, allocations: 3.938 kB / 1.045 GB, free: 14.02 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00185/1.152, allocations: 0.7189 MB / 1.046 GB, free: 13.51 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004209/1.153, allocations: 179.1 kB / 1.046 GB, free: 13.35 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/1.153, allocations: 0 / 1.046 GB, free: 13.35 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007924/1.154, allocations: 51.86 kB / 1.046 GB, free: 13.3 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/1.154, allocations: 35.95 kB / 1.046 GB, free: 13.27 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.694e-05/1.154, allocations: 11.98 kB / 1.046 GB, free: 13.26 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0005225/1.154, allocations: 268 kB / 1.046 GB, free: 13.07 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007839/1.155, allocations: 139.5 kB / 1.046 GB, free: 12.93 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002699/1.156, allocations: 107.2 kB / 1.046 GB, free: 12.82 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001185/1.157, allocations: 410.6 kB / 1.047 GB, free: 12.54 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.157, allocations: 0 / 1.047 GB, free: 12.54 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005414/1.157, allocations: 202.7 kB / 1.047 GB, free: 12.41 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/1.159, allocations: 116.8 kB / 1.047 GB, free: 12.32 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005292/1.164, allocations: 1.255 MB / 1.048 GB, free: 11.14 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/1.165, allocations: 0.9441 MB / 1.049 GB, free: 10.17 MB / 0.6667 GB Notification: Performance of SimCode: time 9.92e-07/1.165, allocations: 4 kB / 1.049 GB, free: 10.17 MB / 0.6667 GB Notification: Performance of Templates: time 0.02286/1.188, allocations: 6.57 MB / 1.056 GB, free: 3.68 MB / 0.6667 GB