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.008952/0.008952, allocations: 96.98 kB / 15.73 MB, free: 5.988 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.001935/0.001936, allocations: 187.9 kB / 16.67 MB, free: 5.918 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.616/2.616, allocations: 437 MB / 0.7105 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 63.89 kB / 1.019 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3436, allocations: 151.6 MB / 1.167 GB, free: 6.883 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002544/0.3462, allocations: 1.527 MB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007509/0.347, allocations: 462.9 kB / 1.169 GB, free: 4.883 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.984e-05/0.347, allocations: 0 / 1.169 GB, free: 4.883 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001007/0.3472, allocations: 7.875 kB / 1.169 GB, free: 4.875 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.881e-05/0.3472, allocations: 7.875 kB / 1.169 GB, free: 4.867 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001926/0.3474, allocations: 35.94 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.3476, allocations: 79.78 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.3477, allocations: 24.17 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.3478, allocations: 43.78 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.186e-05/0.3479, allocations: 39.83 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.72e-05/0.348, allocations: 8 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.738e-05/0.348, allocations: 4 kB / 1.169 GB, free: 4.637 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.615e-05/0.348, allocations: 15.98 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.248e-05/0.3481, allocations: 31.8 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.3482, allocations: 79.7 kB / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3483, allocations: 0 / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3483, allocations: 0 / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.161e-06/0.3483, allocations: 0 / 1.169 GB, free: 4.512 MB / 0.92 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.0006752/0.3489, allocations: 450.5 kB / 1.169 GB, free: 4.012 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.349, allocations: 8.031 kB / 1.169 GB, free: 4.004 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.316e-05/0.349, allocations: 16.83 kB / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.3492, allocations: 192.2 kB / 1.17 GB, free: 3.762 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.3493, allocations: 8.375 kB / 1.17 GB, free: 3.754 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.3493, allocations: 4.375 kB / 1.17 GB, free: 3.75 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002685/0.3496, allocations: 97.75 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.3496, allocations: 3.938 kB / 1.17 GB, free: 3.645 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.3496, allocations: 4 kB / 1.17 GB, free: 3.641 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3496, allocations: 0 / 1.17 GB, free: 3.641 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.3499, allocations: 71.88 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005464/0.3504, allocations: 336.7 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/0.3507, allocations: 86.55 kB / 1.17 GB, free: 3.098 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.3509, allocations: 52.95 kB / 1.17 GB, free: 3.043 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.3509, allocations: 4 kB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.3512, allocations: 107.3 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.3512, allocations: 0 / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0006292/0.3518, allocations: 207.2 kB / 1.17 GB, free: 2.707 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.3519, allocations: 85.09 kB / 1.171 GB, free: 2.605 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.352, allocations: 130.1 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.352, allocations: 33.7 kB / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.044e-05/0.3521, allocations: 88.12 kB / 1.171 GB, free: 2.336 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.381e-05/0.3521, allocations: 27.78 kB / 1.171 GB, free: 2.309 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.151e-05/0.3522, allocations: 25.72 kB / 1.171 GB, free: 2.277 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.3523, allocations: 326.8 kB / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.3525, allocations: 51.95 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.3526, allocations: 43.97 kB / 1.171 GB, free: 1.855 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/0.3529, allocations: 165.9 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.353, allocations: 3.938 kB / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004195/0.3534, allocations: 217.1 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.596e-05/0.3534, allocations: 59.41 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.3535, allocations: 0 / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3535, allocations: 0 / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.3536, allocations: 19.92 kB / 1.172 GB, free: 1.348 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.3536, allocations: 4 kB / 1.172 GB, free: 1.344 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.3537, allocations: 19.92 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.3538, allocations: 11.94 kB / 1.172 GB, free: 1.312 MB / 0.92 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.0001174/0.3539, allocations: 147.5 kB / 1.172 GB, free: 1.152 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.013e-05/0.3539, allocations: 11.95 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.073e-05/0.354, allocations: 12.7 kB / 1.172 GB, free: 1.129 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.354, allocations: 4 kB / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.354, allocations: 0 / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.354, allocations: 0 / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005617/0.3546, allocations: 436.1 kB / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3546, allocations: 0 / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.444e-05/0.3547, allocations: 15.98 kB / 1.172 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3547, allocations: 0 / 1.172 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.3547, allocations: 0 / 1.172 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.3547, allocations: 7.938 kB / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3547, allocations: 0 / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004173/0.3551, allocations: 269.5 kB / 1.173 GB, free: 336 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.224e-05/0.3552, allocations: 92.98 kB / 1.173 GB, free: 224 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.3552, allocations: 0 / 1.173 GB, free: 224 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.3554, allocations: 15.92 kB / 1.173 GB, free: 208 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.921e-05/0.3555, allocations: 27.97 kB / 1.173 GB, free: 180 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.3555, allocations: 0 / 1.173 GB, free: 180 kB / 0.92 GB Notification: Performance of sorting global known variables: time 7.363e-05/0.3556, allocations: 110.2 kB / 1.173 GB, free: 72 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3556, allocations: 4 kB / 1.173 GB, free: 68 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002314/0.3558, allocations: 16 kB / 1.173 GB, free: 52 kB / 0.92 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.0001404/0.356, allocations: 111.3 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004488/0.3564, allocations: 214.7 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3564, allocations: 0 / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.3566, allocations: 123.3 kB / 1.173 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.3569, allocations: 11.98 kB / 1.173 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004985/0.3574, allocations: 203.1 kB / 1.173 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.3577, allocations: 0.6885 MB / 1.174 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.66e-05/0.3578, allocations: 15.98 kB / 1.174 GB, free: 14.6 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.637e-05/0.3578, allocations: 15.38 kB / 1.174 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.3578, allocations: 0 / 1.174 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of Templates: time 0.003951/0.3618, allocations: 1.314 MB / 1.175 GB, free: 13.28 MB / 0.9356 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