Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_11_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_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006787/0.006787, allocations: 97.66 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 202.5 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.809/2.809, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.89 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3239, allocations: 159.1 MB / 1.221 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005319/0.3293, allocations: 4.145 MB / 1.225 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002303/0.3316, allocations: 1.325 MB / 1.226 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003351/0.3319, allocations: 27.88 kB / 1.226 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0003388/0.3322, allocations: 126.8 kB / 1.226 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003339/0.3326, allocations: 182.4 kB / 1.226 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008269/0.3334, allocations: 411 kB / 1.227 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0008942/0.3343, allocations: 0.9593 MB / 1.228 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004623/0.3348, allocations: 306.2 kB / 1.228 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003337/0.3351, allocations: 338.7 kB / 1.228 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003114/0.3354, allocations: 326.4 kB / 1.228 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.3355, allocations: 95.94 kB / 1.229 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.667e-05/0.3356, allocations: 92 kB / 1.229 GB, free: 5.5 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.3357, allocations: 179.4 kB / 1.229 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002896/0.336, allocations: 390.1 kB / 1.229 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0009775/0.337, allocations: 1.07 MB / 1.23 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.337, allocations: 0 / 1.23 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.433e-06/0.337, allocations: 0 / 1.23 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.491e-05/0.337, allocations: 4 kB / 1.23 GB, free: 3.863 MB / 0.9825 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.001949/0.339, allocations: 1.096 MB / 1.231 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.952e-05/0.339, allocations: 8.031 kB / 1.231 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001544/0.3392, allocations: 84.42 kB / 1.231 GB, free: 2.617 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009559/0.3401, allocations: 0.5771 MB / 1.232 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.622e-05/0.3402, allocations: 45.69 kB / 1.232 GB, free: 1.965 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.836e-05/0.3403, allocations: 60.33 kB / 1.232 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.3413, allocations: 0.6079 MB / 1.233 GB, free: 1.273 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/0.3414, allocations: 3.938 kB / 1.233 GB, free: 1.27 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.974e-05/0.3414, allocations: 28 kB / 1.233 GB, free: 1.242 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.3414, allocations: 12 kB / 1.233 GB, free: 1.23 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009822/0.3424, allocations: 464.9 kB / 1.233 GB, free: 0.7734 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002783/0.3452, allocations: 1.986 MB / 1.235 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009039/0.3461, allocations: 425.6 kB / 1.236 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004209/0.3465, allocations: 230.6 kB / 1.236 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.3466, allocations: 4.438 kB / 1.236 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005191/0.3471, allocations: 269.2 kB / 1.236 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=49): time 1.873e-06/0.3471, allocations: 0 / 1.236 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49): time 0.001292/0.3484, allocations: 0.5846 MB / 1.237 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.3484, allocations: 63.83 kB / 1.237 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004925/0.3489, allocations: 446 kB / 1.237 GB, free: 12.67 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.349, allocations: 33.7 kB / 1.237 GB, free: 12.63 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.3492, allocations: 333.6 kB / 1.237 GB, free: 12.3 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.3493, allocations: 166.5 kB / 1.238 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.3495, allocations: 106.1 kB / 1.238 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3496, allocations: 366.7 kB / 1.238 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003679/0.35, allocations: 165 kB / 1.238 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003932/0.3504, allocations: 245.8 kB / 1.238 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000746/0.3511, allocations: 456 kB / 1.239 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.3512, allocations: 8 kB / 1.239 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009672/0.3521, allocations: 0.5629 MB / 1.239 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.3522, allocations: 37.67 kB / 1.239 GB, free: 10.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.3522, allocations: 4 kB / 1.239 GB, free: 10.13 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.3522, allocations: 4 kB / 1.239 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004663/0.3527, allocations: 111.8 kB / 1.24 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.3527, allocations: 8 kB / 1.24 GB, free: 10.01 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.353, allocations: 55.64 kB / 1.24 GB, free: 9.953 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.353, allocations: 20 kB / 1.24 GB, free: 9.934 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,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 (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002357/0.3532, allocations: 210.8 kB / 1.24 GB, free: 9.719 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.827e-05/0.3533, allocations: 59.56 kB / 1.24 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001387/0.3534, allocations: 69.58 kB / 1.24 GB, free: 9.594 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3534, allocations: 4 kB / 1.24 GB, free: 9.59 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.3534, allocations: 0 / 1.24 GB, free: 9.59 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.3535, allocations: 3.984 kB / 1.24 GB, free: 9.586 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.355, allocations: 1.178 MB / 1.241 GB, free: 8.348 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.355, allocations: 0 / 1.241 GB, free: 8.348 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004453/0.3555, allocations: 91.89 kB / 1.241 GB, free: 8.258 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.3555, allocations: 4 kB / 1.241 GB, free: 8.254 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.374e-05/0.3555, allocations: 15.98 kB / 1.241 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.3555, allocations: 0 / 1.241 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3555, allocations: 0 / 1.241 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.3568, allocations: 0.7693 MB / 1.242 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.357, allocations: 176.6 kB / 1.242 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.954e-05/0.357, allocations: 8 kB / 1.242 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002792/0.3573, allocations: 27.97 kB / 1.242 GB, free: 7.223 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.3574, allocations: 36.39 kB / 1.242 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/0.3574, allocations: 12 kB / 1.242 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003089/0.3577, allocations: 314.8 kB / 1.243 GB, free: 6.871 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.3577, allocations: 0 / 1.243 GB, free: 6.871 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000417/0.3582, allocations: 147.6 kB / 1.243 GB, free: 6.727 MB / 0.9981 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.trigger.y,$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 (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001354/0.3583, allocations: 119.1 kB / 1.243 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008483/0.3591, allocations: 465 kB / 1.243 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.3591, allocations: 4 kB / 1.243 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003922/0.3595, allocations: 198.4 kB / 1.243 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007037/0.3602, allocations: 159.7 kB / 1.244 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.3628, allocations: 1.371 MB / 1.245 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004251/0.3632, allocations: 0.8821 MB / 1.246 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002303/0.3634, allocations: 64.59 kB / 1.246 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.3635, allocations: 43.42 kB / 1.246 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of SimCode: time 9.22e-07/0.3635, allocations: 0 / 1.246 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of Templates: time 0.671/1.034, allocations: 6.041 MB / 1.252 GB, free: 28.25 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches