Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00155/0.00155, allocations: 107.3 kB / 16.41 MB, free: 6.477 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.001533/0.001534, allocations: 183 kB / 17.34 MB, free: 5.754 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.493/1.493, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.34/2.34, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001503, allocations: 71.88 kB / 0.9515 GB, free: 7.711 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9448/0.9464, allocations: 140.4 MB / 1.089 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005217/0.9516, allocations: 4.136 MB / 1.093 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002722/0.9544, allocations: 1.32 MB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004809/0.9548, allocations: 25.06 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003819/0.9552, allocations: 126.9 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003949/0.9557, allocations: 186.2 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009358/0.9566, allocations: 416.2 kB / 1.095 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001082/0.9577, allocations: 0.9581 MB / 1.096 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007053/0.9585, allocations: 466.4 kB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004703/0.9589, allocations: 329.8 kB / 1.096 GB, free: 188 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004295/0.9594, allocations: 340.3 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001755/0.9596, allocations: 90.66 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.9597, allocations: 90.66 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.9599, allocations: 177.8 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0003828/0.9603, allocations: 390 kB / 1.097 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001416/0.9617, allocations: 1.06 MB / 1.098 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.9617, allocations: 0 / 1.098 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.074e-06/0.9617, allocations: 0.5 kB / 1.098 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.736e-05/0.9618, allocations: 4 kB / 1.098 GB, free: 15.14 MB / 0.8731 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.002034/0.9638, allocations: 1.075 MB / 1.099 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.9639, allocations: 10.56 kB / 1.099 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.964, allocations: 86.16 kB / 1.1 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009773/0.965, allocations: 0.5647 MB / 1.1 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.161e-05/0.9651, allocations: 42.69 kB / 1.1 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.9652, allocations: 58.77 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.9665, allocations: 0.6124 MB / 1.101 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.9665, allocations: 1.828 kB / 1.101 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.276e-05/0.9666, allocations: 25.44 kB / 1.101 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.9666, allocations: 14.44 kB / 1.101 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.9677, allocations: 465.3 kB / 1.101 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003293/0.971, allocations: 1.988 MB / 1.103 GB, free: 12.16 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.972, allocations: 446.2 kB / 1.104 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005366/0.9725, allocations: 244.8 kB / 1.104 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.941e-05/0.9726, allocations: 5.312 kB / 1.104 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006726/0.9733, allocations: 261.6 kB / 1.104 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=49): time 2.485e-06/0.9733, allocations: 0.5312 kB / 1.104 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of matching and sorting (n=49): time 0.001533/0.9748, allocations: 0.5861 MB / 1.105 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.487e-05/0.9749, allocations: 58.16 kB / 1.105 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007151/0.9756, allocations: 445 kB / 1.105 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.889e-05/0.9757, allocations: 37.83 kB / 1.105 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003237/0.976, allocations: 325.5 kB / 1.106 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.9762, allocations: 164.5 kB / 1.106 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001992/0.9764, allocations: 96.34 kB / 1.106 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002318/0.9767, allocations: 363.8 kB / 1.106 GB, free: 10.4 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004479/0.9771, allocations: 165.7 kB / 1.106 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005685/0.9777, allocations: 254.1 kB / 1.107 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009626/0.9787, allocations: 451.1 kB / 1.107 GB, free: 9.918 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.9787, allocations: 3.938 kB / 1.107 GB, free: 9.914 MB / 0.8731 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001295/0.98, allocations: 0.5617 MB / 1.107 GB, free: 9.648 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.908e-05/0.9801, allocations: 39.36 kB / 1.108 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.9801, allocations: 2.031 kB / 1.108 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.9801, allocations: 5.141 kB / 1.108 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005547/0.9807, allocations: 109.5 kB / 1.108 GB, free: 9.605 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.131e-05/0.9807, allocations: 9.531 kB / 1.108 GB, free: 9.602 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003921/0.9811, allocations: 55.86 kB / 1.108 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.655e-05/0.9812, allocations: 19.38 kB / 1.108 GB, free: 9.566 MB / 0.8731 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.0003492/0.9815, allocations: 216.7 kB / 1.108 GB, free: 9.383 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.9816, allocations: 62.2 kB / 1.108 GB, free: 9.348 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001675/0.9818, allocations: 65.48 kB / 1.108 GB, free: 9.305 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.168e-06/0.9818, allocations: 8.844 kB / 1.108 GB, free: 9.301 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.712e-05/0.9818, allocations: 0 / 1.108 GB, free: 9.301 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.9819, allocations: 4.094 kB / 1.108 GB, free: 9.301 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002297/0.9842, allocations: 1.178 MB / 1.109 GB, free: 8.621 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.9842, allocations: 0 / 1.109 GB, free: 8.621 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005103/0.9847, allocations: 94.22 kB / 1.109 GB, free: 8.613 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/0.9847, allocations: 3.031 kB / 1.109 GB, free: 8.613 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.874e-05/0.9848, allocations: 15.66 kB / 1.109 GB, free: 8.602 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.9848, allocations: 10.25 kB / 1.109 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.9848, allocations: 0 / 1.109 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001601/0.9864, allocations: 0.7596 MB / 1.11 GB, free: 8.195 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002065/0.9866, allocations: 168.3 kB / 1.11 GB, free: 8.043 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.435e-05/0.9867, allocations: 12.05 kB / 1.11 GB, free: 8.035 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002817/0.987, allocations: 29.23 kB / 1.11 GB, free: 8.023 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.9871, allocations: 31.88 kB / 1.11 GB, free: 8.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.9871, allocations: 14.56 kB / 1.11 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000399/0.9875, allocations: 310.7 kB / 1.111 GB, free: 7.863 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9875, allocations: 0 / 1.111 GB, free: 7.863 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005013/0.988, allocations: 145.5 kB / 1.111 GB, free: 7.82 MB / 0.8731 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.0001486/0.9882, allocations: 112.3 kB / 1.111 GB, free: 7.719 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009948/0.9892, allocations: 485.5 kB / 1.111 GB, free: 7.516 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.9892, allocations: 1.188 kB / 1.111 GB, free: 7.516 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004634/0.9897, allocations: 216.1 kB / 1.112 GB, free: 7.438 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007948/0.9905, allocations: 157.5 kB / 1.112 GB, free: 7.379 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003153/0.9937, allocations: 1.361 MB / 1.113 GB, free: 6.578 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006237/0.9943, allocations: 0.8878 MB / 1.114 GB, free: 5.871 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.9945, allocations: 48.47 kB / 1.114 GB, free: 5.859 MB / 0.8731 GB Notification: Performance of SimCode: time 2e-07/0.9945, allocations: 0 / 1.114 GB, free: 5.859 MB / 0.8731 GB Notification: Performance of Templates: time 0.01995/1.014, allocations: 7.662 MB / 1.121 GB, free: 4.941 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches