Running: ./testmodel.py --libraries=/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) [: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 7.0.1/package.mo): time 2.35/2.35, allocations: 248.6 MB / 255.9 MB, free: 7.148 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001652/0.001652, allocations: 184.3 kB / 315.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.981/1.981, allocations: 205.1 MB / 0.5658 GB, free: 300 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001313/0.001312, allocations: 86.17 kB / 0.67 GB, free: 5.496 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5168/0.5182, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.7692, allocations: 106.3 MB / 0.8835 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7034/1.473, allocations: 139.5 MB / 1.02 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003938/1.473, allocations: 78.2 kB / 1.02 GB, free: 0.7578 MB / 0.6355 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.04699/1.52, allocations: 7.868 MB / 1.027 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/1.52, allocations: 12 kB / 1.027 GB, free: 10.16 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002357/1.52, allocations: 55.34 kB / 1.028 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/1.522, allocations: 406.1 kB / 1.028 GB, free: 9.727 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.037e-05/1.522, allocations: 15.5 kB / 1.028 GB, free: 9.715 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/1.522, allocations: 28 kB / 1.028 GB, free: 9.688 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001129/1.523, allocations: 228.3 kB / 1.028 GB, free: 9.551 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/1.524, allocations: 336.2 kB / 1.029 GB, free: 9.281 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/1.524, allocations: 3.984 kB / 1.029 GB, free: 9.277 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-05/1.525, allocations: 3.625 kB / 1.029 GB, free: 9.277 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.482e-05/1.525, allocations: 12 kB / 1.029 GB, free: 9.266 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00446/1.529, allocations: 1.296 MB / 1.03 GB, free: 8.145 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009545/1.53, allocations: 201.5 kB / 1.03 GB, free: 8.012 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004528/1.531, allocations: 127.8 kB / 1.03 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.374e-05/1.531, allocations: 3.938 kB / 1.03 GB, free: 7.926 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005758/1.531, allocations: 159.7 kB / 1.03 GB, free: 7.793 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=33): time 4.448e-06/1.531, allocations: 0 / 1.03 GB, free: 7.793 MB / 0.6511 GB Notification: Performance of matching and sorting (n=33): time 0.001141/1.532, allocations: 247.9 kB / 1.031 GB, free: 7.609 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/1.533, allocations: 136.5 kB / 1.031 GB, free: 7.445 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007469/1.533, allocations: 277.9 kB / 1.031 GB, free: 7.223 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.661e-05/1.534, allocations: 32.89 kB / 1.031 GB, free: 7.188 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003006/1.534, allocations: 188.5 kB / 1.031 GB, free: 7.02 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/1.534, allocations: 96 kB / 1.031 GB, free: 6.938 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.725e-05/1.534, allocations: 0 / 1.031 GB, free: 6.938 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002374/1.534, allocations: 347.1 kB / 1.032 GB, free: 6.605 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004273/1.535, allocations: 84.44 kB / 1.032 GB, free: 6.559 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005694/1.535, allocations: 160.7 kB / 1.032 GB, free: 6.426 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004678/1.536, allocations: 96.28 kB / 1.032 GB, free: 6.371 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/1.536, allocations: 4 kB / 1.032 GB, free: 6.367 MB / 0.6511 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00122/1.537, allocations: 292.5 kB / 1.032 GB, free: 6.145 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/1.537, allocations: 8 kB / 1.032 GB, free: 6.137 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/1.537, allocations: 3.984 kB / 1.032 GB, free: 6.133 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.73e-05/1.537, allocations: 7.938 kB / 1.032 GB, free: 6.125 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008366/1.538, allocations: 67.41 kB / 1.032 GB, free: 6.062 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/1.538, allocations: 0 / 1.032 GB, free: 6.062 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006556/1.539, allocations: 43.86 kB / 1.032 GB, free: 6.02 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.837e-05/1.539, allocations: 15.42 kB / 1.032 GB, free: 6.008 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.0002279/1.539, allocations: 120.8 kB / 1.032 GB, free: 5.883 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/1.539, allocations: 35.58 kB / 1.032 GB, free: 5.848 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002136/1.54, allocations: 43.92 kB / 1.032 GB, free: 5.82 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/1.54, allocations: 4 kB / 1.032 GB, free: 5.816 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/1.54, allocations: 0 / 1.032 GB, free: 5.816 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/1.54, allocations: 3.984 kB / 1.032 GB, free: 5.812 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002307/1.542, allocations: 0.7401 MB / 1.033 GB, free: 5.203 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/1.542, allocations: 0 / 1.033 GB, free: 5.203 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007405/1.543, allocations: 59.16 kB / 1.033 GB, free: 5.148 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-05/1.543, allocations: 4 kB / 1.033 GB, free: 5.145 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.56e-05/1.543, allocations: 0 / 1.033 GB, free: 5.145 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.556e-06/1.543, allocations: 3.938 kB / 1.033 GB, free: 5.141 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.543, allocations: 3.938 kB / 1.033 GB, free: 5.137 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001706/1.545, allocations: 0.4885 MB / 1.034 GB, free: 4.758 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002397/1.547, allocations: 0.9752 MB / 1.035 GB, free: 3.949 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003602/1.547, allocations: 142.4 kB / 1.035 GB, free: 3.809 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/1.548, allocations: 7 kB / 1.035 GB, free: 3.805 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007403/1.548, allocations: 32.09 kB / 1.035 GB, free: 3.773 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/1.548, allocations: 23.14 kB / 1.035 GB, free: 3.754 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.337e-05/1.549, allocations: 8 kB / 1.035 GB, free: 3.746 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0005179/1.549, allocations: 209.7 kB / 1.035 GB, free: 3.586 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002337/1.551, allocations: 75.75 kB / 1.035 GB, free: 3.512 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.0003121/1.552, allocations: 116.5 kB / 1.035 GB, free: 3.395 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001147/1.553, allocations: 233.6 kB / 1.036 GB, free: 3.242 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.553, allocations: 0 / 1.036 GB, free: 3.242 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000608/1.554, allocations: 130.6 kB / 1.036 GB, free: 3.152 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/1.555, allocations: 69.67 kB / 1.036 GB, free: 3.102 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/1.558, allocations: 0.5505 MB / 1.036 GB, free: 2.586 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009821/1.559, allocations: 0.8577 MB / 1.037 GB, free: 1.699 MB / 0.6511 GB Notification: Performance of SimCode: time 1.703e-06/1.559, allocations: 0 / 1.037 GB, free: 1.699 MB / 0.6511 GB