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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00792/0.007921, allocations: 100.5 kB / 15.87 MB, free: 5.863 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.001525/0.001525, allocations: 188.8 kB / 16.79 MB, free: 5.805 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.437/1.437, allocations: 222.9 MB / 240.5 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.53/2.53, allocations: 390.3 MB / 0.6649 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 67.89 kB / 0.8125 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7455/0.747, allocations: 140.3 MB / 0.9496 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002637/0.7497, allocations: 1.583 MB / 0.9511 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007324/0.7505, allocations: 457 kB / 0.9516 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.992e-05/0.7505, allocations: 0 / 0.9516 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001058/0.7507, allocations: 1.312 kB / 0.9516 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.407e-05/0.7507, allocations: 13.11 kB / 0.9516 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001884/0.7509, allocations: 29.25 kB / 0.9516 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.751, allocations: 79.67 kB / 0.9517 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.7512, allocations: 21.2 kB / 0.9517 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.7513, allocations: 34.75 kB / 0.9517 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.94e-05/0.7514, allocations: 49.53 kB / 0.9518 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.607e-05/0.7514, allocations: 4 kB / 0.9518 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.779e-05/0.7514, allocations: 3.531 kB / 0.9518 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.687e-05/0.7515, allocations: 12.53 kB / 0.9518 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.807e-05/0.7515, allocations: 36.23 kB / 0.9518 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.376e-05/0.7516, allocations: 49.97 kB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.7516, allocations: 0 / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.02e-07/0.7517, allocations: 0 / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.7517, allocations: 1.125 kB / 0.9519 GB, free: 7.324 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.0006054/0.7523, allocations: 450.2 kB / 0.9523 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.7523, allocations: 10.38 kB / 0.9523 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.66e-05/0.7524, allocations: 8.906 kB / 0.9523 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.7525, allocations: 183.1 kB / 0.9525 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.7525, allocations: 6.938 kB / 0.9525 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.7526, allocations: 5.062 kB / 0.9525 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002942/0.7529, allocations: 102.2 kB / 0.9526 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.036e-06/0.7529, allocations: 1.344 kB / 0.9526 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.7529, allocations: 0 / 0.9526 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.7529, allocations: 1.406 kB / 0.9526 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.7532, allocations: 81.28 kB / 0.9527 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004747/0.7537, allocations: 332.7 kB / 0.953 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002602/0.7539, allocations: 80.73 kB / 0.9531 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.7541, allocations: 60.28 kB / 0.9532 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.7541, allocations: 1.094 kB / 0.9532 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/0.7544, allocations: 108.5 kB / 0.9533 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.7544, allocations: 0 / 0.9533 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005923/0.755, allocations: 212.8 kB / 0.9535 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.7551, allocations: 79.27 kB / 0.9535 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.186e-05/0.7552, allocations: 132.6 kB / 0.9537 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.7552, allocations: 31.23 kB / 0.9537 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.026e-05/0.7552, allocations: 95.28 kB / 0.9538 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.7553, allocations: 18.91 kB / 0.9538 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.966e-05/0.7553, allocations: 34.95 kB / 0.9538 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.607e-05/0.7554, allocations: 325 kB / 0.9541 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.7555, allocations: 46.84 kB / 0.9542 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.7557, allocations: 56.08 kB / 0.9542 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002739/0.756, allocations: 163.9 kB / 0.9544 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.756, allocations: 4 kB / 0.9544 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000381/0.7564, allocations: 211.3 kB / 0.9546 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/0.7564, allocations: 61.67 kB / 0.9547 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.7564, allocations: 0 / 0.9547 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.7564, allocations: 1.125 kB / 0.9547 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.7566, allocations: 19.33 kB / 0.9547 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.952e-06/0.7566, allocations: 0 / 0.9547 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.7567, allocations: 22.23 kB / 0.9547 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.7567, allocations: 6.844 kB / 0.9547 GB, free: 4.754 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 7.459e-05/0.7568, allocations: 146.6 kB / 0.9548 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.811e-05/0.7568, allocations: 3.969 kB / 0.9549 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.943e-05/0.7569, allocations: 15.53 kB / 0.9549 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.7569, allocations: 5.469 kB / 0.9549 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.7569, allocations: 4 kB / 0.9549 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.7569, allocations: 3.984 kB / 0.9549 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004651/0.7574, allocations: 433.5 kB / 0.9553 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.7574, allocations: 3.984 kB / 0.9553 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.361e-05/0.7575, allocations: 14.27 kB / 0.9553 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.7575, allocations: 0 / 0.9553 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.7575, allocations: 1.438 kB / 0.9553 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.7575, allocations: 5.156 kB / 0.9553 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.7575, allocations: 0 / 0.9553 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003765/0.7579, allocations: 281.6 kB / 0.9556 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.542e-05/0.7579, allocations: 86.3 kB / 0.9557 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.758, allocations: 2.031 kB / 0.9557 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.7581, allocations: 20.56 kB / 0.9557 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.7582, allocations: 17.61 kB / 0.9557 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.7582, allocations: 14.23 kB / 0.9557 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.51e-05/0.7583, allocations: 98.39 kB / 0.9558 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7583, allocations: 0 / 0.9558 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002419/0.7585, allocations: 20.56 kB / 0.9558 GB, free: 3.715 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 9.842e-05/0.7586, allocations: 99.91 kB / 0.9559 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000411/0.7591, allocations: 226.7 kB / 0.9561 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7591, allocations: 4 kB / 0.9561 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001911/0.7593, allocations: 109.3 kB / 0.9563 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.7596, allocations: 8.625 kB / 0.9563 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004824/0.7601, allocations: 240.4 kB / 0.9565 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.7602, allocations: 0.695 MB / 0.9572 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.398e-05/0.7602, allocations: 14.34 kB / 0.9572 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.7602, allocations: 0.9062 kB / 0.9572 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of Templates: time 0.002616/0.7629, allocations: 1.253 MB / 0.9584 GB, free: 1.793 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/jenkins1/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