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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001896/0.001904, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002203/0.002203, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.395/1.395, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.84/2.84, allocations: 472.6 MB / 0.7451 GB, free: 4.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 65.16 kB / 0.912 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4096/0.4111, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006946/0.4181, allocations: 4.136 MB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003405/0.4216, allocations: 1.336 MB / 1.074 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001159/0.4228, allocations: 27.88 kB / 1.074 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006388/0.4235, allocations: 130.6 kB / 1.074 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0008663/0.4244, allocations: 174.4 kB / 1.074 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001327/0.4257, allocations: 426.3 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001526/0.4273, allocations: 0.9438 MB / 1.075 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008804/0.4282, allocations: 458.1 kB / 1.076 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006257/0.4288, allocations: 326.7 kB / 1.076 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006083/0.4294, allocations: 338.4 kB / 1.076 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001909/0.4296, allocations: 96 kB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.4298, allocations: 88 kB / 1.076 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.43, allocations: 179.4 kB / 1.077 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003735/0.4304, allocations: 390.1 kB / 1.077 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009918/0.4314, allocations: 1.04 MB / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.4314, allocations: 0 / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.964e-06/0.4314, allocations: 0 / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.18e-05/0.4314, allocations: 0 / 1.078 GB, free: 336 kB / 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.001919/0.4333, allocations: 1.081 MB / 1.079 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.4334, allocations: 8.031 kB / 1.079 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.4335, allocations: 80 kB / 1.079 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008417/0.4344, allocations: 0.5456 MB / 1.08 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.234e-05/0.4344, allocations: 45.69 kB / 1.08 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.4346, allocations: 60.38 kB / 1.08 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.4356, allocations: 0.6156 MB / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.609e-05/0.4357, allocations: 8 kB / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.659e-05/0.4357, allocations: 20 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.4357, allocations: 16 kB / 1.08 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009651/0.4367, allocations: 464.9 kB / 1.081 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002868/0.4396, allocations: 2.012 MB / 1.083 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000908/0.4405, allocations: 441 kB / 1.083 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004501/0.441, allocations: 238.6 kB / 1.083 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.441, allocations: 12.38 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006549/0.4417, allocations: 269.2 kB / 1.084 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=49): time 3.146e-06/0.4417, allocations: 0 / 1.084 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49): time 0.001314/0.443, allocations: 0.5811 MB / 1.084 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.029e-05/0.4431, allocations: 63.78 kB / 1.084 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005094/0.4436, allocations: 442 kB / 1.085 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.965e-05/0.4437, allocations: 33.7 kB / 1.085 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002629/0.4439, allocations: 328.2 kB / 1.085 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.4441, allocations: 165.6 kB / 1.085 GB, free: 8.602 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.4442, allocations: 94.23 kB / 1.085 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.4444, allocations: 362.8 kB / 1.086 GB, free: 8.141 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00039/0.4448, allocations: 169 kB / 1.086 GB, free: 7.973 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004256/0.4452, allocations: 249.8 kB / 1.086 GB, free: 7.707 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008279/0.4461, allocations: 456 kB / 1.087 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.4461, allocations: 0 / 1.087 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001069/0.4472, allocations: 0.5625 MB / 1.087 GB, free: 6.648 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.852e-05/0.4472, allocations: 41.67 kB / 1.087 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.4472, allocations: 0 / 1.087 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.4473, allocations: 8 kB / 1.087 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000509/0.4478, allocations: 111.8 kB / 1.087 GB, free: 6.484 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.529e-05/0.4478, allocations: 4 kB / 1.087 GB, free: 6.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003621/0.4482, allocations: 59.5 kB / 1.087 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-05/0.4482, allocations: 20 kB / 1.087 GB, free: 6.402 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.0002761/0.4485, allocations: 214.3 kB / 1.088 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.063e-05/0.4486, allocations: 59.28 kB / 1.088 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.4487, allocations: 61.58 kB / 1.088 GB, free: 6.062 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.4488, allocations: 8 kB / 1.088 GB, free: 6.055 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.4488, allocations: 0 / 1.088 GB, free: 6.055 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.4488, allocations: 7.922 kB / 1.088 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.4507, allocations: 1.181 MB / 1.089 GB, free: 4.812 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.4507, allocations: 0 / 1.089 GB, free: 4.812 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004648/0.4512, allocations: 91.89 kB / 1.089 GB, free: 4.723 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.071e-05/0.4512, allocations: 4 kB / 1.089 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.958e-05/0.4512, allocations: 7.984 kB / 1.089 GB, free: 4.711 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.4512, allocations: 4 kB / 1.089 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4512, allocations: 4 kB / 1.089 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.4526, allocations: 0.7601 MB / 1.09 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/0.4528, allocations: 172.3 kB / 1.09 GB, free: 3.738 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.184e-05/0.4529, allocations: 12 kB / 1.09 GB, free: 3.727 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002931/0.4532, allocations: 27.97 kB / 1.09 GB, free: 3.699 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.4533, allocations: 36.39 kB / 1.09 GB, free: 3.664 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/0.4534, allocations: 12 kB / 1.09 GB, free: 3.652 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003737/0.4537, allocations: 310.9 kB / 1.09 GB, free: 3.352 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.6e-07/0.4538, allocations: 0 / 1.09 GB, free: 3.352 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004908/0.4542, allocations: 139.5 kB / 1.09 GB, free: 3.215 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.0001638/0.4544, allocations: 111.2 kB / 1.09 GB, free: 3.094 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001204/0.4556, allocations: 0.497 MB / 1.091 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.4556, allocations: 0 / 1.091 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004415/0.4561, allocations: 218.3 kB / 1.091 GB, free: 2.371 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008177/0.4569, allocations: 169.3 kB / 1.091 GB, free: 2.211 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.4599, allocations: 1.345 MB / 1.093 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005483/0.4605, allocations: 0.8977 MB / 1.093 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003277/0.4608, allocations: 64.58 kB / 1.094 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.461, allocations: 43.44 kB / 1.094 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of SimCode: time 7.01e-07/0.461, allocations: 0 / 1.094 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of Templates: time 0.01315/0.4741, allocations: 5.913 MB / 1.099 GB, free: 9.977 MB / 0.8575 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