Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.002165/0.002165, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002796/0.002796, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.535/1.535, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.862/2.862, allocations: 469.8 MB / 0.7424 GB, free: 7.504 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.003054/0.003055, allocations: 67.5 kB / 0.9085 GB, free: 34.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3198, allocations: 159.2 MB / 1.064 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002806/0.3227, allocations: 1.515 MB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007727/0.3235, allocations: 464.8 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.811e-05/0.3235, allocations: 3.938 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.157e-05/0.3236, allocations: 3.938 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.95e-05/0.3237, allocations: 15.86 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001861/0.3239, allocations: 27.91 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001471/0.324, allocations: 83.78 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.3242, allocations: 24.16 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.3243, allocations: 39.84 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.025e-05/0.3244, allocations: 43.84 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.3244, allocations: 4 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.936e-05/0.3244, allocations: 8 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.641e-05/0.3245, allocations: 19.91 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.77e-05/0.3245, allocations: 35.8 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001178/0.3247, allocations: 60.06 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 1.219e-05/0.3247, allocations: 3.984 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3247, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.3247, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 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.0007262/0.3254, allocations: 452.9 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.3255, allocations: 8.031 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.661e-05/0.3255, allocations: 16.78 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.3257, allocations: 192.8 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.3257, allocations: 4.375 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.3258, allocations: 8.375 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.3261, allocations: 93.77 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.3261, allocations: 0 / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.3261, allocations: 7.984 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.3261, allocations: 0 / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002925/0.3264, allocations: 71.88 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005839/0.327, allocations: 332.8 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.3273, allocations: 86.55 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.3275, allocations: 48.95 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.3275, allocations: 0 / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003091/0.3278, allocations: 107.3 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.3279, allocations: 0 / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006472/0.3285, allocations: 211.1 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.3286, allocations: 85.09 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.3287, allocations: 140.3 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.3288, allocations: 29.7 kB / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.106e-05/0.3288, allocations: 96.08 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.3289, allocations: 23.7 kB / 1.068 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.909e-05/0.3289, allocations: 21.72 kB / 1.068 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3291, allocations: 326.7 kB / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.3293, allocations: 47.95 kB / 1.069 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.3295, allocations: 51.97 kB / 1.069 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003531/0.3298, allocations: 170 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3298, allocations: 3.938 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004611/0.3303, allocations: 212.9 kB / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.14e-05/0.3304, allocations: 59.41 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.3304, allocations: 0 / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.3304, allocations: 4 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.3305, allocations: 19.92 kB / 1.069 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.3305, allocations: 0 / 1.069 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.3307, allocations: 23.91 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.3307, allocations: 7.938 kB / 1.069 GB, free: 8.781 MB / 0.8262 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.0001267/0.3308, allocations: 143.5 kB / 1.069 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.139e-05/0.3309, allocations: 7.906 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.253e-05/0.3309, allocations: 20.7 kB / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.3309, allocations: 0 / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3309, allocations: 0 / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3309, allocations: 0 / 1.069 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000625/0.3315, allocations: 436.1 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3316, allocations: 3.984 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.338e-05/0.3317, allocations: 11.98 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.3317, allocations: 4 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.3317, allocations: 8 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.3317, allocations: 3.938 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3317, allocations: 0 / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004677/0.3322, allocations: 265.1 kB / 1.07 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.528e-05/0.3322, allocations: 81.02 kB / 1.07 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.3323, allocations: 11.98 kB / 1.07 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.3324, allocations: 19.92 kB / 1.07 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.779e-05/0.3325, allocations: 19.97 kB / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.3326, allocations: 4 kB / 1.07 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.098e-05/0.3326, allocations: 104.5 kB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3326, allocations: 0 / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002374/0.3329, allocations: 16 kB / 1.07 GB, free: 7.527 MB / 0.8262 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.0001354/0.333, allocations: 107.7 kB / 1.07 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005019/0.3335, allocations: 234.6 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.3336, allocations: 0 / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000234/0.3338, allocations: 115.3 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.3341, allocations: 7.984 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005257/0.3346, allocations: 199.1 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.335, allocations: 0.7001 MB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.612e-05/0.3351, allocations: 11.98 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.3351, allocations: 11.44 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3351, allocations: 0 / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of Templates: time 0.004165/0.3393, allocations: 1.313 MB / 1.073 GB, free: 4.758 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches