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.002042/0.002042, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00197/0.00197, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.452/1.452, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.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.481/2.481, allocations: 390.2 MB / 0.6642 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 67.89 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9128/0.9141, allocations: 140.4 MB / 0.9489 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005119/0.9192, allocations: 4.155 MB / 0.953 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002154/0.9214, allocations: 1.28 MB / 0.9542 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003279/0.9218, allocations: 27.72 kB / 0.9542 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002931/0.9221, allocations: 92.5 kB / 0.9543 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002708/0.9224, allocations: 153 kB / 0.9545 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006627/0.923, allocations: 380.8 kB / 0.9548 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006544/0.9237, allocations: 0.8721 MB / 0.9557 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00054/0.9242, allocations: 433.5 kB / 0.9561 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002505/0.9245, allocations: 276.2 kB / 0.9564 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.9247, allocations: 302.6 kB / 0.9567 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.575e-05/0.9248, allocations: 40.53 kB / 0.9567 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.565e-05/0.9249, allocations: 45.66 kB / 0.9567 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.746e-05/0.925, allocations: 134.3 kB / 0.9569 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002347/0.9253, allocations: 340.4 kB / 0.9572 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006/0.9259, allocations: 0.9928 MB / 0.9582 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.9259, allocations: 1.562 kB / 0.9582 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.71e-07/0.9259, allocations: 0 / 0.9582 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.458e-06/0.9259, allocations: 0 / 0.9582 GB, free: 1.902 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.001568/0.9275, allocations: 1.079 MB / 0.9592 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.9275, allocations: 9.625 kB / 0.9592 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.9277, allocations: 81.25 kB / 0.9593 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006999/0.9284, allocations: 0.5511 MB / 0.9598 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/0.9284, allocations: 45.41 kB / 0.9599 GB, free: 488 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.252e-05/0.9285, allocations: 63.09 kB / 0.9599 GB, free: 464 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.9295, allocations: 0.603 MB / 0.9605 GB, free: 68 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.9296, allocations: 0.75 kB / 0.9605 GB, free: 68 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.158e-05/0.9296, allocations: 25.53 kB / 0.9606 GB, free: 48 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.187e-05/0.9297, allocations: 18.31 kB / 0.9606 GB, free: 44 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.9308, allocations: 457.7 kB / 0.961 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003159/0.9339, allocations: 2.014 MB / 0.963 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009336/0.9349, allocations: 450.1 kB / 0.9634 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004543/0.9353, allocations: 237.5 kB / 0.9636 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.012e-05/0.9354, allocations: 5.156 kB / 0.9636 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006449/0.936, allocations: 265.7 kB / 0.9639 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 3.136e-06/0.9361, allocations: 0 / 0.9639 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001383/0.9374, allocations: 0.5795 MB / 0.9645 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.9375, allocations: 69.31 kB / 0.9645 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005544/0.9381, allocations: 439.6 kB / 0.9649 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.9381, allocations: 40.38 kB / 0.965 GB, free: 13.01 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/0.9383, allocations: 325.3 kB / 0.9653 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.9385, allocations: 165.2 kB / 0.9654 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.9386, allocations: 95.22 kB / 0.9655 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001697/0.9388, allocations: 362.8 kB / 0.9659 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004009/0.9392, allocations: 172.4 kB / 0.966 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004565/0.9397, allocations: 249.6 kB / 0.9663 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008431/0.9405, allocations: 451.6 kB / 0.9667 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.9406, allocations: 1.156 kB / 0.9667 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001204/0.9418, allocations: 0.5578 MB / 0.9673 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.745e-05/0.9418, allocations: 37.64 kB / 0.9673 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.9419, allocations: 5.156 kB / 0.9673 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/0.9419, allocations: 5.25 kB / 0.9673 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000549/0.9424, allocations: 113.5 kB / 0.9674 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.795e-05/0.9425, allocations: 11.97 kB / 0.9674 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/0.9429, allocations: 62.47 kB / 0.9675 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.205e-05/0.9429, allocations: 21.92 kB / 0.9675 GB, free: 11.19 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.000379/0.9433, allocations: 211.2 kB / 0.9677 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.9434, allocations: 58.38 kB / 0.9678 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001503/0.9436, allocations: 65.8 kB / 0.9678 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.347e-06/0.9436, allocations: 5.375 kB / 0.9678 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-05/0.9436, allocations: 1.312 kB / 0.9678 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.9437, allocations: 0 / 0.9678 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.9457, allocations: 1.182 MB / 0.969 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.9457, allocations: 0 / 0.969 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004727/0.9462, allocations: 91.47 kB / 0.9691 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.9462, allocations: 2.375 kB / 0.9691 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.9462, allocations: 11.75 kB / 0.9691 GB, free: 10.03 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.9463, allocations: 1.281 kB / 0.9691 GB, free: 10.03 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.9463, allocations: 4 kB / 0.9691 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.9476, allocations: 0.7624 MB / 0.9698 GB, free: 9.566 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.9478, allocations: 171 kB / 0.97 GB, free: 9.398 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.83e-05/0.9479, allocations: 11.69 kB / 0.97 GB, free: 9.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002996/0.9482, allocations: 32.06 kB / 0.97 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.551e-05/0.9483, allocations: 37.33 kB / 0.9701 GB, free: 9.352 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.741e-05/0.9484, allocations: 12.09 kB / 0.9701 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003479/0.9487, allocations: 312.2 kB / 0.9704 GB, free: 9.156 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9487, allocations: 0 / 0.9704 GB, free: 9.156 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004809/0.9492, allocations: 145.6 kB / 0.9705 GB, free: 9.113 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.0001474/0.9494, allocations: 116.3 kB / 0.9706 GB, free: 9.012 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009179/0.9503, allocations: 484.9 kB / 0.9711 GB, free: 8.762 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.9503, allocations: 0 / 0.9711 GB, free: 8.762 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004264/0.9507, allocations: 215.5 kB / 0.9713 GB, free: 8.668 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007843/0.9515, allocations: 151.9 kB / 0.9715 GB, free: 8.59 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.9543, allocations: 1.602 MB / 0.973 GB, free: 7.445 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/0.9548, allocations: 0.886 MB / 0.9739 GB, free: 6.664 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002858/0.9551, allocations: 67.89 kB / 0.9739 GB, free: 6.625 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.9553, allocations: 42.42 kB / 0.974 GB, free: 6.613 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.9553, allocations: 4 kB / 0.974 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of Templates: time 0.01114/0.9664, allocations: 5.566 MB / 0.9794 GB, free: 2.348 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches