Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001957/0.001957, allocations: 193.2 kB / 16.14 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.44/2.44, allocations: 390.2 MB / 0.6642 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001769, allocations: 63.91 kB / 0.8119 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8228/0.8246, allocations: 140.3 MB / 0.9489 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002625/0.8273, allocations: 1.587 MB / 0.9505 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006847/0.828, allocations: 448.9 kB / 0.9509 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.725e-05/0.8281, allocations: 5.375 kB / 0.9509 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.8282, allocations: 3.938 kB / 0.9509 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.169e-05/0.8283, allocations: 18.59 kB / 0.9509 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001883/0.8285, allocations: 24.11 kB / 0.9509 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.558e-05/0.8286, allocations: 80.7 kB / 0.951 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.8287, allocations: 24.41 kB / 0.951 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.8288, allocations: 35.03 kB / 0.9511 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.344e-05/0.8289, allocations: 33.47 kB / 0.9511 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.386e-05/0.8289, allocations: 4.125 kB / 0.9511 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.815e-05/0.8289, allocations: 4.125 kB / 0.9511 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.632e-05/0.829, allocations: 14.67 kB / 0.9511 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.81e-05/0.8291, allocations: 33.47 kB / 0.9512 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.8292, allocations: 65.75 kB / 0.9512 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.8292, allocations: 0 / 0.9512 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.783e-06/0.8292, allocations: 4 kB / 0.9512 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.8292, allocations: 3.938 kB / 0.9512 GB, free: 7.301 MB / 0.7169 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.0005897/0.8298, allocations: 446.7 kB / 0.9517 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.8298, allocations: 9.562 kB / 0.9517 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.966e-05/0.8299, allocations: 17.7 kB / 0.9517 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.83, allocations: 183.4 kB / 0.9519 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.8301, allocations: 6.656 kB / 0.9519 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.822e-05/0.8301, allocations: 4.438 kB / 0.9519 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002541/0.8303, allocations: 107.1 kB / 0.952 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.8304, allocations: 1.312 kB / 0.952 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.8304, allocations: 3.984 kB / 0.952 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.8304, allocations: 1.5 kB / 0.952 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000261/0.8307, allocations: 69.06 kB / 0.9521 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004997/0.8312, allocations: 337.6 kB / 0.9524 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002668/0.8314, allocations: 84.39 kB / 0.9525 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.8316, allocations: 55.91 kB / 0.9525 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.8316, allocations: 5.312 kB / 0.9525 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.8319, allocations: 96.28 kB / 0.9526 GB, free: 6 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.8319, allocations: 0 / 0.9526 GB, free: 6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005657/0.8325, allocations: 215.9 kB / 0.9528 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.8326, allocations: 83.58 kB / 0.9529 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.661e-05/0.8327, allocations: 131.6 kB / 0.953 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.8327, allocations: 26.86 kB / 0.953 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.453e-05/0.8327, allocations: 99.72 kB / 0.9531 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.8327, allocations: 19.47 kB / 0.9532 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/0.8328, allocations: 25.89 kB / 0.9532 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.495e-05/0.8329, allocations: 321.8 kB / 0.9535 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.833, allocations: 54.48 kB / 0.9535 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.8332, allocations: 47.98 kB / 0.9536 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002998/0.8335, allocations: 171.6 kB / 0.9537 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.8335, allocations: 0 / 0.9537 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004334/0.8339, allocations: 215.9 kB / 0.954 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.959e-05/0.834, allocations: 57.34 kB / 0.954 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.834, allocations: 5.109 kB / 0.954 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.834, allocations: 0 / 0.954 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.8342, allocations: 19.27 kB / 0.954 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.8342, allocations: 0 / 0.954 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.8343, allocations: 22.8 kB / 0.9541 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.8343, allocations: 6.312 kB / 0.9541 GB, free: 4.727 MB / 0.7169 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.000109/0.8345, allocations: 155.1 kB / 0.9542 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.01e-05/0.8345, allocations: 4.312 kB / 0.9542 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.53e-05/0.8345, allocations: 14.97 kB / 0.9542 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.8345, allocations: 0 / 0.9542 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.8346, allocations: 1.125 kB / 0.9542 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.8346, allocations: 0 / 0.9542 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005546/0.8351, allocations: 441.4 kB / 0.9546 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.8351, allocations: 1.438 kB / 0.9546 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.266e-05/0.8352, allocations: 12.17 kB / 0.9547 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.8352, allocations: 5.516 kB / 0.9547 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.8353, allocations: 1.812 kB / 0.9547 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.8353, allocations: 3.938 kB / 0.9547 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.8353, allocations: 0 / 0.9547 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000424/0.8357, allocations: 273.6 kB / 0.9549 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.12e-05/0.8357, allocations: 90.55 kB / 0.955 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.8358, allocations: 1.594 kB / 0.955 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.8359, allocations: 17.14 kB / 0.955 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.8361, allocations: 21.19 kB / 0.9551 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.8361, allocations: 2.312 kB / 0.9551 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.868e-05/0.8361, allocations: 106.2 kB / 0.9552 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8361, allocations: 0 / 0.9552 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002414/0.8364, allocations: 24.34 kB / 0.9552 GB, free: 3.688 MB / 0.7169 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.0001275/0.8365, allocations: 101.3 kB / 0.9553 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004495/0.837, allocations: 226.9 kB / 0.9555 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.837, allocations: 0 / 0.9555 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002068/0.8372, allocations: 119.4 kB / 0.9556 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.8375, allocations: 9 kB / 0.9556 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000547/0.8381, allocations: 210.3 kB / 0.9558 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001575/0.8382, allocations: 0.695 MB / 0.9565 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.776e-05/0.8383, allocations: 13.92 kB / 0.9565 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.512e-05/0.8383, allocations: 14.72 kB / 0.9565 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.8384, allocations: 0 / 0.9565 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of Templates: time 0.003621/0.842, allocations: 1.146 MB / 0.9576 GB, free: 1.852 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches