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.001332/0.001332, allocations: 108.6 kB / 15.73 MB, free: 76 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.001399/0.001399, allocations: 190.9 kB / 16.66 MB, free: 6.59 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.507/2.507, allocations: 390.2 MB / 0.6648 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 62.72 kB / 0.9508 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.324, allocations: 140.4 MB / 1.088 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002644/0.3267, allocations: 1.523 MB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007489/0.3275, allocations: 448.2 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.396e-05/0.3276, allocations: 4 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.901e-05/0.3277, allocations: 11.88 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.042e-05/0.3277, allocations: 11.86 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.328, allocations: 31.95 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.3281, allocations: 87.7 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.3282, allocations: 24.16 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.3284, allocations: 43.84 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.561e-05/0.3284, allocations: 35.84 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.3285, allocations: 4 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.542e-05/0.3285, allocations: 8 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.888e-05/0.3286, allocations: 15.92 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.379e-05/0.3286, allocations: 39.78 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.3288, allocations: 75.7 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3288, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3288, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.952e-06/0.3288, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 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.0006523/0.3294, allocations: 446.5 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.3295, allocations: 12.03 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.358e-05/0.3295, allocations: 12.89 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.3297, allocations: 184.2 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.3297, allocations: 4.375 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.3298, allocations: 8.375 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.33, allocations: 105.7 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.3301, allocations: 0 / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.3301, allocations: 4 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.3301, allocations: 0 / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002664/0.3304, allocations: 71.94 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005307/0.3309, allocations: 344.5 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/0.3312, allocations: 78.52 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.3314, allocations: 52.95 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.219e-05/0.3314, allocations: 8.031 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.3317, allocations: 107.3 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.3317, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005906/0.3323, allocations: 211.2 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.3323, allocations: 77.11 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.3324, allocations: 136.9 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.3325, allocations: 29.64 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.568e-05/0.3325, allocations: 96.09 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.67e-05/0.3326, allocations: 23.83 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.744e-05/0.3326, allocations: 21.72 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3327, allocations: 326.8 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.3329, allocations: 51.95 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.3331, allocations: 43.97 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.3334, allocations: 170.1 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3334, allocations: 0 / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004352/0.3338, allocations: 220.8 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.64e-05/0.3339, allocations: 60.97 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3339, allocations: 0 / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.3339, allocations: 0 / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.3341, allocations: 19.97 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.3341, allocations: 0 / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.3342, allocations: 19.98 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.3342, allocations: 7.875 kB / 1.093 GB, free: 11.95 MB / 0.8575 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.0001141/0.3343, allocations: 151.5 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.563e-05/0.3344, allocations: 7.953 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.15e-05/0.3344, allocations: 12.72 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3344, allocations: 0 / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3344, allocations: 0 / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.3344, allocations: 3.984 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005746/0.335, allocations: 440.1 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.335, allocations: 0 / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.881e-05/0.3351, allocations: 15.92 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.3351, allocations: 0 / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.3352, allocations: 11.92 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.3352, allocations: 3.938 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3352, allocations: 0 / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004398/0.3356, allocations: 269.1 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.75e-05/0.3357, allocations: 85 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.92e-05/0.3357, allocations: 12 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.3359, allocations: 15.92 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.796e-05/0.336, allocations: 19.97 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.336, allocations: 4 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.29e-05/0.3361, allocations: 99.27 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3361, allocations: 4 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002284/0.3363, allocations: 20 kB / 1.094 GB, free: 10.68 MB / 0.8575 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.0001338/0.3364, allocations: 107.2 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004424/0.3369, allocations: 222.7 kB / 1.094 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3369, allocations: 0 / 1.094 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.3371, allocations: 111.6 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.3374, allocations: 20.55 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005675/0.338, allocations: 191 kB / 1.095 GB, free: 9.965 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.3383, allocations: 0.6963 MB / 1.095 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.669e-05/0.3384, allocations: 15.98 kB / 1.095 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.3384, allocations: 11.44 kB / 1.095 GB, free: 9.215 MB / 0.8575 GB Notification: Performance of SimCode: time 3.51e-07/0.3384, allocations: 0 / 1.095 GB, free: 9.215 MB / 0.8575 GB Notification: Performance of Templates: time 0.004029/0.3425, allocations: 1.322 MB / 1.097 GB, free: 7.906 MB / 0.8575 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