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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.458/2.458, allocations: 393.5 MB / 408.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 184 kB / 0.4902 GB, free: 2.242 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.727/1.727, allocations: 223.2 MB / 0.7992 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 98.77 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005916/0.0005916, allocations: 14.28 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3979, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2062/0.6042, allocations: 151.5 MB / 1.377 GB, free: 2.016 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003584/0.6047, allocations: 103.9 kB / 1.377 GB, free: 1.914 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.005724/0.6104, allocations: 1.548 MB / 1.379 GB, free: 372 kB / 0.8698 GB Notification: Performance of FrontEnd: time 1.402e-06/0.6104, allocations: 0 / 1.379 GB, free: 372 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.057e-05/0.6105, allocations: 4 kB / 1.379 GB, free: 368 kB / 0.8698 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.0008034/0.6113, allocations: 446.4 kB / 1.379 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/0.6114, allocations: 12.56 kB / 1.379 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.462e-05/0.6114, allocations: 11.91 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.6117, allocations: 190.9 kB / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.6118, allocations: 0 / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.6118, allocations: 8 kB / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003561/0.6121, allocations: 101.6 kB / 1.38 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.6122, allocations: 4 kB / 1.38 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.6122, allocations: 0 / 1.38 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.6122, allocations: 0 / 1.38 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003393/0.6126, allocations: 91.88 kB / 1.38 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009043/0.6135, allocations: 348.6 kB / 1.38 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003587/0.6139, allocations: 94.55 kB / 1.38 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.853e-05/0.6139, allocations: 8 kB / 1.38 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003743/0.6143, allocations: 107.5 kB / 1.38 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 2.475e-06/0.6143, allocations: 0 / 1.38 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0008509/0.6152, allocations: 243.1 kB / 1.38 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.6153, allocations: 86.89 kB / 1.38 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.6155, allocations: 121.2 kB / 1.381 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.6156, allocations: 25.7 kB / 1.381 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.6157, allocations: 96.05 kB / 1.381 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.6157, allocations: 23.73 kB / 1.381 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.747e-06/0.6157, allocations: 0 / 1.381 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002171/0.616, allocations: 318.8 kB / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.6162, allocations: 59.95 kB / 1.381 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.6164, allocations: 55.95 kB / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.6166, allocations: 107.4 kB / 1.381 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.6166, allocations: 0 / 1.381 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005506/0.6172, allocations: 224.9 kB / 1.381 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/0.6173, allocations: 59.41 kB / 1.382 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.6173, allocations: 0 / 1.382 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.906e-05/0.6173, allocations: 4 kB / 1.382 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.6175, allocations: 19.94 kB / 1.382 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.6175, allocations: 3.938 kB / 1.382 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.6177, allocations: 35.81 kB / 1.382 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.6177, allocations: 4 kB / 1.382 GB, free: 13.23 MB / 0.8855 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.000183/0.6179, allocations: 143.5 kB / 1.382 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.076e-05/0.618, allocations: 11.91 kB / 1.382 GB, free: 13.06 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.7e-05/0.618, allocations: 16.69 kB / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.6181, allocations: 0 / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.6181, allocations: 7.953 kB / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.6181, allocations: 0 / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008342/0.6189, allocations: 444.5 kB / 1.382 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.619, allocations: 0 / 1.382 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.6191, allocations: 23.92 kB / 1.382 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.6191, allocations: 3.938 kB / 1.382 GB, free: 12.51 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.6191, allocations: 8 kB / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.6191, allocations: 3.953 kB / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.6191, allocations: 0 / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006105/0.6198, allocations: 285.4 kB / 1.382 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.6199, allocations: 85 kB / 1.383 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.6199, allocations: 8 kB / 1.383 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.6201, allocations: 15.98 kB / 1.383 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.6203, allocations: 23.92 kB / 1.383 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.6203, allocations: 4 kB / 1.383 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001127/0.6204, allocations: 109.8 kB / 1.383 GB, free: 11.94 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6204, allocations: 0 / 1.383 GB, free: 11.94 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002991/0.6207, allocations: 16 kB / 1.383 GB, free: 11.93 MB / 0.8855 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.0003235/0.6211, allocations: 109.5 kB / 1.383 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006319/0.6217, allocations: 238.7 kB / 1.383 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.6217, allocations: 0 / 1.383 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003211/0.6221, allocations: 123.3 kB / 1.383 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.6224, allocations: 12 kB / 1.383 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000831/0.6233, allocations: 221 kB / 1.383 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006282/0.6239, allocations: 0.706 MB / 1.384 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 9.123e-05/0.624, allocations: 11.77 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.696e-05/0.6241, allocations: 11.44 kB / 1.384 GB, free: 10.41 MB / 0.8855 GB Notification: Performance of SimCode: time 1.513e-06/0.6241, allocations: 0 / 1.384 GB, free: 10.41 MB / 0.8855 GB Notification: Performance of Templates: time 0.005749/0.6298, allocations: 1.097 MB / 1.385 GB, free: 9.328 MB / 0.8855 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