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.001925/0.001925, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001966/0.001966, allocations: 223.6 kB / 23.01 MB, free: 4.609 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.538/1.538, allocations: 230.6 MB / 256.8 MB, free: 8.016 MB / 206.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 3.19/3.19, allocations: 0.49 GB / 0.7958 GB, free: 33.4 MB / 0.6231 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.002269/0.002269, allocations: 69.16 kB / 1.155 GB, free: 25.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3538, allocations: 176.1 MB / 1.327 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002981/0.3568, allocations: 1.554 MB / 1.329 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.3579, allocations: 0.5337 MB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.402e-05/0.3579, allocations: 0 / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.358, allocations: 7.875 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.773e-05/0.3581, allocations: 15.86 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.3584, allocations: 43.89 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.3585, allocations: 83.77 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.3586, allocations: 19.97 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.3588, allocations: 51.72 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.009e-05/0.3589, allocations: 35.84 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.045e-05/0.3589, allocations: 8 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.36e-05/0.359, allocations: 8 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.92e-05/0.359, allocations: 23.91 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.552e-05/0.3591, allocations: 27.86 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.3593, allocations: 87.59 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3593, allocations: 0 / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3593, allocations: 0 / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.3593, allocations: 3.984 kB / 1.33 GB, free: 14.84 MB / 1.029 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.000717/0.36, allocations: 369.4 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.36, allocations: 8.031 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.3602, allocations: 20.88 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002509/0.3604, allocations: 138.4 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.3605, allocations: 4.375 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.174e-05/0.3605, allocations: 16.28 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.3608, allocations: 97.94 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.3608, allocations: 0 / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.3608, allocations: 4 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.3608, allocations: 4 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002712/0.3611, allocations: 71.94 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005937/0.3617, allocations: 303.7 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.362, allocations: 78.52 kB / 1.331 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.3621, allocations: 56.94 kB / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.3621, allocations: 0 / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000271/0.3624, allocations: 111.3 kB / 1.331 GB, free: 13.44 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3624, allocations: 0 / 1.331 GB, free: 13.44 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0006405/0.363, allocations: 211.2 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.3631, allocations: 81.11 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.3632, allocations: 137.8 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.3633, allocations: 25.7 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.1e-05/0.3633, allocations: 96.12 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.3634, allocations: 23.84 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.5e-05/0.3634, allocations: 25.7 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3636, allocations: 326.7 kB / 1.332 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.3637, allocations: 55.89 kB / 1.332 GB, free: 12.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.3639, allocations: 47.95 kB / 1.332 GB, free: 12.37 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.3642, allocations: 165.9 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3642, allocations: 4 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004309/0.3646, allocations: 208.9 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.81e-05/0.3647, allocations: 64.8 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3647, allocations: 0 / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.3647, allocations: 0 / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.3649, allocations: 15.98 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.3649, allocations: 0 / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.365, allocations: 31.88 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.365, allocations: 3.938 kB / 1.332 GB, free: 11.83 MB / 1.029 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 0.0001244/0.3651, allocations: 152 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.965e-05/0.3651, allocations: 7.953 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.355e-05/0.3652, allocations: 12.72 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3652, allocations: 0 / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3652, allocations: 3.984 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3652, allocations: 0 / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005929/0.3658, allocations: 411.2 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3658, allocations: 0 / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.328e-05/0.3659, allocations: 12.27 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.3659, allocations: 0 / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.3659, allocations: 4 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.3659, allocations: 11.81 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3659, allocations: 0 / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004524/0.3664, allocations: 269.1 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.624e-05/0.3664, allocations: 7.953 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.3664, allocations: 3.984 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.3666, allocations: 19.92 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3667, allocations: 23.97 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.3667, allocations: 11.94 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.079e-05/0.3667, allocations: 100.7 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3667, allocations: 4 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002369/0.367, allocations: 16 kB / 1.333 GB, free: 10.68 MB / 1.029 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 0.0001273/0.3671, allocations: 99.23 kB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000475/0.3676, allocations: 222.7 kB / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3676, allocations: 4 kB / 1.334 GB, free: 10.33 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.3678, allocations: 107.3 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002773/0.3681, allocations: 8.625 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005718/0.3687, allocations: 236.8 kB / 1.334 GB, free: 9.945 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.369, allocations: 0.7039 MB / 1.335 GB, free: 9.215 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.28e-05/0.3691, allocations: 19.42 kB / 1.335 GB, free: 9.195 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.3691, allocations: 0 / 1.335 GB, free: 9.195 MB / 1.029 GB Notification: Performance of Templates: time 0.003231/0.3723, allocations: 1.282 MB / 1.336 GB, free: 7.922 MB / 1.029 GB " [Timeout remaining time 300] 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 -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: 11.509470827993937]