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.001556/0.001556, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001396/0.001397, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.385/1.385, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.678/2.678, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 72.53 kB / 0.8986 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3474, allocations: 157.4 MB / 1.052 GB, free: 8.762 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006178/0.3537, allocations: 4.147 MB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002923/0.3566, allocations: 1.297 MB / 1.058 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008811/0.3575, allocations: 27.88 kB / 1.058 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005517/0.3581, allocations: 91.22 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0007218/0.3589, allocations: 142.8 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.3601, allocations: 385.3 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001305/0.3614, allocations: 0.9515 MB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008361/0.3622, allocations: 458.1 kB / 1.06 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005543/0.3628, allocations: 338.7 kB / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005598/0.3634, allocations: 338.3 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002049/0.3636, allocations: 88 kB / 1.06 GB, free: 496 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.3638, allocations: 92 kB / 1.06 GB, free: 404 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.3639, allocations: 175.5 kB / 1.061 GB, free: 228 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003679/0.3643, allocations: 394 kB / 1.061 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009901/0.3653, allocations: 1.032 MB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.3653, allocations: 3.984 kB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3653, allocations: 0 / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.189e-05/0.3653, allocations: 0 / 1.062 GB, free: 14.8 MB / 0.8262 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.001798/0.3671, allocations: 1.073 MB / 1.063 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.3672, allocations: 12.61 kB / 1.063 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.3673, allocations: 83.91 kB / 1.063 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007841/0.3681, allocations: 0.5533 MB / 1.064 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.404e-05/0.3682, allocations: 41.69 kB / 1.064 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.801e-05/0.3683, allocations: 60.38 kB / 1.064 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.3694, allocations: 0.6117 MB / 1.064 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.3694, allocations: 4 kB / 1.064 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.008e-05/0.3695, allocations: 20 kB / 1.064 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.3695, allocations: 12 kB / 1.064 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009253/0.3704, allocations: 465 kB / 1.065 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002895/0.3733, allocations: 2.016 MB / 1.067 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009065/0.3742, allocations: 441.7 kB / 1.067 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004377/0.3747, allocations: 238.1 kB / 1.067 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.46e-05/0.3747, allocations: 8.438 kB / 1.067 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006123/0.3754, allocations: 261.3 kB / 1.068 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=49): time 2.775e-06/0.3754, allocations: 0 / 1.068 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of matching and sorting (n=49): time 0.00128/0.3767, allocations: 0.5811 MB / 1.068 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.3767, allocations: 63.83 kB / 1.068 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004987/0.3772, allocations: 449.9 kB / 1.069 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.188e-05/0.3773, allocations: 37.7 kB / 1.069 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002281/0.3775, allocations: 324.3 kB / 1.069 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.3776, allocations: 157.7 kB / 1.069 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.3778, allocations: 98.16 kB / 1.069 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.378, allocations: 362.8 kB / 1.07 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003654/0.3783, allocations: 169 kB / 1.07 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.3788, allocations: 249.8 kB / 1.07 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007588/0.3795, allocations: 452 kB / 1.07 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.3795, allocations: 4 kB / 1.07 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001017/0.3806, allocations: 0.5703 MB / 1.071 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.477e-05/0.3806, allocations: 37.64 kB / 1.071 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3806, allocations: 4 kB / 1.071 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.3807, allocations: 4 kB / 1.071 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005061/0.3812, allocations: 107.9 kB / 1.071 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.3812, allocations: 11.94 kB / 1.071 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.3816, allocations: 67.53 kB / 1.071 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.875e-05/0.3816, allocations: 20 kB / 1.071 GB, free: 4.879 MB / 0.8262 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.0002656/0.3819, allocations: 201.8 kB / 1.071 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.342e-05/0.382, allocations: 63.27 kB / 1.072 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.3821, allocations: 57.59 kB / 1.072 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3821, allocations: 4 kB / 1.072 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.3821, allocations: 3.938 kB / 1.072 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.3821, allocations: 3.984 kB / 1.072 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.3839, allocations: 1.189 MB / 1.073 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3839, allocations: 4 kB / 1.073 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004544/0.3844, allocations: 91.88 kB / 1.073 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3844, allocations: 4 kB / 1.073 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.38e-05/0.3844, allocations: 12 kB / 1.073 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.3844, allocations: 7.938 kB / 1.073 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3844, allocations: 0 / 1.073 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.3858, allocations: 0.7524 MB / 1.074 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/0.3859, allocations: 168.4 kB / 1.074 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.386, allocations: 12 kB / 1.074 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003037/0.3863, allocations: 35.91 kB / 1.074 GB, free: 2.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.447e-05/0.3864, allocations: 32.39 kB / 1.074 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.3865, allocations: 15.98 kB / 1.074 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003398/0.3868, allocations: 306.9 kB / 1.074 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.9e-07/0.3868, allocations: 0 / 1.074 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004503/0.3873, allocations: 143.4 kB / 1.074 GB, free: 1.695 MB / 0.8262 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.0001536/0.3874, allocations: 123.1 kB / 1.074 GB, free: 1.562 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001084/0.3885, allocations: 497 kB / 1.075 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3885, allocations: 0.5 kB / 1.075 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004011/0.3889, allocations: 218.4 kB / 1.075 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007945/0.3898, allocations: 164.6 kB / 1.075 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002764/0.3925, allocations: 1.603 MB / 1.077 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.393, allocations: 0.8937 MB / 1.078 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002952/0.3933, allocations: 64.58 kB / 1.078 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.3934, allocations: 47.42 kB / 1.078 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of SimCode: time 6.21e-07/0.3935, allocations: 0 / 1.078 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of Templates: time 0.0115/0.405, allocations: 5.817 MB / 1.083 GB, free: 8.301 MB / 0.8419 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