Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001412/0.001412, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001486/0.001486, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.385/1.385, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.462/2.462, allocations: 437 MB / 0.711 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 68.19 kB / 0.8699 GB, free: 2.215 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3066, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002914/0.3095, allocations: 1.526 MB / 1.019 GB, free: 9.129 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008197/0.3104, allocations: 452.4 kB / 1.02 GB, free: 8.684 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.737e-05/0.3105, allocations: 3.938 kB / 1.02 GB, free: 8.68 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.3106, allocations: 7.922 kB / 1.02 GB, free: 8.672 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.891e-05/0.3107, allocations: 11.88 kB / 1.02 GB, free: 8.66 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.3109, allocations: 31.89 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.3111, allocations: 91.77 kB / 1.02 GB, free: 8.539 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.3112, allocations: 16.17 kB / 1.02 GB, free: 8.523 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.3113, allocations: 35.86 kB / 1.02 GB, free: 8.488 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.292e-05/0.3114, allocations: 47.81 kB / 1.02 GB, free: 8.441 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/0.3115, allocations: 4 kB / 1.02 GB, free: 8.438 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 2.015e-05/0.3115, allocations: 8 kB / 1.02 GB, free: 8.43 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.857e-05/0.3116, allocations: 19.92 kB / 1.02 GB, free: 8.41 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.267e-05/0.3116, allocations: 31.8 kB / 1.02 GB, free: 8.379 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001381/0.3118, allocations: 68.06 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3118, allocations: 0 / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3118, allocations: 0 / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.3118, allocations: 0 / 1.02 GB, free: 8.312 MB / 0.795 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.0007051/0.3125, allocations: 450.6 kB / 1.021 GB, free: 7.812 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3126, allocations: 8.922 kB / 1.021 GB, free: 7.805 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.811e-05/0.3126, allocations: 12.84 kB / 1.021 GB, free: 7.793 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.3128, allocations: 184.2 kB / 1.021 GB, free: 7.574 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.3128, allocations: 4.375 kB / 1.021 GB, free: 7.57 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.3128, allocations: 4.375 kB / 1.021 GB, free: 7.566 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.3132, allocations: 105.7 kB / 1.021 GB, free: 7.457 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.3132, allocations: 0 / 1.021 GB, free: 7.457 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.3132, allocations: 4 kB / 1.021 GB, free: 7.453 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3132, allocations: 0 / 1.021 GB, free: 7.453 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.3135, allocations: 75.86 kB / 1.021 GB, free: 7.379 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005848/0.3141, allocations: 336.7 kB / 1.021 GB, free: 7 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.3144, allocations: 86.55 kB / 1.021 GB, free: 6.906 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.3146, allocations: 52.94 kB / 1.022 GB, free: 6.852 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.3146, allocations: 0 / 1.022 GB, free: 6.852 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003147/0.315, allocations: 103.3 kB / 1.022 GB, free: 6.738 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.315, allocations: 4 kB / 1.022 GB, free: 6.734 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0006383/0.3156, allocations: 207.2 kB / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.3157, allocations: 85.05 kB / 1.022 GB, free: 6.418 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.3158, allocations: 132.8 kB / 1.022 GB, free: 6.277 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.3158, allocations: 33.7 kB / 1.022 GB, free: 6.238 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.396e-05/0.3159, allocations: 104 kB / 1.022 GB, free: 6.133 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/0.3159, allocations: 19.73 kB / 1.022 GB, free: 6.113 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-05/0.316, allocations: 29.7 kB / 1.022 GB, free: 6.078 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3161, allocations: 322.8 kB / 1.022 GB, free: 5.754 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.3163, allocations: 43.97 kB / 1.023 GB, free: 5.711 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.3165, allocations: 55.95 kB / 1.023 GB, free: 5.656 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003432/0.3168, allocations: 161.9 kB / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3168, allocations: 0 / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000448/0.3173, allocations: 213 kB / 1.023 GB, free: 5.25 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.656e-05/0.3174, allocations: 67.39 kB / 1.023 GB, free: 5.172 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3174, allocations: 0 / 1.023 GB, free: 5.172 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.3174, allocations: 8 kB / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.3175, allocations: 19.92 kB / 1.023 GB, free: 5.145 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.3175, allocations: 0 / 1.023 GB, free: 5.145 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.3177, allocations: 23.83 kB / 1.023 GB, free: 5.121 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.3177, allocations: 3.938 kB / 1.023 GB, free: 5.117 MB / 0.795 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.000114/0.3178, allocations: 151.5 kB / 1.023 GB, free: 4.953 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.008e-05/0.3179, allocations: 7.906 kB / 1.023 GB, free: 4.945 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.3179, allocations: 16.72 kB / 1.023 GB, free: 4.926 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3179, allocations: 0 / 1.023 GB, free: 4.926 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3179, allocations: 0 / 1.023 GB, free: 4.926 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.3179, allocations: 7.969 kB / 1.023 GB, free: 4.918 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005837/0.3185, allocations: 432.1 kB / 1.024 GB, free: 4.434 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3185, allocations: 3.984 kB / 1.024 GB, free: 4.43 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.3186, allocations: 11.98 kB / 1.024 GB, free: 4.418 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3187, allocations: 4 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.3187, allocations: 4 kB / 1.024 GB, free: 4.41 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3187, allocations: 3.938 kB / 1.024 GB, free: 4.406 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3187, allocations: 0 / 1.024 GB, free: 4.406 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004551/0.3192, allocations: 265.1 kB / 1.024 GB, free: 4.125 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.9e-05/0.3192, allocations: 81.02 kB / 1.024 GB, free: 4.027 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.86e-05/0.3192, allocations: 8 kB / 1.024 GB, free: 4.02 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.3194, allocations: 19.91 kB / 1.024 GB, free: 4 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.3195, allocations: 19.98 kB / 1.024 GB, free: 3.98 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.3195, allocations: 4 kB / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of sorting global known variables: time 8.468e-05/0.3196, allocations: 107.2 kB / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.814e-06/0.3196, allocations: 0 / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002467/0.3199, allocations: 19.94 kB / 1.024 GB, free: 3.852 MB / 0.795 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.0001226/0.32, allocations: 107.2 kB / 1.024 GB, free: 3.738 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004842/0.3205, allocations: 226.7 kB / 1.025 GB, free: 3.492 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3205, allocations: 3.938 kB / 1.025 GB, free: 3.488 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002366/0.3208, allocations: 107.4 kB / 1.025 GB, free: 3.371 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.3211, allocations: 8.281 kB / 1.025 GB, free: 3.363 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005742/0.3217, allocations: 236.7 kB / 1.025 GB, free: 3.098 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.322, allocations: 0.6924 MB / 1.026 GB, free: 2.379 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.616e-05/0.322, allocations: 19.42 kB / 1.026 GB, free: 2.359 MB / 0.795 GB Notification: Performance of SimCode: time 2.8e-07/0.322, allocations: 4 kB / 1.026 GB, free: 2.355 MB / 0.795 GB Notification: Performance of Templates: time 0.00322/0.3253, allocations: 1.26 MB / 1.027 GB, free: 1.113 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches