Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.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_9_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_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.472/2.472, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.00117/0.00117, allocations: 169.2 kB / 498.1 MB, free: 5.75 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.716/1.716, allocations: 223.2 MB / 0.7948 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.001108/0.001108, allocations: 104 kB / 0.9346 GB, free: 7.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005781/0.0005785, allocations: 12.56 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3485, allocations: 142.3 MB / 1.223 GB, free: 89.62 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2162/0.5648, allocations: 155.9 MB / 1.375 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/0.5651, allocations: 83.95 kB / 1.375 GB, free: 13.4 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.03284/0.5979, allocations: 12.39 MB / 1.387 GB, free: 0.9688 MB / 0.8855 GB Notification: Performance of FrontEnd: time 4.438e-06/0.598, allocations: 0 / 1.387 GB, free: 0.9688 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001274/0.5981, allocations: 12.19 kB / 1.387 GB, free: 0.957 MB / 0.8855 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.003215/0.6014, allocations: 0.9579 MB / 1.388 GB, free: 15.94 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 6.39e-05/0.6014, allocations: 8.031 kB / 1.388 GB, free: 15.93 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005013/0.602, allocations: 86.97 kB / 1.388 GB, free: 15.84 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.6034, allocations: 0.5291 MB / 1.389 GB, free: 15.28 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.819e-05/0.6035, allocations: 45.31 kB / 1.389 GB, free: 15.23 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001863/0.6037, allocations: 63.91 kB / 1.389 GB, free: 15.17 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.6054, allocations: 0.6562 MB / 1.39 GB, free: 14.48 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.6054, allocations: 7.953 kB / 1.39 GB, free: 14.48 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.911e-05/0.6055, allocations: 27.98 kB / 1.39 GB, free: 14.45 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.6055, allocations: 12 kB / 1.39 GB, free: 14.44 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.6067, allocations: 0.5204 MB / 1.39 GB, free: 13.92 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0036/0.6104, allocations: 2.084 MB / 1.392 GB, free: 11.77 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.6116, allocations: 0.5361 MB / 1.393 GB, free: 11.22 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.667e-05/0.6116, allocations: 8.422 kB / 1.393 GB, free: 11.21 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007363/0.6124, allocations: 301.2 kB / 1.393 GB, free: 10.91 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=50): time 4.518e-06/0.6124, allocations: 0 / 1.393 GB, free: 10.91 MB / 0.9011 GB Notification: Performance of matching and sorting (n=50): time 0.001485/0.6139, allocations: 0.7022 MB / 1.394 GB, free: 10.2 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.614, allocations: 170.6 kB / 1.394 GB, free: 10 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004892/0.6145, allocations: 401.2 kB / 1.394 GB, free: 9.602 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.889e-05/0.6146, allocations: 37.69 kB / 1.394 GB, free: 9.559 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.6148, allocations: 312.4 kB / 1.395 GB, free: 9.25 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.615, allocations: 165.6 kB / 1.395 GB, free: 9.086 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.367e-05/0.615, allocations: 12 kB / 1.395 GB, free: 9.074 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001806/0.6152, allocations: 366.8 kB / 1.395 GB, free: 8.707 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004293/0.6156, allocations: 209 kB / 1.395 GB, free: 8.504 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005162/0.6162, allocations: 307.5 kB / 1.396 GB, free: 8.168 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004716/0.6166, allocations: 259.8 kB / 1.396 GB, free: 7.914 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.6167, allocations: 3.953 kB / 1.396 GB, free: 7.91 MB / 0.9011 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001142/0.6178, allocations: 0.6248 MB / 1.396 GB, free: 7.27 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 5.446e-05/0.6179, allocations: 37.64 kB / 1.397 GB, free: 7.227 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.6179, allocations: 0 / 1.397 GB, free: 7.227 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.6179, allocations: 4 kB / 1.397 GB, free: 7.223 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000499/0.6184, allocations: 128 kB / 1.397 GB, free: 7.098 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.6184, allocations: 4 kB / 1.397 GB, free: 7.094 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004255/0.6189, allocations: 83.58 kB / 1.397 GB, free: 7.012 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.855e-05/0.6189, allocations: 16 kB / 1.397 GB, free: 6.996 MB / 0.9011 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 () * Number of clocked 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.0002982/0.6192, allocations: 218.9 kB / 1.397 GB, free: 6.773 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.716e-05/0.6193, allocations: 63.2 kB / 1.397 GB, free: 6.711 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001399/0.6195, allocations: 65.59 kB / 1.397 GB, free: 6.645 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.6195, allocations: 7.984 kB / 1.397 GB, free: 6.637 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.6195, allocations: 0 / 1.397 GB, free: 6.637 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.6195, allocations: 4 kB / 1.397 GB, free: 6.633 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/0.6214, allocations: 1.314 MB / 1.398 GB, free: 5.262 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.6215, allocations: 0 / 1.398 GB, free: 5.262 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005031/0.622, allocations: 111.9 kB / 1.398 GB, free: 5.152 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.622, allocations: 4 kB / 1.398 GB, free: 5.148 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.722e-05/0.622, allocations: 12 kB / 1.398 GB, free: 5.137 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.622, allocations: 0 / 1.398 GB, free: 5.137 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.622, allocations: 0 / 1.398 GB, free: 5.137 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001522/0.6236, allocations: 0.8891 MB / 1.399 GB, free: 4.23 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.6238, allocations: 188.2 kB / 1.4 GB, free: 4.027 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.603e-05/0.6239, allocations: 11.94 kB / 1.4 GB, free: 4.016 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003772/0.6243, allocations: 55.95 kB / 1.4 GB, free: 3.961 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.808e-05/0.6244, allocations: 32.39 kB / 1.4 GB, free: 3.93 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.11e-05/0.6244, allocations: 19.98 kB / 1.4 GB, free: 3.91 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003568/0.6248, allocations: 310.9 kB / 1.4 GB, free: 3.609 MB / 0.9011 GB Notification: Performance of sort global known variables: time 2.71e-07/0.6248, allocations: 0 / 1.4 GB, free: 3.609 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.000488/0.6253, allocations: 151.5 kB / 1.4 GB, free: 3.461 MB / 0.9011 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) * Number of clocked states: 0 () * 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.0001847/0.6255, allocations: 123.1 kB / 1.4 GB, free: 3.332 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001067/0.6265, allocations: 0.5401 MB / 1.401 GB, free: 2.777 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.6265, allocations: 4.375 kB / 1.401 GB, free: 2.773 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004948/0.6271, allocations: 262.3 kB / 1.401 GB, free: 2.516 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006737/0.6277, allocations: 134.4 kB / 1.401 GB, free: 2.383 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003177/0.6309, allocations: 1.828 MB / 1.403 GB, free: 0.5195 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5638/1.195, allocations: 0.9019 MB / 1.404 GB, free: 169.4 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0004983/1.195, allocations: 59.89 kB / 1.404 GB, free: 169.3 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/1.195, allocations: 40 kB / 1.404 GB, free: 169.3 MB / 0.9011 GB Notification: Performance of SimCode: time 1.062e-06/1.195, allocations: 0 / 1.404 GB, free: 169.3 MB / 0.9011 GB Notification: Performance of Templates: time 0.0167/1.212, allocations: 6.222 MB / 1.41 GB, free: 169.2 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches