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.00637/0.00637, allocations: 97.36 kB / 15.73 MB, free: 6.043 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.001372/0.001372, allocations: 199.5 kB / 16.68 MB, free: 5.965 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.414/1.414, 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 11.1.0-maint.11.x/package.mo): time 2.746/2.746, allocations: 469.8 MB / 0.7425 GB, free: 7.359 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.89 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.309, allocations: 159.1 MB / 1.221 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002812/0.3118, allocations: 1.54 MB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007879/0.3126, allocations: 439 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.501e-05/0.3127, allocations: 7.938 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.417e-05/0.3127, allocations: 7.938 kB / 1.223 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.2e-05/0.3128, allocations: 11.86 kB / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.313, allocations: 31.91 kB / 1.223 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001533/0.3132, allocations: 87.75 kB / 1.223 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.3133, allocations: 12.17 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.3134, allocations: 39.86 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.703e-05/0.3135, allocations: 43.81 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.3135, allocations: 4 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.648e-05/0.3135, allocations: 12 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.5e-05/0.3136, allocations: 15.92 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.982e-05/0.3136, allocations: 35.8 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.3138, allocations: 67.72 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3138, allocations: 0 / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3138, allocations: 0 / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.3138, allocations: 4 kB / 1.223 GB, free: 11.51 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.0006896/0.3145, allocations: 446.5 kB / 1.223 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.3145, allocations: 15.97 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.257e-05/0.3145, allocations: 12.89 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.3147, allocations: 188.2 kB / 1.224 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.3147, allocations: 384 / 1.224 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/0.3148, allocations: 12.38 kB / 1.224 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002857/0.3151, allocations: 97.73 kB / 1.224 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.3151, allocations: 0 / 1.224 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.3151, allocations: 4 kB / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.3151, allocations: 7.938 kB / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002736/0.3154, allocations: 75.92 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006237/0.316, allocations: 332.6 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/0.3163, allocations: 86.55 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.3165, allocations: 48.94 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.3165, allocations: 4 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003189/0.3168, allocations: 103.3 kB / 1.224 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 2.034e-06/0.3168, allocations: 0 / 1.224 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0006419/0.3174, allocations: 215.1 kB / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.42e-05/0.3175, allocations: 85.11 kB / 1.225 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.3176, allocations: 130.1 kB / 1.225 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.3176, allocations: 25.7 kB / 1.225 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.786e-05/0.3177, allocations: 100.1 kB / 1.225 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.3177, allocations: 19.89 kB / 1.225 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.267e-05/0.3178, allocations: 29.7 kB / 1.225 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3179, allocations: 326.8 kB / 1.225 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.318, allocations: 43.97 kB / 1.225 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.3182, allocations: 51.95 kB / 1.225 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.3185, allocations: 165.8 kB / 1.225 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3185, allocations: 0 / 1.225 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004191/0.3189, allocations: 209 kB / 1.226 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/0.319, allocations: 63.39 kB / 1.226 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.319, allocations: 3.938 kB / 1.226 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.319, allocations: 4 kB / 1.226 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.3191, allocations: 11.98 kB / 1.226 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.3191, allocations: 4 kB / 1.226 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.3192, allocations: 23.88 kB / 1.226 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.3193, allocations: 12.22 kB / 1.226 GB, free: 8.312 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.0001146/0.3194, allocations: 148.1 kB / 1.226 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.139e-05/0.3194, allocations: 7.953 kB / 1.226 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.895e-05/0.3194, allocations: 12.66 kB / 1.226 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3194, allocations: 0 / 1.226 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3194, allocations: 4 kB / 1.226 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3195, allocations: 7.984 kB / 1.226 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005826/0.32, allocations: 432.1 kB / 1.226 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.32, allocations: 0 / 1.226 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.644e-05/0.3201, allocations: 11.98 kB / 1.226 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3201, allocations: 4 kB / 1.226 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.3201, allocations: 4 kB / 1.226 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.3201, allocations: 3.938 kB / 1.226 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3201, allocations: 4 kB / 1.226 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003992/0.3205, allocations: 265.5 kB / 1.227 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.986e-05/0.3206, allocations: 89 kB / 1.227 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.3206, allocations: 4 kB / 1.227 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.3208, allocations: 27.84 kB / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.3209, allocations: 23.98 kB / 1.227 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.3209, allocations: 3.984 kB / 1.227 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.979e-05/0.3209, allocations: 101.2 kB / 1.227 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3209, allocations: 4 kB / 1.227 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002352/0.3212, allocations: 16 kB / 1.227 GB, free: 7.039 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.0001228/0.3213, allocations: 107.2 kB / 1.227 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004515/0.3217, allocations: 222.7 kB / 1.227 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3217, allocations: 0 / 1.227 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001981/0.3219, allocations: 107.4 kB / 1.227 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.3222, allocations: 14.03 kB / 1.227 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005038/0.3227, allocations: 210.8 kB / 1.227 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.323, allocations: 0.6924 MB / 1.228 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.589e-05/0.323, allocations: 15.97 kB / 1.228 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.919e-05/0.3231, allocations: 11.44 kB / 1.228 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of SimCode: time 5.61e-07/0.3231, allocations: 0 / 1.228 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of Templates: time 0.003699/0.3268, allocations: 1.331 MB / 1.229 GB, free: 4.266 MB / 0.9825 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=480 -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