Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001383/0.001383, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001528/0.001528, allocations: 214.2 kB / 22.99 MB, free: 4.945 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.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.203/3.203, allocations: 0.5107 GB / 0.8166 GB, free: 17.79 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.001997/0.001997, allocations: 70.2 kB / 1.187 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3413, allocations: 181.9 MB / 1.365 GB, free: 13.55 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002817/0.3441, allocations: 1.537 MB / 1.366 GB, free: 11.99 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009412/0.3451, allocations: 491.9 kB / 1.367 GB, free: 11.51 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.037e-05/0.3451, allocations: 0 / 1.367 GB, free: 11.51 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.521e-05/0.3452, allocations: 11.86 kB / 1.367 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.096e-05/0.3453, allocations: 7.875 kB / 1.367 GB, free: 11.49 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002427/0.3455, allocations: 47.88 kB / 1.367 GB, free: 11.44 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.3457, allocations: 91.7 kB / 1.367 GB, free: 11.35 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.576e-05/0.3458, allocations: 11.98 kB / 1.367 GB, free: 11.34 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.3459, allocations: 47.84 kB / 1.367 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.985e-05/0.346, allocations: 43.77 kB / 1.367 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.346, allocations: 4 kB / 1.367 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.665e-05/0.3461, allocations: 8 kB / 1.367 GB, free: 11.24 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.514e-05/0.3461, allocations: 19.92 kB / 1.367 GB, free: 11.22 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.255e-05/0.3462, allocations: 23.88 kB / 1.367 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.3464, allocations: 79.64 kB / 1.367 GB, free: 11.12 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3464, allocations: 4 kB / 1.367 GB, free: 11.11 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3464, allocations: 0 / 1.367 GB, free: 11.11 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.3464, allocations: 0 / 1.367 GB, free: 11.11 MB / 1.061 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.0007089/0.3471, allocations: 381.4 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.3471, allocations: 12.03 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.3473, allocations: 16.88 kB / 1.367 GB, free: 10.67 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.3475, allocations: 134.3 kB / 1.367 GB, free: 10.52 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.3475, allocations: 8.375 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.3476, allocations: 4.375 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003167/0.3479, allocations: 131.6 kB / 1.368 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.3479, allocations: 4 kB / 1.368 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.3479, allocations: 3.984 kB / 1.368 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3479, allocations: 0 / 1.368 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002988/0.3482, allocations: 105.6 kB / 1.368 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005525/0.3487, allocations: 268.3 kB / 1.368 GB, free: 9.953 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.3491, allocations: 108.2 kB / 1.368 GB, free: 9.832 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001863/0.3492, allocations: 74.73 kB / 1.368 GB, free: 9.75 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.375e-05/0.3493, allocations: 7.938 kB / 1.368 GB, free: 9.742 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.3495, allocations: 125 kB / 1.368 GB, free: 9.602 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.3495, allocations: 0 / 1.368 GB, free: 9.602 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.00067/0.3502, allocations: 270.6 kB / 1.369 GB, free: 9.312 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.3503, allocations: 89.09 kB / 1.369 GB, free: 9.207 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.3504, allocations: 128.6 kB / 1.369 GB, free: 9.07 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.3505, allocations: 33.64 kB / 1.369 GB, free: 9.031 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.579e-05/0.3505, allocations: 96.09 kB / 1.369 GB, free: 8.934 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.182e-05/0.3506, allocations: 23.78 kB / 1.369 GB, free: 8.91 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/0.3506, allocations: 25.72 kB / 1.369 GB, free: 8.879 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001714/0.3508, allocations: 326.8 kB / 1.369 GB, free: 8.551 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.351, allocations: 111.3 kB / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.3512, allocations: 99.36 kB / 1.369 GB, free: 8.32 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.3515, allocations: 165.9 kB / 1.37 GB, free: 8.137 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3515, allocations: 0 / 1.37 GB, free: 8.137 MB / 1.061 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005167/0.352, allocations: 272.3 kB / 1.37 GB, free: 7.84 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.699e-05/0.3521, allocations: 67.41 kB / 1.37 GB, free: 7.762 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3521, allocations: 0 / 1.37 GB, free: 7.762 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3521, allocations: 0 / 1.37 GB, free: 7.762 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.3523, allocations: 15.98 kB / 1.37 GB, free: 7.746 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.3523, allocations: 0 / 1.37 GB, free: 7.746 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.3524, allocations: 19.97 kB / 1.37 GB, free: 7.727 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.3524, allocations: 3.938 kB / 1.37 GB, free: 7.723 MB / 1.061 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.0001365/0.3525, allocations: 152.6 kB / 1.37 GB, free: 7.559 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.498e-05/0.3526, allocations: 15.94 kB / 1.37 GB, free: 7.543 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.331e-05/0.3526, allocations: 12.72 kB / 1.37 GB, free: 7.523 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.3526, allocations: 0 / 1.37 GB, free: 7.523 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3526, allocations: 0 / 1.37 GB, free: 7.523 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3526, allocations: 3.938 kB / 1.37 GB, free: 7.52 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006055/0.3532, allocations: 401.5 kB / 1.371 GB, free: 7.078 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3532, allocations: 0 / 1.371 GB, free: 7.078 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.886e-05/0.3533, allocations: 15.92 kB / 1.371 GB, free: 7.062 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.3533, allocations: 8.281 kB / 1.371 GB, free: 7.055 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.3533, allocations: 3.984 kB / 1.371 GB, free: 7.051 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3533, allocations: 0 / 1.371 GB, free: 7.051 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3533, allocations: 3.938 kB / 1.371 GB, free: 7.047 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004893/0.3538, allocations: 302.8 kB / 1.371 GB, free: 6.723 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.745e-05/0.3538, allocations: 7.953 kB / 1.371 GB, free: 6.715 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.3538, allocations: 4 kB / 1.371 GB, free: 6.711 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.354, allocations: 19.97 kB / 1.371 GB, free: 6.691 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.3541, allocations: 23.97 kB / 1.371 GB, free: 6.668 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.3541, allocations: 4 kB / 1.371 GB, free: 6.664 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.935e-05/0.3542, allocations: 107.1 kB / 1.371 GB, free: 6.559 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3542, allocations: 0 / 1.371 GB, free: 6.559 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002408/0.3544, allocations: 19.95 kB / 1.371 GB, free: 6.539 MB / 1.061 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.0001491/0.3546, allocations: 111.2 kB / 1.371 GB, free: 6.422 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005234/0.3551, allocations: 303.8 kB / 1.371 GB, free: 6.082 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3551, allocations: 0 / 1.371 GB, free: 6.082 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.3554, allocations: 137 kB / 1.372 GB, free: 5.93 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.3556, allocations: 16.09 kB / 1.372 GB, free: 5.918 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005498/0.3562, allocations: 250 kB / 1.372 GB, free: 5.641 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.086e-05/0.3563, allocations: 87.25 kB / 1.372 GB, free: 5.535 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.3563, allocations: 11.44 kB / 1.372 GB, free: 5.523 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.3563, allocations: 0 / 1.372 GB, free: 5.523 MB / 1.061 GB Notification: Performance of Templates: time 0.003243/0.3596, allocations: 1.294 MB / 1.373 GB, free: 4.238 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.2554353158921]