Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001548/0.001548, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001965/0.001965, allocations: 192.4 kB / 16.25 MB, free: 6.633 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.589/1.589, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3/3, allocations: 472.6 MB / 0.7448 GB, free: 4.848 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 74.27 kB / 0.9116 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3212, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002665/0.3239, allocations: 1.578 MB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007087/0.3247, allocations: 454.8 kB / 1.07 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.128e-05/0.3247, allocations: 4 kB / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.3249, allocations: 0 / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.819e-05/0.3249, allocations: 15.84 kB / 1.07 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002018/0.3251, allocations: 19.98 kB / 1.07 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.3253, allocations: 91.7 kB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.3254, allocations: 24.16 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.3256, allocations: 35.91 kB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.47e-05/0.3257, allocations: 43.77 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.3257, allocations: 8 kB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.57e-05/0.3257, allocations: 8 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.676e-05/0.3258, allocations: 15.92 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.004e-05/0.3258, allocations: 35.8 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001349/0.326, allocations: 72.05 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.326, allocations: 0 / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.563e-06/0.326, allocations: 0 / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.928e-06/0.326, allocations: 4 kB / 1.07 GB, free: 8.336 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.0007305/0.3267, allocations: 438.5 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.3268, allocations: 16.02 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.361e-05/0.3268, allocations: 12.84 kB / 1.071 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/0.327, allocations: 188.2 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.327, allocations: 4.375 kB / 1.071 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.32e-05/0.3271, allocations: 8.375 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.3274, allocations: 101.6 kB / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3274, allocations: 0 / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.3274, allocations: 4 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.3274, allocations: 4 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002739/0.3277, allocations: 75.92 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006324/0.3284, allocations: 328.6 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.3286, allocations: 86.52 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.3288, allocations: 52.92 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.3289, allocations: 4 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002951/0.3292, allocations: 107.4 kB / 1.071 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 3.296e-06/0.3292, allocations: 4 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005972/0.3298, allocations: 207.2 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.3298, allocations: 81.11 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.3299, allocations: 132.8 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.33, allocations: 29.64 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.265e-05/0.33, allocations: 100.1 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.3301, allocations: 23.72 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.468e-05/0.3301, allocations: 29.7 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.3302, allocations: 322.8 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.3304, allocations: 55.95 kB / 1.072 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.3306, allocations: 51.89 kB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003106/0.3309, allocations: 166.1 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3309, allocations: 0 / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004205/0.3314, allocations: 216.8 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.305e-05/0.3314, allocations: 59.39 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3314, allocations: 0 / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.3314, allocations: 4 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.3316, allocations: 11.98 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.3316, allocations: 4 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.3317, allocations: 23.92 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.3318, allocations: 7.938 kB / 1.073 GB, free: 5.141 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.0001287/0.3319, allocations: 147.5 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.226e-05/0.3319, allocations: 7.906 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.594e-05/0.332, allocations: 12.66 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.332, allocations: 0 / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.332, allocations: 0 / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.332, allocations: 8 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005717/0.3326, allocations: 428.1 kB / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3326, allocations: 0 / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.801e-05/0.3327, allocations: 19.97 kB / 1.073 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.3327, allocations: 4 kB / 1.073 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.3327, allocations: 0 / 1.073 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.3327, allocations: 3.938 kB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3327, allocations: 4 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000433/0.3331, allocations: 269 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.3332, allocations: 85.02 kB / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.543e-05/0.3332, allocations: 4 kB / 1.074 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.3334, allocations: 15.92 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.94e-05/0.3335, allocations: 27.97 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.3335, allocations: 0 / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.473e-05/0.3336, allocations: 111.2 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3336, allocations: 0 / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002364/0.3338, allocations: 20 kB / 1.074 GB, free: 3.875 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.0001164/0.334, allocations: 99.25 kB / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000451/0.3344, allocations: 226.7 kB / 1.074 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3344, allocations: 0 / 1.074 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002116/0.3346, allocations: 111.6 kB / 1.074 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.3349, allocations: 16.5 kB / 1.074 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004978/0.3354, allocations: 224.7 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.3357, allocations: 0.6885 MB / 1.075 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.705e-05/0.3358, allocations: 15.77 kB / 1.075 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.866e-05/0.3358, allocations: 15.44 kB / 1.075 GB, free: 2.398 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3358, allocations: 0 / 1.075 GB, free: 2.398 MB / 0.8262 GB Notification: Performance of Templates: time 0.003598/0.3394, allocations: 1.213 MB / 1.077 GB, free: 1.199 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches