Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.475/1.475, allocations: 249.5 MB / 257 MB, free: 6.93 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.001036/0.001036, allocations: 176.4 kB / 316.3 MB, free: 3.234 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.762/1.762, allocations: 205.3 MB / 0.5671 GB, free: 15.83 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.001183/0.001183, allocations: 86.56 kB / 0.6714 GB, free: 4.945 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.609e-05/1.611e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2566, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7979/1.054, allocations: 138.8 MB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/1.055, allocations: 80.38 kB / 1.021 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.0312/1.086, allocations: 12.5 MB / 1.033 GB, free: 4.676 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.683e-06/1.086, allocations: 0 / 1.033 GB, free: 4.676 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.149e-05/1.086, allocations: 12 kB / 1.033 GB, free: 4.664 MB / 0.6511 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.001371/1.087, allocations: 0.8629 MB / 1.034 GB, free: 3.797 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/1.087, allocations: 12.03 kB / 1.034 GB, free: 3.785 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/1.088, allocations: 90.92 kB / 1.034 GB, free: 3.695 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007241/1.088, allocations: 0.5327 MB / 1.034 GB, free: 3.234 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/1.088, allocations: 20 kB / 1.035 GB, free: 3.215 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.61e-05/1.089, allocations: 36 kB / 1.035 GB, free: 3.18 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006906/1.089, allocations: 394 kB / 1.035 GB, free: 2.957 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008402/1.09, allocations: 0.5223 MB / 1.035 GB, free: 2.555 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/1.09, allocations: 0 / 1.035 GB, free: 2.555 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.748e-05/1.09, allocations: 3.953 kB / 1.035 GB, free: 2.551 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/1.09, allocations: 19.98 kB / 1.035 GB, free: 2.531 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002622/1.093, allocations: 1.977 MB / 1.037 GB, free: 1.027 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006055/1.093, allocations: 421.8 kB / 1.038 GB, free: 0.7695 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/1.094, allocations: 199.3 kB / 1.038 GB, free: 0.6523 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.692e-05/1.094, allocations: 7.688 kB / 1.038 GB, free: 0.6484 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004048/1.094, allocations: 232 kB / 1.038 GB, free: 492 kB / 0.6511 GB Notification: Performance of pre-optimization done (n=50): time 3.868e-06/1.094, allocations: 0 / 1.038 GB, free: 492 kB / 0.6511 GB Notification: Performance of matching and sorting (n=50): time 0.0006541/1.095, allocations: 402.3 kB / 1.039 GB, free: 196 kB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/1.095, allocations: 166.7 kB / 1.039 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/1.095, allocations: 350.2 kB / 1.039 GB, free: 15.72 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/1.095, allocations: 29.69 kB / 1.039 GB, free: 15.69 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/1.096, allocations: 313.9 kB / 1.039 GB, free: 15.46 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/1.096, allocations: 164.7 kB / 1.04 GB, free: 15.32 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.296e-05/1.096, allocations: 0 / 1.04 GB, free: 15.32 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001527/1.096, allocations: 361.8 kB / 1.04 GB, free: 14.98 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/1.096, allocations: 143.8 kB / 1.04 GB, free: 14.91 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002967/1.096, allocations: 248.4 kB / 1.04 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/1.097, allocations: 175.6 kB / 1.04 GB, free: 14.61 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/1.097, allocations: 0 / 1.04 GB, free: 14.61 MB / 0.6667 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006531/1.097, allocations: 471.3 kB / 1.041 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 4.253e-05/1.097, allocations: 37.66 kB / 1.041 GB, free: 14.23 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/1.097, allocations: 0 / 1.041 GB, free: 14.23 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/1.097, allocations: 4 kB / 1.041 GB, free: 14.22 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005186/1.098, allocations: 127.9 kB / 1.041 GB, free: 14.1 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/1.098, allocations: 4 kB / 1.041 GB, free: 14.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003914/1.098, allocations: 75.48 kB / 1.041 GB, free: 14.02 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/1.098, allocations: 18.8 kB / 1.041 GB, free: 14.01 MB / 0.6667 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.0001252/1.099, allocations: 118.4 kB / 1.041 GB, free: 13.89 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.651e-05/1.099, allocations: 59.38 kB / 1.041 GB, free: 13.83 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/1.099, allocations: 57.72 kB / 1.041 GB, free: 13.8 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/1.099, allocations: 7.984 kB / 1.041 GB, free: 13.8 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/1.099, allocations: 3.938 kB / 1.041 GB, free: 13.79 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/1.099, allocations: 4 kB / 1.041 GB, free: 13.79 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/1.1, allocations: 1.113 MB / 1.042 GB, free: 12.97 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/1.1, allocations: 0 / 1.042 GB, free: 12.97 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004994/1.101, allocations: 111.8 kB / 1.043 GB, free: 12.86 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/1.101, allocations: 3.953 kB / 1.043 GB, free: 12.86 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.038e-05/1.101, allocations: 7.938 kB / 1.043 GB, free: 12.86 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/1.101, allocations: 4 kB / 1.043 GB, free: 12.85 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.101, allocations: 0 / 1.043 GB, free: 12.85 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008659/1.102, allocations: 0.708 MB / 1.043 GB, free: 12.35 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/1.102, allocations: 178.3 kB / 1.043 GB, free: 12.19 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.804e-05/1.102, allocations: 7.328 kB / 1.043 GB, free: 12.18 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003556/1.102, allocations: 43.97 kB / 1.044 GB, free: 12.14 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.291e-05/1.102, allocations: 35.81 kB / 1.044 GB, free: 12.11 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.606e-05/1.102, allocations: 11.75 kB / 1.044 GB, free: 12.1 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0002671/1.103, allocations: 271 kB / 1.044 GB, free: 11.9 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.51e-07/1.103, allocations: 0 / 1.044 GB, free: 11.9 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004579/1.103, allocations: 142.5 kB / 1.044 GB, free: 11.77 MB / 0.6667 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.000162/1.103, allocations: 113.4 kB / 1.044 GB, free: 11.65 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0005901/1.104, allocations: 439.4 kB / 1.044 GB, free: 11.35 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.104, allocations: 0 / 1.044 GB, free: 11.35 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.000266/1.104, allocations: 196 kB / 1.045 GB, free: 11.22 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006347/1.105, allocations: 123.3 kB / 1.045 GB, free: 11.12 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/1.107, allocations: 1.242 MB / 1.046 GB, free: 9.961 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/1.108, allocations: 0.9056 MB / 1.047 GB, free: 9.027 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002987/1.108, allocations: 60.36 kB / 1.047 GB, free: 8.965 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/1.108, allocations: 43.42 kB / 1.047 GB, free: 8.922 MB / 0.6667 GB Notification: Performance of SimCode: time 4.51e-07/1.108, allocations: 4 kB / 1.047 GB, free: 8.918 MB / 0.6667 GB Notification: Performance of Templates: time 0.01047/1.119, allocations: 5.521 MB / 1.052 GB, free: 3.48 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches