Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.6813/0.6813, allocations: 141.8 MB / 149.1 MB, free: 172 kB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 180.7 kB / 182 MB, free: 12.42 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.226/1.226, allocations: 221.4 MB / 436.1 MB, free: 5.145 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009118/0.0009118, allocations: 97.36 kB / 0.5071 GB, free: 19.25 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001701/0.001701, allocations: 281.8 kB / 0.5885 GB, free: 6.367 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.135e-06/8.425e-06, allocations: 4.875 kB / 0.6759 GB, free: 139.7 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1568, allocations: 82.77 MB / 0.7567 GB, free: 88.01 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1237/0.2805, allocations: 114.5 MB / 0.8685 GB, free: 5.379 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.2808, allocations: 71.97 kB / 0.8686 GB, free: 5.309 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.2767/0.5575, allocations: 11.99 MB / 0.8803 GB, free: 110.9 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 6.163e-05/0.5576, allocations: 11.84 kB / 0.8803 GB, free: 110.9 MB / 0.5419 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.001303/0.5589, allocations: 0.8955 MB / 0.8812 GB, free: 110.3 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.559, allocations: 10.31 kB / 0.8812 GB, free: 110.3 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.5591, allocations: 82.22 kB / 0.8813 GB, free: 110.3 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008261/0.5599, allocations: 0.5256 MB / 0.8818 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.56, allocations: 23.69 kB / 0.8818 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.358e-05/0.5601, allocations: 39.39 kB / 0.8819 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007635/0.5608, allocations: 397.9 kB / 0.8822 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008709/0.5617, allocations: 0.5152 MB / 0.8827 GB, free: 109.9 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.5618, allocations: 8.656 kB / 0.8827 GB, free: 109.9 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.955e-05/0.5618, allocations: 2.078 kB / 0.8827 GB, free: 109.9 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.5618, allocations: 14.44 kB / 0.8828 GB, free: 109.9 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003767/0.5656, allocations: 1.998 MB / 0.8847 GB, free: 109.2 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008437/0.5665, allocations: 302.6 kB / 0.885 GB, free: 109.2 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/0.5669, allocations: 207.5 kB / 0.8852 GB, free: 109.2 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 5.649e-05/0.567, allocations: 9.344 kB / 0.8852 GB, free: 109.2 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000462/0.5675, allocations: 225.7 kB / 0.8854 GB, free: 109.2 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=50): time 3.436e-06/0.5675, allocations: 0 / 0.8854 GB, free: 109.2 MB / 0.5419 GB Notification: Performance of matching and sorting (n=50): time 0.000999/0.5685, allocations: 392.9 kB / 0.8858 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.558e-05/0.5686, allocations: 169.5 kB / 0.886 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005262/0.5691, allocations: 347.6 kB / 0.8863 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 4.467e-05/0.5692, allocations: 27.95 kB / 0.8863 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.5694, allocations: 252.4 kB / 0.8866 GB, free: 108.6 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.5695, allocations: 160.6 kB / 0.8867 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.056e-05/0.5696, allocations: 0 / 0.8867 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.5698, allocations: 363.2 kB / 0.8871 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.57, allocations: 145.2 kB / 0.8872 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003598/0.5704, allocations: 251.2 kB / 0.8874 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003194/0.5707, allocations: 171.4 kB / 0.8876 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5707, allocations: 0 / 0.8876 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00092/0.5717, allocations: 461.2 kB / 0.888 GB, free: 108 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.5717, allocations: 5.281 kB / 0.888 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.5717, allocations: 1.188 kB / 0.888 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.841e-05/0.5717, allocations: 8.734 kB / 0.8881 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006569/0.5724, allocations: 128.4 kB / 0.8882 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.5724, allocations: 4.438 kB / 0.8882 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004972/0.5729, allocations: 78.48 kB / 0.8883 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.796e-05/0.573, allocations: 21.8 kB / 0.8883 GB, free: 107.9 MB / 0.5419 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.0001403/0.5731, allocations: 121.5 kB / 0.8884 GB, free: 107.8 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.986e-05/0.5732, allocations: 54.67 kB / 0.8884 GB, free: 107.8 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001407/0.5734, allocations: 55.83 kB / 0.8885 GB, free: 107.8 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.5734, allocations: 9.766 kB / 0.8885 GB, free: 107.8 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/0.5734, allocations: 1.094 kB / 0.8885 GB, free: 107.8 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.5734, allocations: 2.391 kB / 0.8885 GB, free: 107.8 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002062/0.5755, allocations: 1.097 MB / 0.8896 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.5755, allocations: 5.094 kB / 0.8896 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005521/0.5761, allocations: 112 kB / 0.8897 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.5761, allocations: 3.844 kB / 0.8897 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.329e-05/0.5761, allocations: 7.766 kB / 0.8897 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.5762, allocations: 6.312 kB / 0.8897 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.5762, allocations: 0 / 0.8897 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009624/0.5771, allocations: 0.7144 MB / 0.8904 GB, free: 107 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001923/0.5773, allocations: 181.9 kB / 0.8906 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.94e-05/0.5774, allocations: 4.906 kB / 0.8906 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004062/0.5778, allocations: 46.34 kB / 0.8906 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.578, allocations: 35.94 kB / 0.8907 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.592e-05/0.578, allocations: 13.97 kB / 0.8907 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0002953/0.5783, allocations: 266.2 kB / 0.8909 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0005505/0.5789, allocations: 134.4 kB / 0.8911 GB, free: 106.6 MB / 0.5419 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.0001629/0.579, allocations: 119.9 kB / 0.8912 GB, free: 106.5 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0006785/0.5797, allocations: 407.7 kB / 0.8916 GB, free: 106.3 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5797, allocations: 1.094 kB / 0.8916 GB, free: 106.3 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002844/0.58, allocations: 202.6 kB / 0.8918 GB, free: 106.2 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006523/0.5807, allocations: 122.4 kB / 0.8919 GB, free: 106.2 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002714/0.5834, allocations: 1.251 MB / 0.8931 GB, free: 105.6 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005889/0.584, allocations: 0.952 MB / 0.894 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of SimCode: time 9.31e-07/0.584, allocations: 0 / 0.894 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of Templates: time 0.01357/0.5976, allocations: 6.58 MB / 0.9004 GB, free: 102.1 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)