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.364/1.364, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 182.5 kB / 326.5 MB, free: 2.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.983/1.983, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.0009676/0.0009677, allocations: 84.27 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003487, allocations: 9.156 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2837, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1912/0.475, allocations: 138.6 MB / 1.035 GB, free: 5.16 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.4753, allocations: 79.97 kB / 1.035 GB, free: 5.082 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03593/0.5113, allocations: 12.61 MB / 1.048 GB, free: 8.438 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.747e-06/0.5114, allocations: 0 / 1.048 GB, free: 8.438 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.49e-05/0.5114, allocations: 16.19 kB / 1.048 GB, free: 8.422 MB / 0.698 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.002094/0.5135, allocations: 0.9658 MB / 1.049 GB, free: 7.395 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.5136, allocations: 8.031 kB / 1.049 GB, free: 7.387 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001742/0.5138, allocations: 83.02 kB / 1.049 GB, free: 7.305 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008911/0.5147, allocations: 0.5329 MB / 1.049 GB, free: 6.734 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.691e-05/0.5147, allocations: 45.3 kB / 1.049 GB, free: 6.691 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.5149, allocations: 60 kB / 1.049 GB, free: 6.633 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.5162, allocations: 0.6522 MB / 1.05 GB, free: 5.949 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.872e-05/0.5162, allocations: 3.984 kB / 1.05 GB, free: 5.945 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-05/0.5163, allocations: 28 kB / 1.05 GB, free: 5.918 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.5163, allocations: 15.95 kB / 1.05 GB, free: 5.902 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.5175, allocations: 0.5204 MB / 1.051 GB, free: 5.383 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003296/0.5208, allocations: 2.099 MB / 1.053 GB, free: 3.215 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.5219, allocations: 0.5356 MB / 1.053 GB, free: 2.668 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.402e-05/0.522, allocations: 4.438 kB / 1.053 GB, free: 2.664 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007255/0.5227, allocations: 297.3 kB / 1.054 GB, free: 2.363 MB / 0.698 GB Notification: Performance of pre-optimization done (n=50): time 3.827e-06/0.5228, allocations: 0 / 1.054 GB, free: 2.363 MB / 0.698 GB Notification: Performance of matching and sorting (n=50): time 0.001529/0.5243, allocations: 0.7015 MB / 1.054 GB, free: 1.656 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.5244, allocations: 162.6 kB / 1.054 GB, free: 1.461 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004879/0.5249, allocations: 401.2 kB / 1.055 GB, free: 1.062 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.026e-05/0.525, allocations: 37.7 kB / 1.055 GB, free: 1.02 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.5252, allocations: 317.1 kB / 1.055 GB, free: 0.707 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.5254, allocations: 173.5 kB / 1.055 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.586e-05/0.5254, allocations: 16 kB / 1.055 GB, free: 0.5195 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002002/0.5256, allocations: 362.8 kB / 1.056 GB, free: 160 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5313/1.057, allocations: 199.7 kB / 1.056 GB, free: 145.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007473/1.058, allocations: 306 kB / 1.056 GB, free: 145 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004918/1.058, allocations: 260.5 kB / 1.056 GB, free: 144.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/1.058, allocations: 0 / 1.056 GB, free: 144.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001245/1.06, allocations: 0.6248 MB / 1.057 GB, free: 144.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.782e-05/1.06, allocations: 34.31 kB / 1.057 GB, free: 144.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/1.06, allocations: 3.594 kB / 1.057 GB, free: 144.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/1.06, allocations: 5.281 kB / 1.057 GB, free: 144.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005017/1.06, allocations: 122.3 kB / 1.057 GB, free: 144.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/1.06, allocations: 7.625 kB / 1.057 GB, free: 144.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004547/1.061, allocations: 79.7 kB / 1.057 GB, free: 144.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/1.061, allocations: 16.73 kB / 1.057 GB, free: 144.8 MB / 0.698 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.0003711/1.061, allocations: 215.1 kB / 1.057 GB, free: 144.7 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.819e-05/1.061, allocations: 57.77 kB / 1.057 GB, free: 144.7 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/1.061, allocations: 73.7 kB / 1.058 GB, free: 144.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/1.061, allocations: 3 kB / 1.058 GB, free: 144.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/1.061, allocations: 0 / 1.058 GB, free: 144.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/1.061, allocations: 5.562 kB / 1.058 GB, free: 144.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/1.063, allocations: 1.316 MB / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/1.063, allocations: 0 / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004674/1.064, allocations: 107.4 kB / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/1.064, allocations: 6.531 kB / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/1.064, allocations: 9.594 kB / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/1.064, allocations: 2.906 kB / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/1.064, allocations: 0 / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/1.065, allocations: 0.8983 MB / 1.06 GB, free: 144.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/1.065, allocations: 183.2 kB / 1.06 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.682e-05/1.065, allocations: 16.97 kB / 1.06 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003613/1.066, allocations: 51.38 kB / 1.06 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.697e-05/1.066, allocations: 38.33 kB / 1.06 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-05/1.066, allocations: 15.53 kB / 1.06 GB, free: 144.1 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003031/1.066, allocations: 316.3 kB / 1.06 GB, free: 144 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/1.066, allocations: 2.875 kB / 1.06 GB, free: 144 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004884/1.067, allocations: 143.6 kB / 1.061 GB, free: 144 MB / 0.698 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.0001928/1.067, allocations: 127.4 kB / 1.061 GB, free: 143.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001021/1.068, allocations: 0.5448 MB / 1.061 GB, free: 143.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/1.068, allocations: 0 / 1.061 GB, free: 143.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004367/1.068, allocations: 259.9 kB / 1.061 GB, free: 143.9 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006707/1.069, allocations: 133.7 kB / 1.062 GB, free: 143.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003034/1.072, allocations: 1.833 MB / 1.063 GB, free: 143 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/1.072, allocations: 0.9025 MB / 1.064 GB, free: 142.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.00031/1.073, allocations: 64.59 kB / 1.064 GB, free: 142.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/1.073, allocations: 44.5 kB / 1.064 GB, free: 142.3 MB / 0.698 GB Notification: Performance of SimCode: time 3.2e-07/1.073, allocations: 0 / 1.064 GB, free: 142.3 MB / 0.698 GB Notification: Performance of Templates: time 0.01599/1.089, allocations: 6.234 MB / 1.07 GB, free: 142 MB / 0.698 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