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.0008333/0.0008334, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.006692/0.006692, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.416/1.416, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.729/2.729, allocations: 443.3 MB / 0.7175 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003842/0.0003845, allocations: 11.97 kB / 0.8795 GB, free: 41.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3389, allocations: 155.2 MB / 1.031 GB, free: 4.344 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004183/0.3432, allocations: 3.731 MB / 1.035 GB, free: 0.5898 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002096/0.3453, allocations: 1.285 MB / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002904/0.3456, allocations: 23.94 kB / 1.036 GB, free: 15.27 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002622/0.3459, allocations: 91.22 kB / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003172/0.3462, allocations: 146.8 kB / 1.036 GB, free: 15.04 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008063/0.347, allocations: 378.2 kB / 1.037 GB, free: 14.67 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0008275/0.3479, allocations: 0.8772 MB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005949/0.3485, allocations: 422.4 kB / 1.038 GB, free: 13.36 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002867/0.3488, allocations: 230.8 kB / 1.038 GB, free: 13.13 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002946/0.3491, allocations: 258.4 kB / 1.038 GB, free: 12.88 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.731e-05/0.3491, allocations: 24 kB / 1.038 GB, free: 12.85 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.851e-05/0.3492, allocations: 24 kB / 1.038 GB, free: 12.83 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.159e-05/0.3493, allocations: 99.42 kB / 1.038 GB, free: 12.73 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.3496, allocations: 339.7 kB / 1.039 GB, free: 12.39 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007582/0.3503, allocations: 0.9534 MB / 1.04 GB, free: 11.43 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3503, allocations: 0 / 1.04 GB, free: 11.43 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3504, allocations: 0 / 1.04 GB, free: 11.43 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.686e-06/0.3504, allocations: 0 / 1.04 GB, free: 11.43 MB / 0.795 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.001599/0.352, allocations: 0.9486 MB / 1.041 GB, free: 10.43 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.352, allocations: 8.031 kB / 1.041 GB, free: 10.42 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.3522, allocations: 83.91 kB / 1.041 GB, free: 10.34 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007859/0.353, allocations: 0.5494 MB / 1.041 GB, free: 9.746 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.745e-05/0.353, allocations: 49.69 kB / 1.041 GB, free: 9.699 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.518e-05/0.3531, allocations: 60.38 kB / 1.041 GB, free: 9.641 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.3542, allocations: 0.6195 MB / 1.042 GB, free: 8.996 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.3542, allocations: 0 / 1.042 GB, free: 8.996 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.255e-05/0.3543, allocations: 27.94 kB / 1.042 GB, free: 8.969 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.3543, allocations: 12 kB / 1.042 GB, free: 8.957 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009607/0.3553, allocations: 473 kB / 1.042 GB, free: 8.492 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/0.3581, allocations: 2.024 MB / 1.044 GB, free: 6.395 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009245/0.3591, allocations: 461.5 kB / 1.045 GB, free: 5.938 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004642/0.3595, allocations: 246.1 kB / 1.045 GB, free: 5.695 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.544e-05/0.3596, allocations: 4.438 kB / 1.045 GB, free: 5.691 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005766/0.3602, allocations: 265.3 kB / 1.045 GB, free: 5.422 MB / 0.795 GB Notification: Performance of pre-optimization done (n=49): time 2.514e-06/0.3602, allocations: 4 kB / 1.045 GB, free: 5.418 MB / 0.795 GB Notification: Performance of matching and sorting (n=49): time 0.001279/0.3615, allocations: 0.6077 MB / 1.046 GB, free: 4.801 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.3615, allocations: 55.84 kB / 1.046 GB, free: 4.734 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004865/0.362, allocations: 446 kB / 1.046 GB, free: 4.289 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.3621, allocations: 29.7 kB / 1.046 GB, free: 4.254 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.3623, allocations: 328.3 kB / 1.047 GB, free: 3.93 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.3624, allocations: 161.5 kB / 1.047 GB, free: 3.77 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.528e-05/0.3625, allocations: 57.69 kB / 1.047 GB, free: 3.707 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.3626, allocations: 366.7 kB / 1.047 GB, free: 3.34 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003943/0.363, allocations: 177 kB / 1.048 GB, free: 3.168 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.3634, allocations: 253.8 kB / 1.048 GB, free: 2.895 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008108/0.3643, allocations: 460 kB / 1.048 GB, free: 2.418 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3643, allocations: 0 / 1.048 GB, free: 2.418 MB / 0.795 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001118/0.3654, allocations: 0.5704 MB / 1.049 GB, free: 1.832 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.3655, allocations: 43.36 kB / 1.049 GB, free: 1.785 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.3655, allocations: 0 / 1.049 GB, free: 1.785 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.3655, allocations: 8 kB / 1.049 GB, free: 1.777 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004833/0.366, allocations: 119.8 kB / 1.049 GB, free: 1.66 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.366, allocations: 4 kB / 1.049 GB, free: 1.656 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003693/0.3664, allocations: 71.5 kB / 1.049 GB, free: 1.586 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-05/0.3664, allocations: 19.98 kB / 1.049 GB, free: 1.566 MB / 0.795 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.0003015/0.3667, allocations: 211.2 kB / 1.049 GB, free: 1.352 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.429e-05/0.3668, allocations: 59.28 kB / 1.049 GB, free: 1.293 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.367, allocations: 65.58 kB / 1.049 GB, free: 1.227 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.367, allocations: 4 kB / 1.049 GB, free: 1.223 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.367, allocations: 4 kB / 1.049 GB, free: 1.219 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.367, allocations: 4 kB / 1.049 GB, free: 1.215 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001795/0.3688, allocations: 1.189 MB / 1.051 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.3688, allocations: 3.984 kB / 1.051 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004641/0.3693, allocations: 91.89 kB / 1.051 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3693, allocations: 4 kB / 1.051 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.998e-05/0.3694, allocations: 12 kB / 1.051 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.3694, allocations: 7.922 kB / 1.051 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3694, allocations: 0 / 1.051 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.3707, allocations: 0.7835 MB / 1.051 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.3708, allocations: 172.3 kB / 1.052 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.17e-05/0.3709, allocations: 12 kB / 1.052 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.3712, allocations: 35.97 kB / 1.052 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.597e-05/0.3713, allocations: 32.39 kB / 1.052 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/0.3714, allocations: 12 kB / 1.052 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003368/0.3717, allocations: 310.9 kB / 1.052 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3717, allocations: 4 kB / 1.052 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004776/0.3722, allocations: 147.4 kB / 1.052 GB, free: 14.32 MB / 0.8106 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.0001526/0.3723, allocations: 109.2 kB / 1.052 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000972/0.3733, allocations: 0.4893 MB / 1.053 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3733, allocations: 0 / 1.053 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004211/0.3738, allocations: 222.8 kB / 1.053 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007835/0.3746, allocations: 151.2 kB / 1.053 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.3773, allocations: 1.684 MB / 1.055 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004216/0.3777, allocations: 0.8902 MB / 1.056 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002819/0.378, allocations: 64.58 kB / 1.056 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.3781, allocations: 39.44 kB / 1.056 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of SimCode: time 7.12e-07/0.3781, allocations: 0 / 1.056 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of Templates: time 0.01087/0.389, allocations: 5.524 MB / 1.061 GB, free: 5.152 MB / 0.8106 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