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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.633/0.633, allocations: 94.77 MB / 102.2 MB, free: 10.16 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.002117/0.002117, allocations: 180.8 kB / 125.6 MB, free: 11.87 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.744/1.744, allocations: 170.6 MB / 319.4 MB, free: 9.262 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.001668/0.001668, allocations: 111.8 kB / 381.3 MB, free: 18.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.127e-05/2.13e-05, allocations: 3.984 kB / 449.1 MB, free: 1.742 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1735, allocations: 61.51 MB / 0.4987 GB, free: 4.141 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4916/0.6652, allocations: 97.64 MB / 0.594 GB, free: 4.316 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.6656, allocations: 80.64 kB / 0.5941 GB, free: 4.242 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08596/0.7516, allocations: 19.55 MB / 0.6132 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.7516, allocations: 0 / 0.6132 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001148/0.7518, allocations: 12 kB / 0.6132 GB, free: 0.8164 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.003547/0.7553, allocations: 0.9496 MB / 0.6141 GB, free: 15.82 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.555e-05/0.7554, allocations: 12.03 kB / 0.6141 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007215/0.7562, allocations: 86.97 kB / 0.6142 GB, free: 15.72 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002141/0.7583, allocations: 0.5777 MB / 0.6148 GB, free: 15.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001782/0.7585, allocations: 86.77 kB / 0.6149 GB, free: 15.01 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002247/0.7588, allocations: 28 kB / 0.6149 GB, free: 14.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001128/0.7599, allocations: 318.6 kB / 0.6152 GB, free: 14.67 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.7612, allocations: 468.5 kB / 0.6156 GB, free: 14.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.7612, allocations: 4 kB / 0.6156 GB, free: 14.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-05/0.7613, allocations: 0 / 0.6156 GB, free: 14.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.353e-05/0.7613, allocations: 15.95 kB / 0.6157 GB, free: 14.16 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004167/0.7655, allocations: 1.397 MB / 0.617 GB, free: 12.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.7668, allocations: 428.1 kB / 0.6174 GB, free: 12.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004073/0.7672, allocations: 152.9 kB / 0.6176 GB, free: 12.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.47e-05/0.7673, allocations: 4 kB / 0.6176 GB, free: 12.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006605/0.7679, allocations: 236 kB / 0.6178 GB, free: 11.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=44): time 3.427e-06/0.768, allocations: 4.5 kB / 0.6178 GB, free: 11.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=44): time 0.001151/0.7691, allocations: 380.9 kB / 0.6182 GB, free: 11.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001672/0.7693, allocations: 213.6 kB / 0.6184 GB, free: 11.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008694/0.7702, allocations: 418.5 kB / 0.6188 GB, free: 10.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.832e-05/0.7703, allocations: 29.7 kB / 0.6188 GB, free: 10.81 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004138/0.7707, allocations: 325 kB / 0.6191 GB, free: 10.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002/0.771, allocations: 139.5 kB / 0.6192 GB, free: 10.35 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.65e-05/0.771, allocations: 8 kB / 0.6192 GB, free: 10.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002399/0.7713, allocations: 370.8 kB / 0.6196 GB, free: 9.973 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003793/0.7716, allocations: 133 kB / 0.6197 GB, free: 9.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004827/0.7721, allocations: 216.4 kB / 0.6199 GB, free: 9.605 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.7725, allocations: 140.7 kB / 0.6201 GB, free: 9.469 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.7726, allocations: 4 kB / 0.6201 GB, free: 9.465 MB / 442.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001204/0.7738, allocations: 427.2 kB / 0.6205 GB, free: 9.039 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.02e-05/0.7739, allocations: 33.69 kB / 0.6205 GB, free: 9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.7739, allocations: 0 / 0.6205 GB, free: 9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.583e-05/0.7739, allocations: 4 kB / 0.6205 GB, free: 8.996 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007669/0.7747, allocations: 108 kB / 0.6206 GB, free: 8.891 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.62e-05/0.7747, allocations: 7.938 kB / 0.6206 GB, free: 8.883 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007206/0.7755, allocations: 63.66 kB / 0.6207 GB, free: 8.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.245e-05/0.7755, allocations: 16 kB / 0.6207 GB, free: 8.805 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.0002178/0.7758, allocations: 117.4 kB / 0.6208 GB, free: 8.684 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/0.776, allocations: 59.25 kB / 0.6209 GB, free: 8.625 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002009/0.7762, allocations: 66.23 kB / 0.6209 GB, free: 8.562 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.7762, allocations: 8 kB / 0.6209 GB, free: 8.555 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.7762, allocations: 0 / 0.6209 GB, free: 8.555 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.7762, allocations: 3.953 kB / 0.6209 GB, free: 8.551 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.7773, allocations: 0.5527 MB / 0.6215 GB, free: 7.961 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.7773, allocations: 4 kB / 0.6215 GB, free: 7.957 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007648/0.7781, allocations: 91.89 kB / 0.6216 GB, free: 7.867 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.154e-05/0.7781, allocations: 0 / 0.6216 GB, free: 7.867 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.267e-05/0.7782, allocations: 15.42 kB / 0.6216 GB, free: 7.855 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.7782, allocations: 0 / 0.6216 GB, free: 7.855 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.7782, allocations: 1.719 kB / 0.6216 GB, free: 7.855 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001521/0.7797, allocations: 0.6037 MB / 0.6222 GB, free: 7.234 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003835/0.7801, allocations: 196.2 kB / 0.6224 GB, free: 7.023 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.7803, allocations: 4 kB / 0.6224 GB, free: 7.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000815/0.7811, allocations: 59.94 kB / 0.6224 GB, free: 6.961 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.7813, allocations: 39.89 kB / 0.6225 GB, free: 6.922 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.293e-05/0.7814, allocations: 15.98 kB / 0.6225 GB, free: 6.906 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006387/0.782, allocations: 326.9 kB / 0.6228 GB, free: 6.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.782, allocations: 4 kB / 0.6228 GB, free: 6.586 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007384/0.7828, allocations: 115.6 kB / 0.6229 GB, free: 6.473 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.000237/0.783, allocations: 116.3 kB / 0.623 GB, free: 6.352 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009942/0.784, allocations: 389 kB / 0.6234 GB, free: 5.961 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.7841, allocations: 4 kB / 0.6234 GB, free: 5.957 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004676/0.7845, allocations: 175.8 kB / 0.6236 GB, free: 5.785 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.7856, allocations: 137.4 kB / 0.6237 GB, free: 5.652 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/0.7882, allocations: 0.7908 MB / 0.6245 GB, free: 4.836 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007278/0.7889, allocations: 0.9094 MB / 0.6254 GB, free: 3.902 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005092/0.7895, allocations: 73.11 kB / 0.6254 GB, free: 3.832 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.7897, allocations: 39.42 kB / 0.6255 GB, free: 3.793 MB / 442.7 MB Notification: Performance of SimCode: time 5.61e-07/0.7897, allocations: 3.938 kB / 0.6255 GB, free: 3.789 MB / 442.7 MB Notification: Performance of Templates: time 0.01975/0.8095, allocations: 6.353 MB / 0.6317 GB, free: 13.59 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)