Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001161/0.001161, allocations: 100 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.001391/0.001391, 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.433/1.433, 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 11.0.0-master/package.mo): time 2.76/2.76, allocations: 436.5 MB / 0.7104 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003633, allocations: 8 kB / 0.8708 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8169/0.8173, allocations: 153.7 MB / 1.021 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001772/0.8191, allocations: 1.215 MB / 1.022 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007444/0.8198, allocations: 427.4 kB / 1.022 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.993e-05/0.8199, allocations: 3.938 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.166e-05/0.82, allocations: 7.922 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.419e-05/0.8201, allocations: 11.97 kB / 1.022 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000202/0.8203, allocations: 27.97 kB / 1.022 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.8204, allocations: 47.88 kB / 1.023 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.8205, allocations: 16.17 kB / 1.023 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.8206, allocations: 31.91 kB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.32e-05/0.8207, allocations: 31.84 kB / 1.023 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.8208, allocations: 4 kB / 1.023 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.526e-05/0.8208, allocations: 4 kB / 1.023 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.393e-05/0.8208, allocations: 15.91 kB / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.43e-05/0.8209, allocations: 33.7 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.327e-05/0.821, allocations: 49.88 kB / 1.023 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.821, allocations: 3.938 kB / 1.023 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.713e-06/0.821, allocations: 0 / 1.023 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.821, allocations: 0 / 1.023 GB, free: 15.22 MB / 0.7794 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.0006993/0.8217, allocations: 446.3 kB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.8218, allocations: 12.03 kB / 1.023 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.846e-05/0.8218, allocations: 8 kB / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001989/0.822, allocations: 186.9 kB / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.8221, allocations: 4 kB / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.8221, allocations: 4 kB / 1.023 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.8224, allocations: 101.6 kB / 1.023 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.537e-06/0.8224, allocations: 0 / 1.023 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.8224, allocations: 8 kB / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.8224, allocations: 0 / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002829/0.8227, allocations: 91.86 kB / 1.024 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000596/0.8233, allocations: 344.6 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.8236, allocations: 98.55 kB / 1.024 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.8237, allocations: 0 / 1.024 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003259/0.824, allocations: 111.5 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.824, allocations: 0 / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006337/0.8246, allocations: 239.1 kB / 1.024 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.67e-05/0.8247, allocations: 85.09 kB / 1.024 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.8248, allocations: 126.1 kB / 1.024 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.8249, allocations: 33.7 kB / 1.025 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.796e-05/0.825, allocations: 96.05 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.028e-05/0.825, allocations: 15.73 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.124e-05/0.825, allocations: 8 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001248/0.8251, allocations: 322.8 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.8253, allocations: 55.95 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.8255, allocations: 55.95 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.8257, allocations: 107.5 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.8257, allocations: 0 / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004318/0.8261, allocations: 228.9 kB / 1.025 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.084e-05/0.8262, allocations: 60.81 kB / 1.025 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.8262, allocations: 0 / 1.025 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.8262, allocations: 0 / 1.025 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.8263, allocations: 23.98 kB / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.8264, allocations: 3.984 kB / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.8265, allocations: 19.98 kB / 1.025 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.925e-05/0.8265, allocations: 7.938 kB / 1.025 GB, free: 12.09 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 ($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 0.0001219/0.8266, allocations: 151.4 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.891e-05/0.8267, allocations: 11.89 kB / 1.026 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.674e-05/0.8267, allocations: 12.72 kB / 1.026 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.8267, allocations: 4 kB / 1.026 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.8267, allocations: 0 / 1.026 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.8267, allocations: 4 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000585/0.8273, allocations: 448.1 kB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.8273, allocations: 0 / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.8275, allocations: 23.92 kB / 1.026 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.8275, allocations: 0 / 1.026 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.8275, allocations: 4 kB / 1.026 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.8275, allocations: 7.984 kB / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.8275, allocations: 0 / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004504/0.828, allocations: 281 kB / 1.026 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.794e-05/0.828, allocations: 89.03 kB / 1.026 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.828, allocations: 0 / 1.026 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.8282, allocations: 19.98 kB / 1.026 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.8283, allocations: 23.97 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.8283, allocations: 7.984 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.259e-05/0.8284, allocations: 105.8 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8284, allocations: 0 / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002378/0.8287, allocations: 23.91 kB / 1.027 GB, free: 10.78 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 (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.0001249/0.8288, allocations: 99.66 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00045/0.8292, allocations: 246.7 kB / 1.027 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.8293, allocations: 0 / 1.027 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002248/0.8295, allocations: 127.3 kB / 1.027 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.8297, allocations: 11.95 kB / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004819/0.8302, allocations: 221 kB / 1.027 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.8305, allocations: 0.6965 MB / 1.028 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.365e-05/0.8305, allocations: 7.984 kB / 1.028 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.408e-05/0.8306, allocations: 11.44 kB / 1.028 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.8306, allocations: 0 / 1.028 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of Templates: time 0.003487/0.8341, allocations: 1.094 MB / 1.029 GB, free: 8.203 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches