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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.006349/0.00635, allocations: 101.3 kB / 15.88 MB, free: 6.305 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.001733/0.001733, allocations: 197.9 kB / 16.79 MB, free: 6.238 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.445/1.445, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.458/2.458, allocations: 390.2 MB / 0.6649 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001335, allocations: 71.89 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6634/0.6648, allocations: 140.3 MB / 0.9496 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004397/0.6692, allocations: 4.153 MB / 0.9536 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002242/0.6715, allocations: 1.279 MB / 0.9549 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004517/0.672, allocations: 21.75 kB / 0.9549 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003125/0.6723, allocations: 96.53 kB / 0.955 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003222/0.6727, allocations: 151.7 kB / 0.9551 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007352/0.6734, allocations: 376.2 kB / 0.9555 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007558/0.6742, allocations: 0.8781 MB / 0.9563 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005532/0.6748, allocations: 435.8 kB / 0.9568 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002893/0.6751, allocations: 272.6 kB / 0.957 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002737/0.6753, allocations: 300.4 kB / 0.9573 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.623e-05/0.6754, allocations: 44.44 kB / 0.9574 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.052e-05/0.6755, allocations: 40.84 kB / 0.9574 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.712e-05/0.6756, allocations: 135.5 kB / 0.9575 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002547/0.6759, allocations: 337.2 kB / 0.9578 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005597/0.6765, allocations: 0.8352 MB / 0.9587 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.6765, allocations: 0 / 0.9587 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.31e-07/0.6765, allocations: 0 / 0.9587 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.047e-05/0.6765, allocations: 4 kB / 0.9587 GB, free: 2.059 MB / 0.7169 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.0017/0.6782, allocations: 1.073 MB / 0.9597 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.6782, allocations: 9.75 kB / 0.9597 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.6784, allocations: 81.81 kB / 0.9598 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007236/0.6791, allocations: 0.5511 MB / 0.9603 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.962e-05/0.6792, allocations: 45.94 kB / 0.9604 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.6793, allocations: 63.03 kB / 0.9604 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.6804, allocations: 0.6107 MB / 0.961 GB, free: 228 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.6804, allocations: 1.219 kB / 0.961 GB, free: 228 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.292e-05/0.6805, allocations: 25.28 kB / 0.9611 GB, free: 208 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.6805, allocations: 22.11 kB / 0.9611 GB, free: 200 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009904/0.6815, allocations: 456.9 kB / 0.9615 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002872/0.6844, allocations: 2.015 MB / 0.9635 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000917/0.6853, allocations: 447.7 kB / 0.9639 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004628/0.6858, allocations: 240.8 kB / 0.9641 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.6858, allocations: 8.625 kB / 0.9641 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006282/0.6865, allocations: 261.9 kB / 0.9644 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 2.615e-06/0.6865, allocations: 1.094 kB / 0.9644 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001381/0.6879, allocations: 0.5828 MB / 0.965 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.6879, allocations: 62.08 kB / 0.965 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005203/0.6885, allocations: 443.3 kB / 0.9655 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.05e-05/0.6885, allocations: 35.83 kB / 0.9655 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000231/0.6887, allocations: 325.1 kB / 0.9658 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.6889, allocations: 157.5 kB / 0.9659 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.689, allocations: 94.81 kB / 0.966 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.6892, allocations: 371 kB / 0.9664 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004084/0.6896, allocations: 164.1 kB / 0.9665 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004563/0.6901, allocations: 254 kB / 0.9668 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008233/0.6909, allocations: 447.7 kB / 0.9672 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.6909, allocations: 0.9062 kB / 0.9672 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00115/0.6921, allocations: 0.5668 MB / 0.9678 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.946e-05/0.6921, allocations: 36.02 kB / 0.9678 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.6921, allocations: 2.094 kB / 0.9678 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.6921, allocations: 5.156 kB / 0.9678 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005175/0.6927, allocations: 116.7 kB / 0.9679 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.6927, allocations: 4.594 kB / 0.9679 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003996/0.6931, allocations: 66.75 kB / 0.968 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.863e-05/0.6931, allocations: 18.78 kB / 0.968 GB, free: 11.35 MB / 0.7325 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.0002751/0.6934, allocations: 211.4 kB / 0.9682 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.064e-05/0.6935, allocations: 57.22 kB / 0.9683 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001293/0.6936, allocations: 58.41 kB / 0.9683 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.6937, allocations: 4.688 kB / 0.9683 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.6937, allocations: 8.984 kB / 0.9683 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.6937, allocations: 3.984 kB / 0.9683 GB, free: 11.08 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/0.6957, allocations: 1.178 MB / 0.9695 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.6957, allocations: 1.062 kB / 0.9695 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004889/0.6962, allocations: 95.62 kB / 0.9696 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.186e-06/0.6962, allocations: 6.438 kB / 0.9696 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.923e-05/0.6962, allocations: 10.53 kB / 0.9696 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.6962, allocations: 6.031 kB / 0.9696 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.6963, allocations: 3.938 kB / 0.9696 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.6977, allocations: 0.7621 MB / 0.9704 GB, free: 9.719 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002254/0.6979, allocations: 171.3 kB / 0.9705 GB, free: 9.551 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.051e-05/0.698, allocations: 15.3 kB / 0.9705 GB, free: 9.539 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.6984, allocations: 20.48 kB / 0.9705 GB, free: 9.531 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.6985, allocations: 41.09 kB / 0.9706 GB, free: 9.508 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.343e-05/0.6985, allocations: 13.16 kB / 0.9706 GB, free: 9.504 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004068/0.6989, allocations: 306.6 kB / 0.9709 GB, free: 9.316 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.699, allocations: 5.438 kB / 0.9709 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005779/0.6995, allocations: 144.9 kB / 0.971 GB, free: 9.27 MB / 0.7325 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.000162/0.6997, allocations: 111.8 kB / 0.9711 GB, free: 9.172 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001077/0.7008, allocations: 484.7 kB / 0.9716 GB, free: 8.922 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.7008, allocations: 1.125 kB / 0.9716 GB, free: 8.922 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004735/0.7013, allocations: 217.9 kB / 0.9718 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008497/0.7021, allocations: 137.5 kB / 0.9719 GB, free: 8.758 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00305/0.7052, allocations: 1.651 MB / 0.9736 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004856/0.7057, allocations: 0.8889 MB / 0.9744 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001896/0.7059, allocations: 50.36 kB / 0.9745 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of SimCode: time 9.72e-07/0.7059, allocations: 0 / 0.9745 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of Templates: time 0.01483/0.7208, allocations: 7.586 MB / 0.9819 GB, free: 0.5039 MB / 0.7325 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