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.001709/0.001709, allocations: 108 kB / 15.61 MB, free: 152 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.001673/0.001673, allocations: 195.5 kB / 16.53 MB, free: 6.699 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.489/1.489, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.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.754/2.754, allocations: 437 MB / 0.7104 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001956, allocations: 72.11 kB / 0.8692 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.706/0.708, allocations: 151.6 MB / 1.017 GB, free: 2.633 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00324/0.7113, allocations: 1.512 MB / 1.019 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008461/0.7121, allocations: 466.8 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.877e-05/0.7122, allocations: 0 / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.7123, allocations: 7.875 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.174e-05/0.7124, allocations: 11.86 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.7126, allocations: 27.97 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001685/0.7128, allocations: 87.7 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.7129, allocations: 20.17 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.7131, allocations: 39.84 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.094e-05/0.7132, allocations: 39.83 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.7132, allocations: 8 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.713e-05/0.7132, allocations: 4 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.798e-05/0.7133, allocations: 19.92 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.351e-05/0.7133, allocations: 35.8 kB / 1.02 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.7135, allocations: 73.73 kB / 1.02 GB, free: 288 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.7135, allocations: 4 kB / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.724e-06/0.7135, allocations: 0 / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.7135, allocations: 0 / 1.02 GB, free: 284 kB / 0.7637 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.0008871/0.7144, allocations: 442.5 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.7145, allocations: 8.031 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.985e-05/0.7145, allocations: 12.84 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.7148, allocations: 193.5 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.7149, allocations: 8.375 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.7149, allocations: 4.375 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.7152, allocations: 89.77 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.7152, allocations: 0 / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.7153, allocations: 7.984 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.7153, allocations: 3.984 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003387/0.7156, allocations: 75.88 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000723/0.7163, allocations: 340.6 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.7167, allocations: 86.52 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.7169, allocations: 49.05 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.7169, allocations: 3.938 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003481/0.7172, allocations: 99.34 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.7173, allocations: 0 / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006606/0.7179, allocations: 215.2 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.052e-05/0.718, allocations: 89.03 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.7182, allocations: 136 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/0.7182, allocations: 29.7 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.771e-05/0.7183, allocations: 92.05 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/0.7183, allocations: 31.72 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.017e-05/0.7184, allocations: 25.72 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000315/0.7187, allocations: 322.8 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.7189, allocations: 51.89 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.7191, allocations: 47.97 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.7194, allocations: 165.9 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7195, allocations: 0 / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004607/0.7199, allocations: 216.9 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.294e-05/0.72, allocations: 59.41 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.72, allocations: 0 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.72, allocations: 0 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.7201, allocations: 15.98 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.7202, allocations: 4 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.7203, allocations: 23.81 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.7203, allocations: 11.94 kB / 1.022 GB, free: 13.08 MB / 0.7794 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.0001301/0.7205, allocations: 143.5 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.955e-05/0.7205, allocations: 7.906 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.33e-05/0.7205, allocations: 12.98 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.7205, allocations: 4 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.7205, allocations: 0 / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.7206, allocations: 7.938 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006479/0.7212, allocations: 428.1 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.7212, allocations: 4 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.565e-05/0.7213, allocations: 19.92 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.7213, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.7214, allocations: 4 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.7214, allocations: 3.938 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.7214, allocations: 4 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004679/0.7218, allocations: 261.1 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.7219, allocations: 88.95 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.7219, allocations: 7.984 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.7221, allocations: 19.92 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.7222, allocations: 23.97 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.228e-06/0.7223, allocations: 0 / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000121/0.7224, allocations: 104.4 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.31e-07/0.7224, allocations: 0 / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002481/0.7227, allocations: 20 kB / 1.024 GB, free: 11.82 MB / 0.7794 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.0001467/0.7228, allocations: 103.2 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005239/0.7233, allocations: 226.7 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7233, allocations: 3.938 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002329/0.7236, allocations: 111.3 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.7239, allocations: 11.98 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005519/0.7244, allocations: 199.1 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.7248, allocations: 0.6935 MB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.767e-05/0.7249, allocations: 11.98 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.991e-05/0.7249, allocations: 15.44 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.7249, allocations: 0 / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of Templates: time 0.004416/0.7293, allocations: 1.314 MB / 1.026 GB, free: 9.062 MB / 0.7794 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=400 -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/jenkins/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