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.001354/0.001354, allocations: 108.3 kB / 19.7 MB, free: 2.16 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.001462/0.001462, allocations: 215.9 kB / 22.99 MB, free: 4.988 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.423/3.423, allocations: 0.49 GB / 0.7959 GB, free: 35.31 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.002684/0.002684, allocations: 75.67 kB / 1.155 GB, free: 25.27 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4087/0.4114, allocations: 176.1 MB / 1.327 GB, free: 1.031 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003278/0.4147, allocations: 1.536 MB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001041/0.4157, allocations: 498.7 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.007e-05/0.4158, allocations: 0 / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.4159, allocations: 7.875 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.517e-05/0.416, allocations: 23.84 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.4163, allocations: 39.91 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001742/0.4164, allocations: 83.77 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.4165, allocations: 23.91 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001735/0.4167, allocations: 39.91 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.652e-05/0.4168, allocations: 39.84 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.241e-05/0.4168, allocations: 4 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.681e-05/0.4169, allocations: 12 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.124e-05/0.4169, allocations: 19.84 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.015e-05/0.417, allocations: 31.86 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001774/0.4172, allocations: 83.58 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.4172, allocations: 4 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.783e-06/0.4172, allocations: 4 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.4172, allocations: 0 / 1.329 GB, free: 14.59 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.0007229/0.4179, allocations: 369.4 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.4179, allocations: 8.031 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/0.4181, allocations: 16.88 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.4184, allocations: 142.4 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.4184, allocations: 4.375 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.4184, allocations: 4.375 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.4187, allocations: 131.6 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.4187, allocations: 0 / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.4187, allocations: 0 / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.4187, allocations: 4 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000305/0.4191, allocations: 97.62 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005608/0.4196, allocations: 272.3 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.4199, allocations: 108.2 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001908/0.4201, allocations: 78.64 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.4201, allocations: 0 / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000319/0.4205, allocations: 137.1 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.4205, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0006965/0.4212, allocations: 270.6 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.4212, allocations: 81.11 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.4214, allocations: 136.6 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.4214, allocations: 33.7 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.796e-05/0.4215, allocations: 92.08 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.434e-05/0.4215, allocations: 19.84 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.631e-05/0.4216, allocations: 29.7 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001678/0.4217, allocations: 322.8 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.422, allocations: 103.4 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.4222, allocations: 111.3 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003532/0.4225, allocations: 169.8 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4225, allocations: 0 / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005061/0.423, allocations: 276.3 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.155e-05/0.4231, allocations: 55.41 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.4231, allocations: 0 / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.4231, allocations: 4 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.4233, allocations: 19.97 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.4233, allocations: 0 / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.4234, allocations: 19.94 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.4234, allocations: 4 kB / 1.332 GB, free: 11.21 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.0001418/0.4235, allocations: 160 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.123e-05/0.4236, allocations: 12.17 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.135e-05/0.4236, allocations: 12.72 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.4236, allocations: 4 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.4236, allocations: 3.938 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4236, allocations: 0 / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000611/0.4242, allocations: 389.5 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4242, allocations: 4 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.061e-05/0.4243, allocations: 23.97 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.4243, allocations: 0 / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.4243, allocations: 0 / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4243, allocations: 0 / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.4243, allocations: 4 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005903/0.4249, allocations: 302.7 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.921e-05/0.425, allocations: 7.953 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.425, allocations: 7.984 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.4251, allocations: 15.98 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.4252, allocations: 27.97 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.4252, allocations: 0 / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001172/0.4254, allocations: 109 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4254, allocations: 4 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002395/0.4256, allocations: 16 kB / 1.333 GB, free: 10.03 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.0001416/0.4257, allocations: 103.2 kB / 1.334 GB, free: 9.918 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007012/0.4264, allocations: 307.8 kB / 1.334 GB, free: 9.574 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4265, allocations: 0 / 1.334 GB, free: 9.574 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002347/0.4267, allocations: 133.5 kB / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.427, allocations: 19.92 kB / 1.334 GB, free: 9.41 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005838/0.4276, allocations: 237 kB / 1.334 GB, free: 9.148 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.4277, allocations: 87.27 kB / 1.334 GB, free: 9.043 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.873e-05/0.4277, allocations: 11.98 kB / 1.334 GB, free: 9.031 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.203e-05/0.4278, allocations: 11.44 kB / 1.334 GB, free: 9.02 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.4278, allocations: 0 / 1.334 GB, free: 9.02 MB / 1.029 GB Notification: Performance of Templates: time 0.00454/0.4323, allocations: 1.467 MB / 1.336 GB, free: 7.578 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 -s cvode -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: 9.498297056998126]