Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.007372/0.007372, allocations: 102.9 kB / 15.73 MB, free: 6.035 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.001974/0.001974, allocations: 193.8 kB / 16.67 MB, free: 5.973 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.564/1.564, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.922/2.922, allocations: 461.9 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.91 kB / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3526, allocations: 157.4 MB / 1.208 GB, free: 9.727 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006353/0.359, allocations: 4.13 MB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003298/0.3623, allocations: 1.328 MB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000836/0.3632, allocations: 19.94 kB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005679/0.3638, allocations: 130.7 kB / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0007943/0.3647, allocations: 178.3 kB / 1.213 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0015/0.3662, allocations: 424.1 kB / 1.214 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001992/0.3682, allocations: 0.9593 MB / 1.215 GB, free: 2.535 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.3692, allocations: 454.1 kB / 1.215 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008075/0.3701, allocations: 334.7 kB / 1.215 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007317/0.3708, allocations: 334.4 kB / 1.216 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002225/0.3711, allocations: 92 kB / 1.216 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002033/0.3713, allocations: 92 kB / 1.216 GB, free: 1.238 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000191/0.3715, allocations: 171.4 kB / 1.216 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0005207/0.372, allocations: 398 kB / 1.216 GB, free: 0.6797 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.3732, allocations: 1.063 MB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3732, allocations: 0 / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3733, allocations: 0 / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.12e-05/0.3733, allocations: 4 kB / 1.217 GB, free: 15.61 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.002493/0.3758, allocations: 1.085 MB / 1.219 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.3759, allocations: 8.625 kB / 1.219 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.3761, allocations: 80 kB / 1.219 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.3771, allocations: 0.5612 MB / 1.219 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/0.3771, allocations: 45.69 kB / 1.219 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.3773, allocations: 60.38 kB / 1.219 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.3784, allocations: 0.6117 MB / 1.22 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.3784, allocations: 3.906 kB / 1.22 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.201e-05/0.3785, allocations: 28 kB / 1.22 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.3785, allocations: 12 kB / 1.22 GB, free: 13 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000968/0.3795, allocations: 461 kB / 1.22 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003251/0.3828, allocations: 1.989 MB / 1.222 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009597/0.3837, allocations: 448.1 kB / 1.223 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004666/0.3842, allocations: 242.1 kB / 1.223 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.872e-05/0.3843, allocations: 4.438 kB / 1.223 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005573/0.3848, allocations: 265.2 kB / 1.223 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=49): time 5.981e-06/0.3848, allocations: 0 / 1.223 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of matching and sorting (n=49): time 0.00146/0.3863, allocations: 0.5889 MB / 1.224 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.3865, allocations: 59.84 kB / 1.224 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005211/0.387, allocations: 442 kB / 1.224 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/0.387, allocations: 37.7 kB / 1.224 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002586/0.3873, allocations: 336.1 kB / 1.225 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.3874, allocations: 161.7 kB / 1.225 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.3876, allocations: 94.23 kB / 1.225 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.3878, allocations: 362.8 kB / 1.225 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/0.3882, allocations: 169 kB / 1.225 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000438/0.3886, allocations: 245.8 kB / 1.226 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008254/0.3895, allocations: 463.9 kB / 1.226 GB, free: 6.508 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3895, allocations: 0 / 1.226 GB, free: 6.508 MB / 0.9825 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001089/0.3906, allocations: 0.5625 MB / 1.227 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.965e-05/0.3906, allocations: 39.27 kB / 1.227 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3907, allocations: 4 kB / 1.227 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.3907, allocations: 4 kB / 1.227 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004963/0.3912, allocations: 115.8 kB / 1.227 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.3912, allocations: 4 kB / 1.227 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.3915, allocations: 55.5 kB / 1.227 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.326e-05/0.3916, allocations: 20 kB / 1.227 GB, free: 5.688 MB / 0.9825 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.0002672/0.3919, allocations: 212.2 kB / 1.227 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.229e-05/0.392, allocations: 63.27 kB / 1.227 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001484/0.3921, allocations: 65.58 kB / 1.227 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3921, allocations: 4 kB / 1.227 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.3921, allocations: 0 / 1.227 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3922, allocations: 3.984 kB / 1.227 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/0.3941, allocations: 1.178 MB / 1.228 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.3941, allocations: 0 / 1.228 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.3946, allocations: 91.83 kB / 1.228 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.3946, allocations: 4 kB / 1.228 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.3947, allocations: 15.98 kB / 1.228 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.3947, allocations: 0 / 1.228 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.3947, allocations: 4 kB / 1.228 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.396, allocations: 0.7651 MB / 1.229 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001988/0.3962, allocations: 168.4 kB / 1.229 GB, free: 3.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.715e-05/0.3963, allocations: 8 kB / 1.229 GB, free: 3.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002813/0.3966, allocations: 23.97 kB / 1.229 GB, free: 2.996 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.3967, allocations: 40.39 kB / 1.229 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/0.3967, allocations: 12 kB / 1.229 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005041/0.3973, allocations: 310.9 kB / 1.23 GB, free: 2.641 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.016e-06/0.3973, allocations: 0 / 1.23 GB, free: 2.641 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004591/0.3977, allocations: 143.5 kB / 1.23 GB, free: 2.5 MB / 0.9825 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.0001558/0.3979, allocations: 119.1 kB / 1.23 GB, free: 2.371 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001125/0.399, allocations: 489 kB / 1.23 GB, free: 1.879 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.399, allocations: 0 / 1.23 GB, free: 1.879 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004363/0.3995, allocations: 218.3 kB / 1.231 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007993/0.4003, allocations: 161.5 kB / 1.231 GB, free: 1.52 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002714/0.403, allocations: 1.337 MB / 1.232 GB, free: 152 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.4035, allocations: 0.886 MB / 1.233 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002782/0.4038, allocations: 64.58 kB / 1.233 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.4039, allocations: 43.42 kB / 1.233 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of SimCode: time 5.61e-07/0.4039, allocations: 0 / 1.233 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of Templates: time 0.01189/0.4158, allocations: 6.111 MB / 1.239 GB, free: 9.098 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches