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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.007114/0.007114, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001412/0.001412, allocations: 197.3 kB / 16.79 MB, free: 6.254 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.414/1.414, allocations: 222.9 MB / 240.5 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.708/2.708, allocations: 461.8 MB / 0.7348 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 64.33 kB / 0.899 GB, free: 36.86 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3372, allocations: 157.4 MB / 1.053 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006307/0.3436, allocations: 4.152 MB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003037/0.3466, allocations: 1.293 MB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008564/0.3475, allocations: 19.94 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005541/0.3481, allocations: 91.22 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0007519/0.3489, allocations: 150.8 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.3501, allocations: 389.5 kB / 1.059 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001376/0.3515, allocations: 0.8734 MB / 1.06 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007705/0.3523, allocations: 434.1 kB / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004916/0.3528, allocations: 274.7 kB / 1.06 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004767/0.3532, allocations: 310.3 kB / 1.06 GB, free: 280 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.3534, allocations: 44 kB / 1.061 GB, free: 236 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.3536, allocations: 40 kB / 1.061 GB, free: 196 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.3537, allocations: 119.5 kB / 1.061 GB, free: 76 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000454/0.3542, allocations: 346.1 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008503/0.3551, allocations: 0.8303 MB / 1.062 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3551, allocations: 0 / 1.062 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.42e-07/0.3551, allocations: 0 / 1.062 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.438e-05/0.3551, allocations: 0 / 1.062 GB, free: 14.9 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.002633/0.3578, allocations: 1.073 MB / 1.063 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.3578, allocations: 15.91 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002287/0.3581, allocations: 87.91 kB / 1.063 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.3592, allocations: 0.5495 MB / 1.064 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.3592, allocations: 49.62 kB / 1.064 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.3593, allocations: 60.38 kB / 1.064 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.3606, allocations: 0.6078 MB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.3607, allocations: 0 / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.695e-05/0.3607, allocations: 24 kB / 1.064 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.3608, allocations: 16 kB / 1.064 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.3618, allocations: 461 kB / 1.065 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003355/0.3652, allocations: 2.008 MB / 1.067 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009456/0.3661, allocations: 445.7 kB / 1.067 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004721/0.3666, allocations: 238.1 kB / 1.067 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.3667, allocations: 8.422 kB / 1.067 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007191/0.3674, allocations: 261.3 kB / 1.068 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=49): time 3.377e-06/0.3674, allocations: 0 / 1.068 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=49): time 0.001323/0.3688, allocations: 0.585 MB / 1.068 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.3688, allocations: 67.84 kB / 1.068 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005963/0.3694, allocations: 441.9 kB / 1.069 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001227/0.3696, allocations: 41.69 kB / 1.069 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002683/0.3698, allocations: 320.3 kB / 1.069 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.37, allocations: 165.6 kB / 1.069 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.3702, allocations: 94.16 kB / 1.069 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0003308/0.3705, allocations: 362.8 kB / 1.07 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004052/0.3709, allocations: 173 kB / 1.07 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004613/0.3714, allocations: 249.8 kB / 1.07 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008965/0.3723, allocations: 456 kB / 1.07 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3723, allocations: 0 / 1.07 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001183/0.3735, allocations: 0.5585 MB / 1.071 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.3736, allocations: 39.77 kB / 1.071 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3736, allocations: 4 kB / 1.071 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.3736, allocations: 4 kB / 1.071 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005088/0.3741, allocations: 115.8 kB / 1.071 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.606e-05/0.3741, allocations: 4 kB / 1.071 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/0.3745, allocations: 63.5 kB / 1.071 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.3746, allocations: 23.92 kB / 1.071 GB, free: 4.98 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.0002991/0.3749, allocations: 210.7 kB / 1.071 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.375, allocations: 59.28 kB / 1.071 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001446/0.3752, allocations: 65.58 kB / 1.071 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.3752, allocations: 4 kB / 1.071 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3752, allocations: 3.938 kB / 1.072 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3752, allocations: 0 / 1.072 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001919/0.3771, allocations: 1.185 MB / 1.073 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3771, allocations: 0 / 1.073 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004799/0.3776, allocations: 95.88 kB / 1.073 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.3776, allocations: 0 / 1.073 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/0.3777, allocations: 12 kB / 1.073 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.3777, allocations: 0 / 1.073 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3777, allocations: 4 kB / 1.073 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.3791, allocations: 0.764 MB / 1.074 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.3794, allocations: 168.4 kB / 1.074 GB, free: 2.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.551e-05/0.3795, allocations: 8 kB / 1.074 GB, free: 2.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003168/0.3798, allocations: 35.91 kB / 1.074 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.843e-05/0.3799, allocations: 32.39 kB / 1.074 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.833e-05/0.3799, allocations: 12 kB / 1.074 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003744/0.3803, allocations: 310.9 kB / 1.074 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.7e-07/0.3803, allocations: 0 / 1.074 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004851/0.3808, allocations: 147.4 kB / 1.074 GB, free: 1.789 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.0001561/0.381, allocations: 115.2 kB / 1.074 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009925/0.382, allocations: 485 kB / 1.075 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.382, allocations: 0 / 1.075 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004315/0.3824, allocations: 218.9 kB / 1.075 GB, free: 0.9609 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007925/0.3832, allocations: 151.7 kB / 1.075 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003186/0.3864, allocations: 1.634 MB / 1.077 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006556/0.3871, allocations: 0.8824 MB / 1.078 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.3873, allocations: 51.42 kB / 1.078 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of SimCode: time 7.62e-07/0.3873, allocations: 4 kB / 1.078 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of Templates: time 0.01373/0.401, allocations: 7.581 MB / 1.085 GB, free: 6.641 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches