Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.459/1.459, allocations: 249.5 MB / 257 MB, free: 6.902 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.001014/0.001014, allocations: 179.8 kB / 316.3 MB, free: 3.227 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.921/1.921, allocations: 205.3 MB / 0.5671 GB, free: 15.81 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009678/0.0009678, allocations: 89.86 kB / 0.6714 GB, free: 4.926 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.648e-05/1.651e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2406, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7896/1.03, allocations: 140 MB / 1.022 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/1.031, allocations: 77.95 kB / 1.022 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.04603/1.077, allocations: 16.82 MB / 1.038 GB, free: 15.86 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.894e-06/1.077, allocations: 0 / 1.038 GB, free: 15.86 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 6.711e-05/1.077, allocations: 20 kB / 1.039 GB, free: 15.84 MB / 0.6667 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.001924/1.079, allocations: 0.946 MB / 1.039 GB, free: 14.89 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 7.213e-05/1.079, allocations: 8.031 kB / 1.039 GB, free: 14.88 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002543/1.079, allocations: 102.8 kB / 1.04 GB, free: 14.78 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/1.08, allocations: 0.5838 MB / 1.04 GB, free: 14.25 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001607/1.081, allocations: 76.72 kB / 1.04 GB, free: 14.17 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.169e-05/1.081, allocations: 32 kB / 1.04 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007661/1.081, allocations: 335.1 kB / 1.041 GB, free: 13.95 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009965/1.083, allocations: 0.5105 MB / 1.041 GB, free: 13.52 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/1.083, allocations: 8 kB / 1.041 GB, free: 13.51 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.424e-05/1.083, allocations: 3.953 kB / 1.041 GB, free: 13.5 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/1.083, allocations: 12 kB / 1.041 GB, free: 13.49 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003605/1.086, allocations: 2.112 MB / 1.043 GB, free: 11.66 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000875/1.087, allocations: 429.7 kB / 1.044 GB, free: 11.39 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002684/1.087, allocations: 158.3 kB / 1.044 GB, free: 11.29 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 6.242e-05/1.088, allocations: 10.16 kB / 1.044 GB, free: 11.29 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005101/1.088, allocations: 232.9 kB / 1.044 GB, free: 11.11 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=45): time 3.357e-06/1.088, allocations: 4 kB / 1.044 GB, free: 11.11 MB / 0.6667 GB Notification: Performance of matching and sorting (n=45): time 0.000879/1.089, allocations: 390 kB / 1.044 GB, free: 10.82 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001637/1.089, allocations: 183.9 kB / 1.044 GB, free: 10.6 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007016/1.09, allocations: 478.6 kB / 1.045 GB, free: 10.23 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 6.564e-05/1.09, allocations: 29.27 kB / 1.045 GB, free: 10.2 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/1.09, allocations: 373.6 kB / 1.045 GB, free: 9.965 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001597/1.09, allocations: 147.3 kB / 1.045 GB, free: 9.836 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.497e-05/1.09, allocations: 4 kB / 1.045 GB, free: 9.832 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000219/1.091, allocations: 382.6 kB / 1.046 GB, free: 9.48 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002601/1.091, allocations: 138.6 kB / 1.046 GB, free: 9.406 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003508/1.091, allocations: 269.9 kB / 1.046 GB, free: 9.168 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/1.092, allocations: 167.2 kB / 1.046 GB, free: 9.066 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/1.092, allocations: 7.984 kB / 1.046 GB, free: 9.059 MB / 0.6667 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008266/1.092, allocations: 479.4 kB / 1.047 GB, free: 8.699 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006444/1.093, allocations: 0.9915 MB / 1.048 GB, free: 7.648 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/1.093, allocations: 0 / 1.048 GB, free: 7.648 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.027e-05/1.093, allocations: 12 kB / 1.048 GB, free: 7.637 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005966/1.094, allocations: 119.8 kB / 1.048 GB, free: 7.523 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.095e-05/1.094, allocations: 7.938 kB / 1.048 GB, free: 7.516 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005217/1.094, allocations: 67.64 kB / 1.048 GB, free: 7.449 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.211e-05/1.094, allocations: 15.69 kB / 1.048 GB, free: 7.438 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/1.094, allocations: 4 kB / 1.048 GB, free: 7.434 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006268/1.095, allocations: 379.8 kB / 1.048 GB, free: 7.18 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/1.095, allocations: 8.062 kB / 1.048 GB, free: 7.172 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.993e-06/1.095, allocations: 4 kB / 1.048 GB, free: 7.168 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004512/1.096, allocations: 114.9 kB / 1.048 GB, free: 7.059 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/1.096, allocations: 7.953 kB / 1.048 GB, free: 7.051 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/1.096, allocations: 67.55 kB / 1.049 GB, free: 6.984 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.688e-05/1.096, allocations: 19.31 kB / 1.049 GB, free: 6.969 MB / 0.6667 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 () * 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.0001961/1.096, allocations: 119.9 kB / 1.049 GB, free: 6.848 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/1.096, allocations: 67.16 kB / 1.049 GB, free: 6.781 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000196/1.097, allocations: 72.88 kB / 1.049 GB, free: 6.742 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/1.097, allocations: 4 kB / 1.049 GB, free: 6.738 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/1.097, allocations: 3.984 kB / 1.049 GB, free: 6.734 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/1.097, allocations: 7.953 kB / 1.049 GB, free: 6.727 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006644/1.097, allocations: 0.5739 MB / 1.049 GB, free: 6.258 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/1.097, allocations: 0 / 1.049 GB, free: 6.258 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004732/1.098, allocations: 95.44 kB / 1.049 GB, free: 6.168 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/1.098, allocations: 4 kB / 1.049 GB, free: 6.164 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.087e-05/1.098, allocations: 3.75 kB / 1.049 GB, free: 6.164 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/1.098, allocations: 8 kB / 1.05 GB, free: 6.156 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.098, allocations: 0 / 1.05 GB, free: 6.156 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009073/1.099, allocations: 0.6239 MB / 1.05 GB, free: 5.719 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002515/1.099, allocations: 197.4 kB / 1.05 GB, free: 5.535 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.074e-05/1.099, allocations: 11.98 kB / 1.05 GB, free: 5.527 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/1.1, allocations: 55.95 kB / 1.05 GB, free: 5.473 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/1.1, allocations: 39.06 kB / 1.05 GB, free: 5.438 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.383e-05/1.1, allocations: 11.12 kB / 1.05 GB, free: 5.43 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0004035/1.1, allocations: 368.3 kB / 1.051 GB, free: 5.164 MB / 0.6667 GB Notification: Performance of sort global known variables: time 3.1e-07/1.1, allocations: 0 / 1.051 GB, free: 5.164 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007235/1.101, allocations: 215.1 kB / 1.051 GB, free: 4.953 MB / 0.6667 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) * 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.0002155/1.101, allocations: 119.2 kB / 1.051 GB, free: 4.828 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001003/1.102, allocations: 0.7002 MB / 1.052 GB, free: 4.309 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/1.102, allocations: 8.812 kB / 1.052 GB, free: 4.305 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002532/1.102, allocations: 177.5 kB / 1.052 GB, free: 4.191 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008653/1.103, allocations: 164.5 kB / 1.052 GB, free: 4.066 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/1.105, allocations: 0.8718 MB / 1.053 GB, free: 3.273 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/1.105, allocations: 0.9308 MB / 1.054 GB, free: 2.316 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0005623/1.106, allocations: 131.2 kB / 1.054 GB, free: 2.184 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/1.106, allocations: 39.44 kB / 1.054 GB, free: 2.145 MB / 0.6667 GB Notification: Performance of SimCode: time 6.21e-07/1.106, allocations: 0 / 1.054 GB, free: 2.145 MB / 0.6667 GB Notification: Performance of Templates: time 0.01396/1.12, allocations: 8.181 MB / 1.062 GB, free: 10.06 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_LimPID.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches