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.01158/0.01158, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002356/0.002356, allocations: 191.7 kB / 16.67 MB, free: 5.938 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.612/1.612, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.833/2.833, allocations: 472.6 MB / 0.7453 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.91 kB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.331, allocations: 159.9 MB / 1.226 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00266/0.3337, allocations: 1.533 MB / 1.227 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.000796/0.3346, allocations: 454.6 kB / 1.228 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.561e-05/0.3346, allocations: 4 kB / 1.228 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000105/0.3348, allocations: 7.875 kB / 1.228 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.076e-05/0.3348, allocations: 15.86 kB / 1.228 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002176/0.3351, allocations: 27.97 kB / 1.228 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.3352, allocations: 91.69 kB / 1.228 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.3354, allocations: 24.16 kB / 1.228 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.3355, allocations: 39.86 kB / 1.228 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.908e-05/0.3356, allocations: 43.81 kB / 1.228 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.3356, allocations: 4 kB / 1.228 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.162e-05/0.3357, allocations: 8 kB / 1.228 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.033e-05/0.3357, allocations: 15.92 kB / 1.228 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.508e-05/0.3358, allocations: 35.8 kB / 1.228 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.3359, allocations: 71.66 kB / 1.228 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3359, allocations: 0 / 1.228 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.502e-06/0.336, allocations: 0 / 1.228 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.336, allocations: 4 kB / 1.228 GB, free: 6.855 MB / 0.9825 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.0007023/0.3367, allocations: 446.5 kB / 1.228 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.3367, allocations: 12.03 kB / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.072e-05/0.3368, allocations: 8.891 kB / 1.228 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.337, allocations: 192.2 kB / 1.229 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.337, allocations: 4.375 kB / 1.229 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.337, allocations: 4.375 kB / 1.229 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002995/0.3373, allocations: 101.8 kB / 1.229 GB, free: 6 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.3373, allocations: 0 / 1.229 GB, free: 6 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.3374, allocations: 4 kB / 1.229 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3374, allocations: 0 / 1.229 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/0.3377, allocations: 79.86 kB / 1.229 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005989/0.3383, allocations: 336.6 kB / 1.229 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.3386, allocations: 78.52 kB / 1.229 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.3388, allocations: 53.03 kB / 1.229 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.3388, allocations: 7.875 kB / 1.229 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003367/0.3391, allocations: 107.3 kB / 1.229 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 3.005e-06/0.3391, allocations: 3.984 kB / 1.229 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0006764/0.3398, allocations: 207.2 kB / 1.229 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.3399, allocations: 77.11 kB / 1.23 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.34, allocations: 142 kB / 1.23 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.34, allocations: 25.7 kB / 1.23 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.186e-05/0.3401, allocations: 100.1 kB / 1.23 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.3401, allocations: 19.89 kB / 1.23 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.742e-05/0.3402, allocations: 25.7 kB / 1.23 GB, free: 4.625 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.3403, allocations: 326.8 kB / 1.23 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.3405, allocations: 39.97 kB / 1.23 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.3407, allocations: 59.89 kB / 1.23 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.341, allocations: 161.9 kB / 1.23 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.341, allocations: 0 / 1.23 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004297/0.3414, allocations: 212.9 kB / 1.231 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.879e-05/0.3415, allocations: 67.39 kB / 1.231 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3415, allocations: 0 / 1.231 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.3415, allocations: 0 / 1.231 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.3417, allocations: 19.98 kB / 1.231 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.882e-06/0.3417, allocations: 0 / 1.231 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.3418, allocations: 31.81 kB / 1.231 GB, free: 3.664 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.3418, allocations: 3.938 kB / 1.231 GB, free: 3.66 MB / 0.9825 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.0001179/0.342, allocations: 152 kB / 1.231 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.987e-05/0.342, allocations: 11.95 kB / 1.231 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.286e-05/0.342, allocations: 12.72 kB / 1.231 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.342, allocations: 0 / 1.231 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.342, allocations: 3.984 kB / 1.231 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3421, allocations: 0 / 1.231 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005634/0.3426, allocations: 432.1 kB / 1.231 GB, free: 2.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3426, allocations: 0 / 1.231 GB, free: 2.977 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.93e-05/0.3427, allocations: 19.92 kB / 1.231 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3427, allocations: 0 / 1.231 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3428, allocations: 8 kB / 1.231 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.3428, allocations: 3.938 kB / 1.231 GB, free: 2.945 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3428, allocations: 0 / 1.231 GB, free: 2.945 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004479/0.3432, allocations: 265.1 kB / 1.232 GB, free: 2.664 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.71e-05/0.3433, allocations: 85.06 kB / 1.232 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.3433, allocations: 8.281 kB / 1.232 GB, free: 2.555 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.3435, allocations: 19.91 kB / 1.232 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.3436, allocations: 15.98 kB / 1.232 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.3436, allocations: 11.92 kB / 1.232 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.181e-05/0.3437, allocations: 102.5 kB / 1.232 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3437, allocations: 0 / 1.232 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002478/0.3439, allocations: 20 kB / 1.232 GB, free: 2.391 MB / 0.9825 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.00012/0.3441, allocations: 111.1 kB / 1.232 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004741/0.3446, allocations: 227.2 kB / 1.232 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3446, allocations: 0 / 1.232 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.3448, allocations: 111.3 kB / 1.232 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.3451, allocations: 12.16 kB / 1.232 GB, free: 1.895 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000537/0.3457, allocations: 206.8 kB / 1.232 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.346, allocations: 0.6924 MB / 1.233 GB, free: 0.9492 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.988e-05/0.346, allocations: 11.98 kB / 1.233 GB, free: 0.9375 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.311e-05/0.3461, allocations: 19.44 kB / 1.233 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.3461, allocations: 0 / 1.233 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of Templates: time 0.004166/0.3503, allocations: 1.32 MB / 1.234 GB, free: 15.61 MB / 0.9981 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