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.009129/0.009129, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001966/0.001966, allocations: 193.3 kB / 16.67 MB, free: 5.953 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.478/1.478, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.701/2.701, allocations: 461.9 MB / 0.7348 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 63.91 kB / 1.054 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9948/0.9962, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006409/1.003, allocations: 4.131 MB / 1.212 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003331/1.006, allocations: 1.317 MB / 1.213 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001022/1.007, allocations: 31.88 kB / 1.213 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0006406/1.008, allocations: 126.7 kB / 1.213 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0009028/1.009, allocations: 178.4 kB / 1.213 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001285/1.01, allocations: 423 kB / 1.214 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001438/1.012, allocations: 0.9476 MB / 1.215 GB, free: 6.473 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008262/1.012, allocations: 466.1 kB / 1.215 GB, free: 6 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005732/1.013, allocations: 330.7 kB / 1.215 GB, free: 5.676 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005735/1.014, allocations: 338.3 kB / 1.216 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002013/1.014, allocations: 92 kB / 1.216 GB, free: 5.254 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001834/1.014, allocations: 92 kB / 1.216 GB, free: 5.164 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001731/1.014, allocations: 175.5 kB / 1.216 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0005396/1.015, allocations: 394 kB / 1.216 GB, free: 4.605 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001232/1.016, allocations: 1.061 MB / 1.217 GB, free: 3.547 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.016, allocations: 0 / 1.217 GB, free: 3.547 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.275e-06/1.016, allocations: 0 / 1.217 GB, free: 3.547 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.168e-05/1.016, allocations: 0 / 1.217 GB, free: 3.547 MB / 0.9356 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.002435/1.018, allocations: 1.077 MB / 1.219 GB, free: 2.41 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/1.018, allocations: 12.03 kB / 1.219 GB, free: 2.398 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/1.019, allocations: 80 kB / 1.219 GB, free: 2.32 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009344/1.02, allocations: 0.565 MB / 1.219 GB, free: 1.715 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.608e-05/1.02, allocations: 45.69 kB / 1.219 GB, free: 1.672 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.261e-05/1.02, allocations: 60.36 kB / 1.219 GB, free: 1.613 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/1.021, allocations: 0.6078 MB / 1.22 GB, free: 0.9805 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/1.021, allocations: 0 / 1.22 GB, free: 0.9805 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.025e-05/1.021, allocations: 28 kB / 1.22 GB, free: 0.9531 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/1.021, allocations: 12 kB / 1.22 GB, free: 0.9414 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008888/1.022, allocations: 461 kB / 1.22 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002792/1.025, allocations: 1.997 MB / 1.222 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008593/1.025, allocations: 437 kB / 1.223 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000415/1.026, allocations: 250 kB / 1.223 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.369e-05/1.026, allocations: 4.438 kB / 1.223 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000527/1.026, allocations: 257.3 kB / 1.223 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=49): time 2.775e-06/1.026, allocations: 0 / 1.223 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of matching and sorting (n=49): time 0.001272/1.028, allocations: 0.592 MB / 1.224 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/1.028, allocations: 63.78 kB / 1.224 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004856/1.028, allocations: 438.1 kB / 1.224 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/1.028, allocations: 41.69 kB / 1.224 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002335/1.029, allocations: 325 kB / 1.225 GB, free: 12 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/1.029, allocations: 173.5 kB / 1.225 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/1.029, allocations: 90.25 kB / 1.225 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001398/1.029, allocations: 358.8 kB / 1.225 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003526/1.029, allocations: 169 kB / 1.225 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/1.03, allocations: 257.8 kB / 1.226 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007626/1.031, allocations: 448 kB / 1.226 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/1.031, allocations: 0 / 1.226 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009829/1.032, allocations: 0.5585 MB / 1.227 GB, free: 9.887 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.805e-05/1.032, allocations: 41.64 kB / 1.227 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/1.032, allocations: 4 kB / 1.227 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/1.032, allocations: 4 kB / 1.227 GB, free: 9.832 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004881/1.032, allocations: 112.1 kB / 1.227 GB, free: 9.723 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/1.032, allocations: 11.94 kB / 1.227 GB, free: 9.711 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/1.033, allocations: 59.41 kB / 1.227 GB, free: 9.652 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.253e-05/1.033, allocations: 20 kB / 1.227 GB, free: 9.633 MB / 0.9512 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.0002789/1.033, allocations: 201.8 kB / 1.227 GB, free: 9.426 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.116e-05/1.033, allocations: 67.2 kB / 1.227 GB, free: 9.359 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001453/1.033, allocations: 57.59 kB / 1.227 GB, free: 9.301 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/1.033, allocations: 4 kB / 1.227 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/1.033, allocations: 4 kB / 1.227 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/1.033, allocations: 3.984 kB / 1.227 GB, free: 9.289 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/1.035, allocations: 1.174 MB / 1.228 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.035, allocations: 4 kB / 1.228 GB, free: 8.059 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004795/1.036, allocations: 95.88 kB / 1.228 GB, free: 7.965 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/1.036, allocations: 7.938 kB / 1.228 GB, free: 7.957 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.301e-05/1.036, allocations: 12 kB / 1.228 GB, free: 7.945 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/1.036, allocations: 0 / 1.228 GB, free: 7.945 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.036, allocations: 3.984 kB / 1.228 GB, free: 7.941 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/1.037, allocations: 0.7613 MB / 1.229 GB, free: 7.168 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/1.037, allocations: 172.2 kB / 1.229 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.605e-05/1.037, allocations: 8 kB / 1.229 GB, free: 6.973 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/1.038, allocations: 35.84 kB / 1.229 GB, free: 6.938 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/1.038, allocations: 36.38 kB / 1.229 GB, free: 6.898 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.172e-05/1.038, allocations: 15.98 kB / 1.229 GB, free: 6.883 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003981/1.038, allocations: 310.9 kB / 1.23 GB, free: 6.582 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/1.038, allocations: 0 / 1.23 GB, free: 6.582 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005353/1.039, allocations: 139.5 kB / 1.23 GB, free: 6.445 MB / 0.9512 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.0001884/1.039, allocations: 118.8 kB / 1.23 GB, free: 6.32 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001018/1.04, allocations: 485.5 kB / 1.23 GB, free: 5.832 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.04, allocations: 4 kB / 1.23 GB, free: 5.828 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004247/1.04, allocations: 218.4 kB / 1.231 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007542/1.041, allocations: 157.4 kB / 1.231 GB, free: 5.465 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002851/1.044, allocations: 1.329 MB / 1.232 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005651/1.045, allocations: 0.8938 MB / 1.233 GB, free: 3.184 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0003148/1.045, allocations: 68.58 kB / 1.233 GB, free: 3.113 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/1.045, allocations: 39.44 kB / 1.233 GB, free: 3.074 MB / 0.9512 GB Notification: Performance of SimCode: time 9.72e-07/1.045, allocations: 4 kB / 1.233 GB, free: 3.07 MB / 0.9512 GB Notification: Performance of Templates: time 0.01338/1.058, allocations: 6.005 MB / 1.239 GB, free: 13.15 MB / 0.9669 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