Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001091/0.001091, 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.001495/0.001496, allocations: 193.5 kB / 16.14 MB, free: 6.691 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.436/1.436, allocations: 222.9 MB / 239.8 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.826/2.826, allocations: 437 MB / 0.7099 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.91 kB / 0.8685 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6376/0.6388, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002661/0.6415, allocations: 1.585 MB / 1.018 GB, free: 1.172 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000712/0.6423, allocations: 458.9 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.395e-05/0.6423, allocations: 3.938 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.6425, allocations: 11.92 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.984e-05/0.6425, allocations: 11.88 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.6427, allocations: 27.95 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.6428, allocations: 71.78 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.643, allocations: 24.11 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.6431, allocations: 31.92 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.605e-05/0.6431, allocations: 43.81 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.6432, allocations: 4 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.961e-05/0.6432, allocations: 4 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.254e-05/0.6433, allocations: 11.92 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.805e-05/0.6433, allocations: 35.8 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.00011/0.6434, allocations: 65.75 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.6434, allocations: 0 / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of FrontEnd: time 7.81e-07/0.6435, allocations: 0 / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.6435, allocations: 4 kB / 1.019 GB, free: 384 kB / 0.7637 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.0006668/0.6441, allocations: 446.6 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.6442, allocations: 8.031 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.271e-05/0.6442, allocations: 12.78 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.6444, allocations: 180.3 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.6444, allocations: 4.375 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.6444, allocations: 4.375 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002882/0.6447, allocations: 101.8 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.6447, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.6448, allocations: 4 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.6448, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002706/0.6451, allocations: 75.86 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005423/0.6456, allocations: 336.6 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.6459, allocations: 86.55 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.6461, allocations: 56.94 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.6461, allocations: 0 / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002832/0.6464, allocations: 103.3 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.6464, allocations: 0 / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005864/0.647, allocations: 207.1 kB / 1.02 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/0.647, allocations: 81.11 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.6472, allocations: 139.5 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.6472, allocations: 29.7 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.25e-05/0.6473, allocations: 96.03 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.6473, allocations: 23.73 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.477e-05/0.6473, allocations: 33.7 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.6475, allocations: 318.8 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.6476, allocations: 47.97 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.6478, allocations: 55.89 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003112/0.6481, allocations: 169.8 kB / 1.021 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.6481, allocations: 0 / 1.021 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004057/0.6486, allocations: 204.9 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.094e-05/0.6486, allocations: 67.39 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.6486, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.6486, allocations: 3.938 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.6488, allocations: 19.98 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.6488, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.6489, allocations: 15.89 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.6489, allocations: 11.92 kB / 1.022 GB, free: 13.2 MB / 0.7794 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.0001056/0.6491, allocations: 148.1 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.88e-05/0.6491, allocations: 7.906 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.253e-05/0.6491, allocations: 16.72 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.6491, allocations: 8.266 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.6491, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.6491, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005354/0.6497, allocations: 436 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.6497, allocations: 3.984 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.654e-05/0.6498, allocations: 19.98 kB / 1.022 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.6498, allocations: 0 / 1.022 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.6498, allocations: 0 / 1.022 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.6498, allocations: 3.938 kB / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.6498, allocations: 0 / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004085/0.6502, allocations: 269.5 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.47e-05/0.6503, allocations: 88.95 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.6503, allocations: 3.938 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.6505, allocations: 23.91 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.637e-05/0.6506, allocations: 19.97 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.6506, allocations: 4 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.785e-05/0.6507, allocations: 100.8 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6507, allocations: 0 / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002368/0.6509, allocations: 20 kB / 1.023 GB, free: 11.93 MB / 0.7794 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.0001094/0.651, allocations: 107.3 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004339/0.6515, allocations: 218.7 kB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.6515, allocations: 3.938 kB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000211/0.6517, allocations: 115.3 kB / 1.023 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.652, allocations: 11.98 kB / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000472/0.6525, allocations: 209.1 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.6527, allocations: 0.6973 MB / 1.024 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.087e-05/0.6528, allocations: 11.98 kB / 1.024 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.933e-05/0.6528, allocations: 15.44 kB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.6528, allocations: 0 / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of Templates: time 0.003298/0.6561, allocations: 1.148 MB / 1.025 GB, free: 9.32 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches