Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 79.73 kB / 19.76 MB, free: 1.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001818/0.001818, allocations: 163.5 kB / 23.01 MB, free: 4.594 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.459/1.459, allocations: 177.2 MB / 203.4 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.819/2.819, allocations: 377.9 MB / 0.6228 GB, free: 12.63 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002253/0.002253, allocations: 67.89 kB / 0.9819 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8358/0.838, allocations: 176.1 MB / 1.154 GB, free: 33.34 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002101/0.8401, allocations: 1.541 MB / 1.155 GB, free: 32.28 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0006977/0.8408, allocations: 484.6 kB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.671e-05/0.8409, allocations: 2.75 kB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 8.094e-05/0.841, allocations: 7.875 kB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 4.337e-05/0.841, allocations: 22 kB / 1.156 GB, free: 31.94 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002098/0.8412, allocations: 41.7 kB / 1.156 GB, free: 31.92 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001318/0.8414, allocations: 85.52 kB / 1.156 GB, free: 31.88 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 8.872e-05/0.8415, allocations: 16.64 kB / 1.156 GB, free: 31.87 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.8416, allocations: 46.11 kB / 1.156 GB, free: 31.85 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 7.07e-05/0.8417, allocations: 35.86 kB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.06e-05/0.8417, allocations: 5.25 kB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 3.855e-05/0.8417, allocations: 8.281 kB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.776e-05/0.8418, allocations: 21.95 kB / 1.156 GB, free: 31.82 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 4.648e-05/0.8418, allocations: 31.91 kB / 1.156 GB, free: 31.8 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.8419, allocations: 73.75 kB / 1.156 GB, free: 31.77 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.8419, allocations: 0 / 1.156 GB, free: 31.77 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.292e-06/0.8419, allocations: 0 / 1.156 GB, free: 31.77 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.8419, allocations: 2.594 kB / 1.156 GB, free: 31.77 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005332/0.8425, allocations: 377.8 kB / 1.157 GB, free: 31.42 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.893e-05/0.8425, allocations: 10.94 kB / 1.157 GB, free: 31.42 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.8426, allocations: 18.48 kB / 1.157 GB, free: 31.41 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.8428, allocations: 141.1 kB / 1.157 GB, free: 31.27 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.8428, allocations: 2.812 kB / 1.157 GB, free: 31.27 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.455e-05/0.8428, allocations: 5.562 kB / 1.157 GB, free: 31.27 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002518/0.8431, allocations: 130.5 kB / 1.157 GB, free: 31.18 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.8431, allocations: 0 / 1.157 GB, free: 31.18 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.8431, allocations: 0 / 1.157 GB, free: 31.18 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.8431, allocations: 3.125 kB / 1.157 GB, free: 31.18 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002646/0.8434, allocations: 114.7 kB / 1.157 GB, free: 31.12 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004162/0.8438, allocations: 262.4 kB / 1.157 GB, free: 30.89 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002714/0.8441, allocations: 110 kB / 1.157 GB, free: 30.82 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.8442, allocations: 79.33 kB / 1.157 GB, free: 30.78 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.141e-05/0.8442, allocations: 3.938 kB / 1.157 GB, free: 30.77 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.8445, allocations: 133.2 kB / 1.158 GB, free: 30.68 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.8445, allocations: 0 / 1.158 GB, free: 30.68 MB / 1.076 GB Notification: Performance of matching and sorting (n=7): time 0.0005813/0.845, allocations: 259.8 kB / 1.158 GB, free: 30.52 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/0.8451, allocations: 87.09 kB / 1.158 GB, free: 30.43 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.923e-05/0.8451, allocations: 132.8 kB / 1.158 GB, free: 30.31 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.8452, allocations: 36.2 kB / 1.158 GB, free: 30.27 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.616e-05/0.8452, allocations: 102.2 kB / 1.158 GB, free: 30.18 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.8452, allocations: 19.84 kB / 1.158 GB, free: 30.16 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.8453, allocations: 29.53 kB / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.304e-05/0.8453, allocations: 325.1 kB / 1.159 GB, free: 29.82 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.8455, allocations: 105.5 kB / 1.159 GB, free: 29.74 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.8456, allocations: 100.2 kB / 1.159 GB, free: 29.67 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.8459, allocations: 168.7 kB / 1.159 GB, free: 29.55 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.8459, allocations: 3.188 kB / 1.159 GB, free: 29.55 MB / 1.076 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003834/0.8463, allocations: 272.4 kB / 1.159 GB, free: 29.35 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.8463, allocations: 61.28 kB / 1.159 GB, free: 29.29 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-06/0.8463, allocations: 2.938 kB / 1.159 GB, free: 29.29 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.8463, allocations: 2.953 kB / 1.159 GB, free: 29.29 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.8464, allocations: 12.27 kB / 1.159 GB, free: 29.29 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.8465, allocations: 7.125 kB / 1.159 GB, free: 29.28 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.8466, allocations: 18.69 kB / 1.159 GB, free: 29.28 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.8466, allocations: 9.094 kB / 1.159 GB, free: 29.27 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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 7.25e-05/0.8467, allocations: 152.9 kB / 1.159 GB, free: 29.12 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.792e-05/0.8467, allocations: 9.234 kB / 1.159 GB, free: 29.11 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.071e-05/0.8467, allocations: 11.38 kB / 1.159 GB, free: 29.1 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.8467, allocations: 0 / 1.159 GB, free: 29.1 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.8467, allocations: 0 / 1.159 GB, free: 29.1 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.8467, allocations: 2.594 kB / 1.159 GB, free: 29.1 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004415/0.8472, allocations: 408.1 kB / 1.16 GB, free: 28.77 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.8472, allocations: 0 / 1.16 GB, free: 28.77 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.223e-05/0.8472, allocations: 15.52 kB / 1.16 GB, free: 28.76 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.8472, allocations: 9.938 kB / 1.16 GB, free: 28.76 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.8473, allocations: 4 kB / 1.16 GB, free: 28.75 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.8473, allocations: 0 / 1.16 GB, free: 28.75 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.8473, allocations: 0 / 1.16 GB, free: 28.75 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003623/0.8476, allocations: 302.6 kB / 1.16 GB, free: 28.53 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.316e-05/0.8476, allocations: 10.02 kB / 1.16 GB, free: 28.52 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/0.8477, allocations: 0 / 1.16 GB, free: 28.52 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.8478, allocations: 16.12 kB / 1.16 GB, free: 28.52 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.693e-05/0.8479, allocations: 22.58 kB / 1.16 GB, free: 28.52 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.8479, allocations: 2.812 kB / 1.16 GB, free: 28.52 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.044e-05/0.8479, allocations: 104.9 kB / 1.16 GB, free: 28.43 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.8479, allocations: 0 / 1.16 GB, free: 28.43 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002414/0.8482, allocations: 17.06 kB / 1.16 GB, free: 28.43 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 7.964e-05/0.8483, allocations: 112.8 kB / 1.16 GB, free: 28.33 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003964/0.8487, allocations: 299.6 kB / 1.161 GB, free: 28.09 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.8487, allocations: 0 / 1.161 GB, free: 28.09 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.8488, allocations: 134.3 kB / 1.161 GB, free: 27.98 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.8491, allocations: 30.66 kB / 1.161 GB, free: 27.97 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004243/0.8495, allocations: 229.1 kB / 1.161 GB, free: 27.79 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.163e-05/0.8496, allocations: 87.25 kB / 1.161 GB, free: 27.71 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 4.91e-05/0.8496, allocations: 9.297 kB / 1.161 GB, free: 27.71 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.658e-05/0.8497, allocations: 11.53 kB / 1.161 GB, free: 27.71 MB / 1.076 GB Notification: Performance of SimCode: time 3.51e-07/0.8497, allocations: 4 kB / 1.161 GB, free: 27.7 MB / 1.076 GB Notification: Performance of Templates: time 0.003754/0.8534, allocations: 1.402 MB / 1.163 GB, free: 27.55 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.588708530995063]