Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.0009629/0.000963, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.0009774/0.0009775, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.441/2.441, allocations: 390.3 MB / 0.6653 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.00039, allocations: 8 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7315/0.7319, allocations: 142.3 MB / 0.9535 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001413/0.7333, allocations: 1.215 MB / 0.9547 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006306/0.734, allocations: 430.4 kB / 0.9551 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.297e-05/0.734, allocations: 1.188 kB / 0.9551 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.283e-05/0.7341, allocations: 3.938 kB / 0.9551 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.601e-05/0.7342, allocations: 14.28 kB / 0.9551 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001644/0.7343, allocations: 28.59 kB / 0.9552 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.631e-05/0.7344, allocations: 47.75 kB / 0.9552 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.7345, allocations: 19.44 kB / 0.9552 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.938e-05/0.7346, allocations: 32.27 kB / 0.9553 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.818e-05/0.7347, allocations: 30.2 kB / 0.9553 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.7347, allocations: 2.594 kB / 0.9553 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.385e-05/0.7348, allocations: 3.625 kB / 0.9553 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.051e-05/0.7348, allocations: 15.55 kB / 0.9553 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.424e-05/0.7348, allocations: 34.11 kB / 0.9553 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.96e-05/0.7349, allocations: 47.22 kB / 0.9554 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.043e-06/0.7349, allocations: 0 / 0.9554 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.593e-06/0.7349, allocations: 0 / 0.9554 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.735, allocations: 4 kB / 0.9554 GB, free: 6.629 MB / 0.7169 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.0005637/0.7355, allocations: 443.1 kB / 0.9558 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.7356, allocations: 9.125 kB / 0.9558 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.7356, allocations: 12.7 kB / 0.9558 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.7357, allocations: 183.2 kB / 0.956 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.7358, allocations: 6.469 kB / 0.956 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.652e-05/0.7358, allocations: 7.875 kB / 0.956 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002631/0.7361, allocations: 101.7 kB / 0.9561 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.7361, allocations: 3.938 kB / 0.9561 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.7361, allocations: 1.281 kB / 0.9561 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.7361, allocations: 1.594 kB / 0.9561 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002816/0.7364, allocations: 94.22 kB / 0.9562 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004721/0.7369, allocations: 341 kB / 0.9565 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/0.7372, allocations: 99.95 kB / 0.9566 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.7372, allocations: 4.906 kB / 0.9566 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002838/0.7375, allocations: 111.2 kB / 0.9567 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.7375, allocations: 0 / 0.9567 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000601/0.7381, allocations: 243.9 kB / 0.957 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/0.7381, allocations: 83.11 kB / 0.9571 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.61e-05/0.7382, allocations: 135.2 kB / 0.9572 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.7382, allocations: 26.83 kB / 0.9572 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.599e-05/0.7383, allocations: 95.52 kB / 0.9573 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.7383, allocations: 23.02 kB / 0.9573 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-06/0.7383, allocations: 1.031 kB / 0.9573 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.105e-05/0.7384, allocations: 317 kB / 0.9576 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.7385, allocations: 62.17 kB / 0.9577 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001494/0.7387, allocations: 54.77 kB / 0.9577 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001695/0.7389, allocations: 101.4 kB / 0.9578 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.7389, allocations: 1.031 kB / 0.9578 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000402/0.7393, allocations: 235.7 kB / 0.9581 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.7393, allocations: 62.98 kB / 0.9581 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.7393, allocations: 0 / 0.9581 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.7394, allocations: 1.281 kB / 0.9581 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.7395, allocations: 25.88 kB / 0.9581 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.7395, allocations: 0 / 0.9581 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.7397, allocations: 22.45 kB / 0.9582 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.7397, allocations: 7.719 kB / 0.9582 GB, free: 4.156 MB / 0.7169 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 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.154e-05/0.7398, allocations: 147.1 kB / 0.9583 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.7398, allocations: 7.875 kB / 0.9583 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.802e-05/0.7398, allocations: 14.7 kB / 0.9583 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.7398, allocations: 2.031 kB / 0.9583 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.7398, allocations: 0 / 0.9583 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.7398, allocations: 0 / 0.9583 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004899/0.7403, allocations: 446.5 kB / 0.9588 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.7404, allocations: 4 kB / 0.9588 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.128e-05/0.7405, allocations: 21.45 kB / 0.9588 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.7405, allocations: 9.672 kB / 0.9588 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.7405, allocations: 3.984 kB / 0.9588 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.7405, allocations: 1.312 kB / 0.9588 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.7405, allocations: 0 / 0.9588 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003785/0.7409, allocations: 286.1 kB / 0.9591 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.7409, allocations: 87.61 kB / 0.9592 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.741, allocations: 9.266 kB / 0.9592 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.7411, allocations: 18.05 kB / 0.9592 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.454e-05/0.7412, allocations: 24.48 kB / 0.9592 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.7412, allocations: 10.73 kB / 0.9592 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.17e-05/0.7413, allocations: 99.64 kB / 0.9593 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.232e-06/0.7413, allocations: 0 / 0.9593 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000244/0.7416, allocations: 20.44 kB / 0.9593 GB, free: 3.109 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001065/0.7417, allocations: 103.9 kB / 0.9594 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004171/0.7421, allocations: 235.8 kB / 0.9597 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.7421, allocations: 0 / 0.9597 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.7423, allocations: 116.5 kB / 0.9598 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002014/0.7425, allocations: 13.78 kB / 0.9598 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004281/0.743, allocations: 213.5 kB / 0.96 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.7431, allocations: 0.7053 MB / 0.9607 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.466e-05/0.7431, allocations: 14.64 kB / 0.9607 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.31e-05/0.7432, allocations: 10.19 kB / 0.9607 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.7432, allocations: 1.375 kB / 0.9607 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of Templates: time 0.003315/0.7465, allocations: 1.096 MB / 0.9618 GB, free: 1.293 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches