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.001856/0.001857, allocations: 108 kB / 15.6 MB, free: 132 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.001905/0.001905, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.424/1.424, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.642/2.642, allocations: 437 MB / 0.7103 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.89 kB / 0.8692 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7382/0.7396, allocations: 151.6 MB / 1.017 GB, free: 2.535 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003114/0.7427, allocations: 1.52 MB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007974/0.7436, allocations: 451 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.253e-05/0.7436, allocations: 7.938 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.899e-05/0.7437, allocations: 7.922 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.181e-05/0.7438, allocations: 7.875 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.744, allocations: 27.91 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001653/0.7442, allocations: 91.75 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.7443, allocations: 20.19 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.7445, allocations: 35.84 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.588e-05/0.7446, allocations: 43.81 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.7446, allocations: 12 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.682e-05/0.7446, allocations: 4 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.75e-05/0.7447, allocations: 15.94 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.54e-05/0.7448, allocations: 27.86 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001348/0.7449, allocations: 77.67 kB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.7449, allocations: 0 / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.253e-06/0.7449, allocations: 4 kB / 1.02 GB, free: 188 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.7449, allocations: 0 / 1.02 GB, free: 188 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.0007492/0.7457, allocations: 446.5 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.7457, allocations: 16.02 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.161e-05/0.7458, allocations: 8.844 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.746, allocations: 188.2 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.746, allocations: 4.375 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.746, allocations: 4.375 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003211/0.7464, allocations: 101.7 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.7464, allocations: 0 / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.7464, allocations: 0 / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.7464, allocations: 8 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002831/0.7467, allocations: 75.86 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005924/0.7473, allocations: 332.6 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.7476, allocations: 90.55 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.7478, allocations: 52.94 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.7478, allocations: 4 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003262/0.7482, allocations: 103.3 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.7482, allocations: 0 / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006284/0.7488, allocations: 207.1 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.7489, allocations: 81.11 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.749, allocations: 132.4 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.749, allocations: 29.7 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.625e-05/0.7491, allocations: 100 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.22e-05/0.7491, allocations: 23.73 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.641e-05/0.7492, allocations: 29.7 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.7493, allocations: 318.8 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.7495, allocations: 51.95 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.7496, allocations: 47.95 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.75, allocations: 173.8 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.75, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000427/0.7504, allocations: 213 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.1e-05/0.7505, allocations: 59.39 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.7505, allocations: 3.984 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.7505, allocations: 4 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.7506, allocations: 23.92 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.7507, allocations: 4 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/0.7508, allocations: 15.89 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.7508, allocations: 7.938 kB / 1.022 GB, free: 12.99 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.0001208/0.751, allocations: 149.1 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.171e-05/0.751, allocations: 11.91 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.253e-05/0.751, allocations: 8.719 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.751, allocations: 4 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.751, allocations: 4 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.7511, allocations: 0 / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005563/0.7516, allocations: 436.1 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.7516, allocations: 0 / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.007e-05/0.7517, allocations: 15.97 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-06/0.7517, allocations: 4 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.7518, allocations: 4 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.7518, allocations: 3.938 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.7518, allocations: 0 / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004337/0.7522, allocations: 265.1 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.964e-05/0.7523, allocations: 88.95 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.7523, allocations: 0 / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.7525, allocations: 19.92 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.7526, allocations: 31.91 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.7526, allocations: 0 / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.21e-05/0.7527, allocations: 108.9 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7527, allocations: 0 / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002361/0.7529, allocations: 16 kB / 1.024 GB, free: 11.72 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.0001147/0.753, allocations: 99.25 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004525/0.7535, allocations: 226.7 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.7535, allocations: 0 / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002092/0.7537, allocations: 111.4 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.754, allocations: 16.78 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005597/0.7546, allocations: 199.7 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.7549, allocations: 0.6924 MB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.139e-05/0.7549, allocations: 15.98 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.065e-05/0.755, allocations: 11.44 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of SimCode: time 1.734e-06/0.755, allocations: 0 / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of Templates: time 0.004334/0.7593, allocations: 1.313 MB / 1.026 GB, free: 8.969 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=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/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