Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID") [: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 1.6.0+build.1/package.mo): time 0.4662/0.4662, allocations: 94.75 MB / 102 MB, free: 10.38 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001053/0.001053, allocations: 175.8 kB / 125.3 MB, free: 12.03 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.122/1.122, allocations: 170.5 MB / 319 MB, free: 9.395 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001784/0.001784, allocations: 103.6 kB / 381 MB, free: 18.16 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.604e-06/7.625e-06, allocations: 0 / 448.6 MB, free: 2.164 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1464, allocations: 61.52 MB / 0.4981 GB, free: 4.551 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.5014, allocations: 97.57 MB / 0.5934 GB, free: 4.848 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.5017, allocations: 81.12 kB / 0.5935 GB, free: 4.773 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.05469/0.5564, allocations: 19.24 MB / 0.6123 GB, free: 1.664 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.034e-05/0.5566, allocations: 12 kB / 0.6123 GB, free: 1.652 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001684/0.5582, allocations: 0.9586 MB / 0.6132 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.5583, allocations: 8.031 kB / 0.6132 GB, free: 0.6328 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001879/0.5585, allocations: 90.97 kB / 0.6133 GB, free: 0.543 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.5596, allocations: 0.5854 MB / 0.6139 GB, free: 15.91 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.5597, allocations: 80.39 kB / 0.614 GB, free: 15.82 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.019e-05/0.5598, allocations: 35.94 kB / 0.614 GB, free: 15.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006001/0.5604, allocations: 314 kB / 0.6143 GB, free: 15.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008069/0.5612, allocations: 474.2 kB / 0.6147 GB, free: 14.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.5612, allocations: 0 / 0.6147 GB, free: 14.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/0.5613, allocations: 0 / 0.6147 GB, free: 14.98 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.5613, allocations: 12 kB / 0.6148 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002603/0.5639, allocations: 1.393 MB / 0.6161 GB, free: 13.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008471/0.5648, allocations: 411.4 kB / 0.6165 GB, free: 13.13 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002727/0.5651, allocations: 149.7 kB / 0.6167 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.759e-05/0.5651, allocations: 7.984 kB / 0.6167 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003829/0.5655, allocations: 231.9 kB / 0.6169 GB, free: 12.74 MB / 442.7 MB Notification: Performance of pre-optimization done (n=44): time 1.933e-06/0.5655, allocations: 0 / 0.6169 GB, free: 12.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=44): time 0.0007068/0.5663, allocations: 360.8 kB / 0.6172 GB, free: 12.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.5664, allocations: 222.4 kB / 0.6174 GB, free: 12.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.5669, allocations: 418.5 kB / 0.6178 GB, free: 11.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.056e-05/0.567, allocations: 25.7 kB / 0.6179 GB, free: 11.67 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.5671, allocations: 229 kB / 0.6181 GB, free: 11.44 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.5673, allocations: 141.8 kB / 0.6182 GB, free: 11.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.147e-05/0.5673, allocations: 0 / 0.6182 GB, free: 11.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002132/0.5675, allocations: 378.8 kB / 0.6186 GB, free: 10.92 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.5677, allocations: 128.9 kB / 0.6187 GB, free: 10.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.568, allocations: 221.7 kB / 0.6189 GB, free: 10.56 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.5683, allocations: 144.8 kB / 0.619 GB, free: 10.42 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.5683, allocations: 0 / 0.619 GB, free: 10.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006574/0.569, allocations: 422.4 kB / 0.6194 GB, free: 10 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.569, allocations: 4 kB / 0.6195 GB, free: 9.996 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.569, allocations: 0.8125 kB / 0.6195 GB, free: 9.996 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.569, allocations: 4 kB / 0.6195 GB, free: 9.992 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004949/0.5695, allocations: 111.9 kB / 0.6196 GB, free: 9.883 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.5696, allocations: 7.938 kB / 0.6196 GB, free: 9.875 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004627/0.57, allocations: 75.48 kB / 0.6196 GB, free: 9.801 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/0.5701, allocations: 16 kB / 0.6197 GB, free: 9.785 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * 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.0001335/0.5702, allocations: 112.9 kB / 0.6198 GB, free: 9.668 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.082e-05/0.5703, allocations: 63.23 kB / 0.6198 GB, free: 9.605 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001392/0.5705, allocations: 65.92 kB / 0.6199 GB, free: 9.543 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.5705, allocations: 6 kB / 0.6199 GB, free: 9.539 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.5705, allocations: 7.906 kB / 0.6199 GB, free: 9.531 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.5705, allocations: 3.656 kB / 0.6199 GB, free: 9.531 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006049/0.5711, allocations: 0.5561 MB / 0.6204 GB, free: 8.938 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.5711, allocations: 0 / 0.6204 GB, free: 8.938 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/0.5716, allocations: 95.89 kB / 0.6205 GB, free: 8.844 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.5716, allocations: 4 kB / 0.6205 GB, free: 8.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.5717, allocations: 3.984 kB / 0.6205 GB, free: 8.836 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.5717, allocations: 8 kB / 0.6206 GB, free: 8.828 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.5717, allocations: 0 / 0.6206 GB, free: 8.828 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009153/0.5726, allocations: 0.5959 MB / 0.6211 GB, free: 8.211 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.5729, allocations: 200 kB / 0.6213 GB, free: 7.996 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.281e-05/0.573, allocations: 4 kB / 0.6213 GB, free: 7.992 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005334/0.5735, allocations: 64.89 kB / 0.6214 GB, free: 7.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.5736, allocations: 31.94 kB / 0.6214 GB, free: 7.898 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.834e-05/0.5737, allocations: 12 kB / 0.6214 GB, free: 7.887 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003617/0.5741, allocations: 330.9 kB / 0.6218 GB, free: 7.566 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003988/0.5745, allocations: 111.6 kB / 0.6219 GB, free: 7.457 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * 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.0001759/0.5746, allocations: 115.1 kB / 0.622 GB, free: 7.336 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006141/0.5753, allocations: 367.9 kB / 0.6223 GB, free: 6.973 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5753, allocations: 0 / 0.6223 GB, free: 6.973 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002708/0.5756, allocations: 175.9 kB / 0.6225 GB, free: 6.801 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000727/0.5763, allocations: 133.2 kB / 0.6226 GB, free: 6.68 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.5781, allocations: 0.7989 MB / 0.6234 GB, free: 5.844 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005978/0.5787, allocations: 0.955 MB / 0.6243 GB, free: 4.867 MB / 442.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5787, allocations: 0 / 0.6243 GB, free: 4.867 MB / 442.7 MB Notification: Performance of Templates: time 0.01308/0.5918, allocations: 7.192 MB / 0.6314 GB, free: 13.84 MB / 458.7 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)