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.001866/0.001866, allocations: 102 kB / 16.45 MB, free: 6.449 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.001861/0.001861, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.601/1.601, allocations: 230.5 MB / 252.8 MB, free: 9.148 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.205/3.205, allocations: 0.4899 GB / 0.7915 GB, free: 33.14 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.00214/0.00214, allocations: 71.19 kB / 1.149 GB, free: 26.12 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3577, allocations: 176.1 MB / 1.321 GB, free: 2.82 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.0029/0.3606, allocations: 1.548 MB / 1.323 GB, free: 1.262 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009617/0.3615, allocations: 0.5103 MB / 1.323 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.993e-05/0.3616, allocations: 4 kB / 1.323 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 9.935e-05/0.3617, allocations: 11.86 kB / 1.323 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.619e-05/0.3617, allocations: 19.86 kB / 1.323 GB, free: 0.7109 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.362, allocations: 39.89 kB / 1.323 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001754/0.3622, allocations: 87.77 kB / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3623, allocations: 15.97 kB / 1.323 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.3624, allocations: 43.84 kB / 1.323 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.982e-05/0.3625, allocations: 39.84 kB / 1.324 GB, free: 500 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.3625, allocations: 7.938 kB / 1.324 GB, free: 492 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.373e-05/0.3626, allocations: 8 kB / 1.324 GB, free: 484 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.219e-05/0.3626, allocations: 23.91 kB / 1.324 GB, free: 460 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.477e-05/0.3627, allocations: 31.86 kB / 1.324 GB, free: 428 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001575/0.3629, allocations: 83.58 kB / 1.324 GB, free: 344 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3629, allocations: 0 / 1.324 GB, free: 344 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3629, allocations: 0 / 1.324 GB, free: 344 kB / 1.014 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.3629, allocations: 4 kB / 1.324 GB, free: 340 kB / 1.014 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.0007702/0.3636, allocations: 450.5 kB / 1.324 GB, free: 15.83 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.3637, allocations: 11.98 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001647/0.3638, allocations: 20.89 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.3641, allocations: 192.2 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.3641, allocations: 4.375 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.937e-05/0.3641, allocations: 8.375 kB / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003214/0.3644, allocations: 97.88 kB / 1.324 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.3644, allocations: 0 / 1.324 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.3645, allocations: 0 / 1.324 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3645, allocations: 4 kB / 1.324 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.3648, allocations: 75.92 kB / 1.324 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006039/0.3654, allocations: 336.6 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003404/0.3657, allocations: 82.52 kB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.3659, allocations: 52.94 kB / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.3659, allocations: 3.984 kB / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003195/0.3662, allocations: 99.38 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.3662, allocations: 4 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.000706/0.3669, allocations: 215.2 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.367, allocations: 81.11 kB / 1.325 GB, free: 14.42 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.3671, allocations: 129.8 kB / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.3672, allocations: 33.7 kB / 1.325 GB, free: 14.25 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.445e-05/0.3672, allocations: 96.03 kB / 1.326 GB, free: 14.15 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.939e-05/0.3673, allocations: 23.89 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.584e-05/0.3673, allocations: 29.7 kB / 1.326 GB, free: 14.09 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3675, allocations: 318.8 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/0.3677, allocations: 51.89 kB / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.3678, allocations: 47.95 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000374/0.3682, allocations: 173.9 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3682, allocations: 4 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004767/0.3687, allocations: 212.9 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.586e-05/0.3687, allocations: 63.39 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3687, allocations: 0 / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.3688, allocations: 0 / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.3689, allocations: 19.98 kB / 1.326 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.3689, allocations: 4 kB / 1.326 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.369, allocations: 23.88 kB / 1.326 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.369, allocations: 3.938 kB / 1.326 GB, free: 13.12 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.0001275/0.3692, allocations: 155.5 kB / 1.327 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.272e-05/0.3692, allocations: 8.234 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.09e-05/0.3692, allocations: 12.72 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.3692, allocations: 0 / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3692, allocations: 7.938 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.3693, allocations: 3.984 kB / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006496/0.3699, allocations: 428.2 kB / 1.327 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3699, allocations: 0 / 1.327 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.257e-05/0.37, allocations: 11.98 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.37, allocations: 0 / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.37, allocations: 0 / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.37, allocations: 11.94 kB / 1.327 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.37, allocations: 3.938 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000483/0.3705, allocations: 269.1 kB / 1.327 GB, free: 12.13 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.062e-05/0.3706, allocations: 81.06 kB / 1.327 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.3706, allocations: 7.984 kB / 1.327 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.3707, allocations: 19.92 kB / 1.327 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.3708, allocations: 23.97 kB / 1.327 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.3709, allocations: 4 kB / 1.327 GB, free: 11.98 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.731e-05/0.3709, allocations: 105 kB / 1.328 GB, free: 11.88 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3709, allocations: 3.938 kB / 1.328 GB, free: 11.87 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002496/0.3712, allocations: 16 kB / 1.328 GB, free: 11.86 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.0001364/0.3713, allocations: 111.6 kB / 1.328 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005264/0.3718, allocations: 218.7 kB / 1.328 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3718, allocations: 0 / 1.328 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002338/0.3721, allocations: 111.3 kB / 1.328 GB, free: 11.38 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.3724, allocations: 11.98 kB / 1.328 GB, free: 11.37 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005509/0.3729, allocations: 214.9 kB / 1.328 GB, free: 11.13 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.3733, allocations: 0.6961 MB / 1.329 GB, free: 10.41 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.873e-05/0.3733, allocations: 11.98 kB / 1.329 GB, free: 10.39 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.437e-05/0.3734, allocations: 11.44 kB / 1.329 GB, free: 10.38 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.3734, allocations: 0 / 1.329 GB, free: 10.38 MB / 1.029 GB Notification: Performance of Templates: time 0.004408/0.3778, allocations: 1.357 MB / 1.33 GB, free: 9.039 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/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: 9.128631987143308]