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.001584/0.001584, allocations: 106.6 kB / 15.99 MB, free: 6.355 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.001713/0.001713, allocations: 196.5 kB / 16.91 MB, free: 6.188 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.443/1.443, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.728/2.728, allocations: 469.8 MB / 0.7427 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002186/0.002186, allocations: 63.41 kB / 0.9087 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3749, allocations: 159.1 MB / 1.064 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006491/0.3814, allocations: 4.131 MB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002864/0.3843, allocations: 1.301 MB / 1.069 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004478/0.3848, allocations: 23.94 kB / 1.069 GB, free: 9.668 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0003498/0.3851, allocations: 91.2 kB / 1.07 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003823/0.3856, allocations: 146.8 kB / 1.07 GB, free: 9.434 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009219/0.3865, allocations: 380.7 kB / 1.07 GB, free: 9.066 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001057/0.3876, allocations: 0.9515 MB / 1.071 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006891/0.3883, allocations: 462.1 kB / 1.071 GB, free: 7.641 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004034/0.3887, allocations: 334.7 kB / 1.072 GB, free: 7.312 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003694/0.3891, allocations: 338.4 kB / 1.072 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.3892, allocations: 88 kB / 1.072 GB, free: 6.895 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.3893, allocations: 95.94 kB / 1.072 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.3895, allocations: 171.5 kB / 1.072 GB, free: 6.633 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003864/0.3899, allocations: 398 kB / 1.073 GB, free: 6.242 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008734/0.3908, allocations: 0.8382 MB / 1.074 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3908, allocations: 0 / 1.074 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.993e-06/0.3908, allocations: 0 / 1.074 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.035e-05/0.3908, allocations: 0 / 1.074 GB, free: 5.402 MB / 0.8419 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.001921/0.3927, allocations: 1.077 MB / 1.075 GB, free: 4.266 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3928, allocations: 8.031 kB / 1.075 GB, free: 4.258 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.393, allocations: 91.84 kB / 1.075 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008514/0.3938, allocations: 0.5495 MB / 1.075 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.3939, allocations: 41.69 kB / 1.075 GB, free: 3.539 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.394, allocations: 60.38 kB / 1.075 GB, free: 3.48 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.3951, allocations: 0.6078 MB / 1.076 GB, free: 2.848 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.3952, allocations: 4 kB / 1.076 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.509e-05/0.3952, allocations: 23.98 kB / 1.076 GB, free: 2.82 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.3953, allocations: 16 kB / 1.076 GB, free: 2.805 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009869/0.3963, allocations: 465 kB / 1.076 GB, free: 2.352 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00297/0.3992, allocations: 2.004 MB / 1.078 GB, free: 284 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6326/1.032, allocations: 442.9 kB / 1.079 GB, free: 21.97 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000562/1.032, allocations: 240 kB / 1.079 GB, free: 21.96 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 5.784e-05/1.033, allocations: 8.828 kB / 1.079 GB, free: 21.96 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006454/1.033, allocations: 258.3 kB / 1.079 GB, free: 21.91 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=49): time 3.026e-06/1.033, allocations: 1.938 kB / 1.079 GB, free: 21.91 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49): time 0.001467/1.035, allocations: 0.5874 MB / 1.08 GB, free: 21.87 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/1.035, allocations: 62.88 kB / 1.08 GB, free: 21.81 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005748/1.035, allocations: 443.1 kB / 1.08 GB, free: 21.69 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.257e-05/1.035, allocations: 38.33 kB / 1.08 GB, free: 21.66 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002373/1.036, allocations: 320.1 kB / 1.081 GB, free: 21.46 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/1.036, allocations: 167.5 kB / 1.081 GB, free: 21.34 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/1.036, allocations: 94.69 kB / 1.081 GB, free: 21.29 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001095/1.036, allocations: 369.6 kB / 1.081 GB, free: 20.95 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003906/1.036, allocations: 165.8 kB / 1.081 GB, free: 20.89 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004161/1.037, allocations: 249.9 kB / 1.082 GB, free: 20.75 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007752/1.038, allocations: 451.5 kB / 1.082 GB, free: 20.49 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/1.038, allocations: 3.969 kB / 1.082 GB, free: 20.49 MB / 0.8419 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001063/1.039, allocations: 0.5576 MB / 1.083 GB, free: 20.23 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.036e-05/1.039, allocations: 34.8 kB / 1.083 GB, free: 20.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/1.039, allocations: 4.75 kB / 1.083 GB, free: 20.2 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/1.039, allocations: 4.094 kB / 1.083 GB, free: 20.2 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005094/1.039, allocations: 113.8 kB / 1.083 GB, free: 20.19 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/1.039, allocations: 10.31 kB / 1.083 GB, free: 20.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003465/1.04, allocations: 62.55 kB / 1.083 GB, free: 20.16 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.264e-05/1.04, allocations: 22.61 kB / 1.083 GB, free: 20.15 MB / 0.8419 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.0002375/1.04, allocations: 218.8 kB / 1.083 GB, free: 19.97 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.065e-05/1.04, allocations: 59.56 kB / 1.083 GB, free: 19.94 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001264/1.04, allocations: 64.23 kB / 1.083 GB, free: 19.89 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/1.04, allocations: 5.438 kB / 1.083 GB, free: 19.89 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/1.04, allocations: 2.812 kB / 1.083 GB, free: 19.89 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/1.04, allocations: 4.328 kB / 1.083 GB, free: 19.89 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/1.042, allocations: 1.18 MB / 1.084 GB, free: 19.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/1.042, allocations: 0 / 1.084 GB, free: 19.23 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004893/1.042, allocations: 94.16 kB / 1.085 GB, free: 19.22 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.281e-06/1.043, allocations: 2.719 kB / 1.085 GB, free: 19.22 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/1.043, allocations: 13.48 kB / 1.085 GB, free: 19.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/1.043, allocations: 0.75 kB / 1.085 GB, free: 19.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.043, allocations: 10.84 kB / 1.085 GB, free: 19.21 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/1.044, allocations: 0.7542 MB / 1.085 GB, free: 18.81 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/1.044, allocations: 168 kB / 1.085 GB, free: 18.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.423e-05/1.044, allocations: 11.38 kB / 1.085 GB, free: 18.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002961/1.044, allocations: 37.23 kB / 1.085 GB, free: 18.64 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/1.045, allocations: 37.14 kB / 1.086 GB, free: 18.63 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/1.045, allocations: 14.23 kB / 1.086 GB, free: 18.62 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003765/1.045, allocations: 308.8 kB / 1.086 GB, free: 18.47 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.5e-07/1.045, allocations: 0 / 1.086 GB, free: 18.47 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005039/1.045, allocations: 142 kB / 1.086 GB, free: 18.43 MB / 0.8419 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.0001367/1.046, allocations: 118.3 kB / 1.086 GB, free: 18.33 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001142/1.047, allocations: 499 kB / 1.087 GB, free: 18.12 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/1.047, allocations: 0 / 1.087 GB, free: 18.12 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004188/1.047, allocations: 221.6 kB / 1.087 GB, free: 18.04 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007615/1.048, allocations: 159.1 kB / 1.087 GB, free: 17.99 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/1.051, allocations: 1.647 MB / 1.089 GB, free: 16.94 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/1.051, allocations: 0.8882 MB / 1.089 GB, free: 16.23 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/1.051, allocations: 43.27 kB / 1.089 GB, free: 16.22 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/1.051, allocations: 5.094 kB / 1.089 GB, free: 16.22 MB / 0.8419 GB Notification: Performance of Templates: time 0.01717/1.068, allocations: 7.602 MB / 1.097 GB, free: 15.34 MB / 0.8419 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=400 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches