Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.3 MB / 405.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001564/0.001565, allocations: 181.1 kB / 498.1 MB, free: 5.719 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.83/1.83, allocations: 223.2 MB / 0.7949 GB, free: 18.86 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 86.53 kB / 0.9346 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004491/0.0004492, allocations: 8.594 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/0.386, allocations: 142.4 MB / 1.223 GB, free: 89.55 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2319/0.618, allocations: 157.2 MB / 1.376 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.6184, allocations: 83.95 kB / 1.376 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.04972/0.6681, allocations: 16.95 MB / 1.393 GB, free: 11.02 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.585e-06/0.6682, allocations: 0 / 1.393 GB, free: 11.02 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0001361/0.6683, allocations: 19.94 kB / 1.393 GB, free: 11 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003159/0.6715, allocations: 1.067 MB / 1.394 GB, free: 9.875 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.6715, allocations: 12.03 kB / 1.394 GB, free: 9.863 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00048/0.672, allocations: 90.88 kB / 1.394 GB, free: 9.773 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001578/0.6736, allocations: 0.5706 MB / 1.395 GB, free: 9.16 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/0.6738, allocations: 108.4 kB / 1.395 GB, free: 9.043 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/0.674, allocations: 52 kB / 1.395 GB, free: 8.992 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.6754, allocations: 0.6564 MB / 1.396 GB, free: 8.289 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.6755, allocations: 0 / 1.396 GB, free: 8.289 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.059e-05/0.6756, allocations: 28 kB / 1.396 GB, free: 8.262 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.6756, allocations: 12 kB / 1.396 GB, free: 8.25 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.6768, allocations: 495.6 kB / 1.396 GB, free: 7.766 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003797/0.6806, allocations: 2.215 MB / 1.398 GB, free: 5.465 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.6821, allocations: 0.603 MB / 1.399 GB, free: 4.848 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.917e-05/0.6821, allocations: 4 kB / 1.399 GB, free: 4.844 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007954/0.6829, allocations: 326.2 kB / 1.399 GB, free: 4.512 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=45): time 3.146e-06/0.683, allocations: 0 / 1.399 GB, free: 4.512 MB / 0.9011 GB Notification: Performance of matching and sorting (n=45): time 0.001723/0.6847, allocations: 0.7075 MB / 1.4 GB, free: 3.797 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.6848, allocations: 195.6 kB / 1.4 GB, free: 3.562 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008332/0.6857, allocations: 0.5466 MB / 1.401 GB, free: 3.012 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 7.485e-05/0.6858, allocations: 37.7 kB / 1.401 GB, free: 2.969 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.000325/0.6861, allocations: 360.9 kB / 1.401 GB, free: 2.613 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.6862, allocations: 153.8 kB / 1.401 GB, free: 2.461 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.897e-05/0.6863, allocations: 12 kB / 1.401 GB, free: 2.449 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.6864, allocations: 326 kB / 1.401 GB, free: 2.125 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004953/0.6869, allocations: 209 kB / 1.402 GB, free: 1.922 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006017/0.6876, allocations: 343.7 kB / 1.402 GB, free: 1.535 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005857/0.6882, allocations: 262.4 kB / 1.402 GB, free: 1.273 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.6882, allocations: 0 / 1.402 GB, free: 1.273 MB / 0.9011 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001361/0.6895, allocations: 0.6607 MB / 1.403 GB, free: 0.6016 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.7675/1.457, allocations: 0.984 MB / 1.404 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.79e-05/1.457, allocations: 4.984 kB / 1.404 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.06e-05/1.457, allocations: 5.781 kB / 1.404 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008226/1.458, allocations: 119.7 kB / 1.404 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.172e-05/1.458, allocations: 13.75 kB / 1.404 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007753/1.459, allocations: 89.02 kB / 1.404 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.903e-05/1.459, allocations: 18.56 kB / 1.404 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/1.459, allocations: 4.125 kB / 1.404 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001323/1.46, allocations: 0.5492 MB / 1.405 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/1.46, allocations: 6.516 kB / 1.405 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.317e-06/1.46, allocations: 5.344 kB / 1.405 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/1.461, allocations: 113.6 kB / 1.405 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/1.461, allocations: 10.47 kB / 1.405 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005532/1.461, allocations: 75.08 kB / 1.405 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/1.461, allocations: 18.55 kB / 1.405 GB, free: 169.1 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0004817/1.462, allocations: 281 kB / 1.405 GB, free: 168.9 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/1.462, allocations: 70.78 kB / 1.405 GB, free: 168.9 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/1.462, allocations: 82.67 kB / 1.405 GB, free: 168.9 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/1.462, allocations: 5.375 kB / 1.405 GB, free: 168.9 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/1.462, allocations: 0 / 1.405 GB, free: 168.9 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/1.462, allocations: 5.734 kB / 1.405 GB, free: 168.9 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009477/1.463, allocations: 0.6445 MB / 1.406 GB, free: 168.7 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/1.463, allocations: 1.438 kB / 1.406 GB, free: 168.7 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005281/1.464, allocations: 100.6 kB / 1.406 GB, free: 168.7 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/1.464, allocations: 1.25 kB / 1.406 GB, free: 168.7 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.701e-05/1.464, allocations: 9.844 kB / 1.406 GB, free: 168.7 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/1.464, allocations: 2.531 kB / 1.406 GB, free: 168.7 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/1.464, allocations: 0 / 1.406 GB, free: 168.7 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/1.466, allocations: 0.84 MB / 1.407 GB, free: 168.6 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/1.466, allocations: 201.8 kB / 1.407 GB, free: 168.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.009e-05/1.466, allocations: 12.36 kB / 1.407 GB, free: 168.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004939/1.467, allocations: 64.05 kB / 1.407 GB, free: 168.5 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/1.467, allocations: 32.47 kB / 1.407 GB, free: 168.5 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.661e-05/1.467, allocations: 16.48 kB / 1.407 GB, free: 168.5 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0006777/1.467, allocations: 439.2 kB / 1.407 GB, free: 168.4 MB / 0.9011 GB Notification: Performance of sort global known variables: time 4.01e-07/1.467, allocations: 0 / 1.407 GB, free: 168.4 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0008435/1.468, allocations: 238.3 kB / 1.408 GB, free: 168.4 MB / 0.9011 GB 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0002018/1.468, allocations: 124 kB / 1.408 GB, free: 168.3 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001928/1.47, allocations: 0.8851 MB / 1.409 GB, free: 168.1 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.47, allocations: 0.625 kB / 1.409 GB, free: 168.1 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005539/1.471, allocations: 258 kB / 1.409 GB, free: 168.1 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008493/1.472, allocations: 174.6 kB / 1.409 GB, free: 168.1 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/1.474, allocations: 1.39 MB / 1.41 GB, free: 167.4 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005293/1.475, allocations: 0.9324 MB / 1.411 GB, free: 166.7 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0005112/1.475, allocations: 92.11 kB / 1.411 GB, free: 166.7 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/1.476, allocations: 45.75 kB / 1.412 GB, free: 166.7 MB / 0.9011 GB Notification: Performance of SimCode: time 1.062e-06/1.476, allocations: 0 / 1.412 GB, free: 166.7 MB / 0.9011 GB Notification: Performance of Templates: time 0.02211/1.498, allocations: 7.734 MB / 1.419 GB, free: 166.3 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPID.csv","../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches