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.002371/0.002371, allocations: 79.7 kB / 20.23 MB, free: 4.191 MB / 18.57 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.002793/0.002793, allocations: 157.3 kB / 23.55 MB, free: 0.8789 MB / 18.57 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.536/1.536, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.967/2.967, allocations: 377.8 MB / 0.6232 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 0.8108 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.319e-05/2.459e-05, allocations: 3.219 kB / 0.8108 GB, free: 2.102 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002774/0.002798, allocations: 1.563 MB / 0.8123 GB, free: 0.5508 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0009887/0.003787, allocations: 0.4896 MB / 0.8128 GB, free: 60 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.319e-05/0.00384, allocations: 0 / 0.8128 GB, free: 60 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.003943, allocations: 7.875 kB / 0.8128 GB, free: 52 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 5.604e-05/0.003999, allocations: 21.2 kB / 0.8128 GB, free: 32 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.004267, allocations: 43.94 kB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.004553, allocations: 92.27 kB / 0.813 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 8.786e-05/0.004641, allocations: 11.98 kB / 0.813 GB, free: 15.89 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.004834, allocations: 56.78 kB / 0.813 GB, free: 15.83 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 8.809e-05/0.004922, allocations: 27.97 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.004947, allocations: 8.594 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.557e-05/0.004993, allocations: 12.59 kB / 0.8131 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.065e-05/0.005034, allocations: 11.97 kB / 0.8131 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.701e-05/0.005091, allocations: 33.11 kB / 0.8131 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.005267, allocations: 83.7 kB / 0.8132 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.005272, allocations: 3.984 kB / 0.8132 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.92e-07/0.005273, allocations: 2.219 kB / 0.8132 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.858e-06/0.005277, allocations: 0 / 0.8132 GB, free: 15.66 MB / 0.7761 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.0007309/0.006008, allocations: 471.3 kB / 0.8137 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.006051, allocations: 12.03 kB / 0.8137 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.00621, allocations: 20.88 kB / 0.8137 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002015/0.006411, allocations: 129.2 kB / 0.8138 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.006428, allocations: 9.906 kB / 0.8138 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.006451, allocations: 12.3 kB / 0.8138 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.006719, allocations: 111.9 kB / 0.8139 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.006728, allocations: 192 / 0.8139 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.006739, allocations: 5.406 kB / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.006746, allocations: 3.938 kB / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/0.006999, allocations: 82.3 kB / 0.814 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.007553, allocations: 320.1 kB / 0.8143 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.007845, allocations: 105.8 kB / 0.8144 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.008009, allocations: 78.27 kB / 0.8145 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.008028, allocations: 0 / 0.8145 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.008306, allocations: 135.6 kB / 0.8146 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.008307, allocations: 0 / 0.8146 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.0006229/0.00893, allocations: 240.6 kB / 0.8149 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/0.008997, allocations: 81.11 kB / 0.8149 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.009169, allocations: 199 kB / 0.8151 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.009193, allocations: 26.98 kB / 0.8152 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.009298, allocations: 154.8 kB / 0.8153 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.009329, allocations: 19.86 kB / 0.8153 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.238e-05/0.009401, allocations: 35.36 kB / 0.8154 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002502/0.009651, allocations: 0.4968 MB / 0.8159 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001939/0.009845, allocations: 96.11 kB / 0.8159 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.01001, allocations: 91.88 kB / 0.816 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.0103, allocations: 154.2 kB / 0.8162 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.0103, allocations: 0 / 0.8162 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000475/0.01078, allocations: 265 kB / 0.8164 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.586e-05/0.01083, allocations: 55.41 kB / 0.8165 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.01084, allocations: 1.75 kB / 0.8165 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.01085, allocations: 4 kB / 0.8165 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.01096, allocations: 11.98 kB / 0.8165 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.01097, allocations: 4.312 kB / 0.8165 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.01108, allocations: 20.8 kB / 0.8165 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.01109, allocations: 0 / 0.8165 GB, free: 11.93 MB / 0.7761 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.0001578/0.01125, allocations: 201.7 kB / 0.8167 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.242e-05/0.01128, allocations: 15.89 kB / 0.8167 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.711e-05/0.01132, allocations: 12.78 kB / 0.8167 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.01132, allocations: 4 kB / 0.8167 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.01133, allocations: 0 / 0.8167 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.01133, allocations: 0 / 0.8167 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006026/0.01193, allocations: 440.8 kB / 0.8172 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.01194, allocations: 7.938 kB / 0.8172 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.662e-05/0.01201, allocations: 16.45 kB / 0.8172 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.01202, allocations: 1.844 kB / 0.8172 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.01203, allocations: 4 kB / 0.8172 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.01203, allocations: 4 kB / 0.8172 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01203, allocations: 0 / 0.8172 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004767/0.01251, allocations: 336.3 kB / 0.8175 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.697e-05/0.01254, allocations: 7.953 kB / 0.8175 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.01256, allocations: 0 / 0.8175 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.01269, allocations: 17.42 kB / 0.8175 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.01279, allocations: 19.97 kB / 0.8176 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.01281, allocations: 4 kB / 0.8176 GB, free: 10.76 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001041/0.01291, allocations: 146.5 kB / 0.8177 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01291, allocations: 0 / 0.8177 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002346/0.01314, allocations: 27.95 kB / 0.8177 GB, free: 10.59 MB / 0.7761 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.000126/0.01327, allocations: 105.4 kB / 0.8178 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0005145/0.01378, allocations: 299.5 kB / 0.8181 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.01379, allocations: 0 / 0.8181 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002281/0.01401, allocations: 141.2 kB / 0.8183 GB, free: 9.984 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.01429, allocations: 18 kB / 0.8183 GB, free: 9.969 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005424/0.01483, allocations: 232.1 kB / 0.8185 GB, free: 9.707 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.716e-05/0.01492, allocations: 78.47 kB / 0.8186 GB, free: 9.613 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 6.135e-05/0.01498, allocations: 11.98 kB / 0.8186 GB, free: 9.602 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.171e-05/0.01503, allocations: 16.5 kB / 0.8186 GB, free: 9.582 MB / 0.7761 GB Notification: Performance of SimCode: time 5.41e-07/0.01503, allocations: 0 / 0.8186 GB, free: 9.582 MB / 0.7761 GB Notification: Performance of Templates: time 0.005207/0.02024, allocations: 1.406 MB / 0.82 GB, free: 8.23 MB / 0.7761 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 240] 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/jenkins/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: 7.87762014393229]