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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",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.021/2.021, allocations: 391.2 MB / 407 MB, free: 10.88 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.00107/0.00107, allocations: 198.8 kB / 499.1 MB, free: 4.664 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.359/1.359, allocations: 222.9 MB / 0.7948 GB, free: 15.79 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.0009872/0.0009872, allocations: 115.7 kB / 0.9329 GB, free: 7.066 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 49.83 kB / 1.081 GB, free: 218.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2013, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002058/0.2034, allocations: 1.579 MB / 1.22 GB, free: 115.6 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0005215/0.2039, allocations: 451.8 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.56e-05/0.204, allocations: 4 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 8.736e-05/0.2041, allocations: 7.938 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 4.15e-05/0.2041, allocations: 15.84 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001512/0.2043, allocations: 23.98 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 8.265e-05/0.2044, allocations: 79.77 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 8.708e-05/0.2045, allocations: 16.19 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 9.089e-05/0.2046, allocations: 39.83 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 6.263e-05/0.2046, allocations: 35.84 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.2047, allocations: 4 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 1.449e-05/0.2047, allocations: 4 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 3.525e-05/0.2047, allocations: 15.92 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 5.024e-05/0.2048, allocations: 31.84 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 9.279e-05/0.2049, allocations: 61.89 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2049, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of FrontEnd: time 6.61e-07/0.2049, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.2049, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 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.0005085/0.2054, allocations: 454.6 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.2055, allocations: 11.98 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.671e-05/0.2055, allocations: 20.77 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.2056, allocations: 191.6 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.2056, allocations: 384 / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.2057, allocations: 8.375 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.2059, allocations: 105.7 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.2059, allocations: 0 / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.2059, allocations: 0 / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2059, allocations: 3.984 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002304/0.2062, allocations: 75.88 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004041/0.2066, allocations: 340.6 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.2068, allocations: 82.55 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/0.2069, allocations: 52.94 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.207, allocations: 0 / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002276/0.2072, allocations: 107.3 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.2072, allocations: 0 / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0004886/0.2077, allocations: 211.1 kB / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.2077, allocations: 81.11 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.827e-05/0.2078, allocations: 134.1 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.2078, allocations: 29.7 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.271e-05/0.2079, allocations: 100 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.2079, allocations: 15.75 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.251e-05/0.2079, allocations: 29.7 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 3.754e-05/0.208, allocations: 322.8 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.2081, allocations: 43.95 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.2083, allocations: 55.95 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.2085, allocations: 165.8 kB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2085, allocations: 0 / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003242/0.2088, allocations: 209 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.2089, allocations: 67.41 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.2089, allocations: 0 / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.2089, allocations: 3.984 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.209, allocations: 19.92 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.209, allocations: 0 / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.2091, allocations: 19.98 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.2092, allocations: 3.938 kB / 1.223 GB, free: 111.7 MB / 0.823 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 6.188e-05/0.2092, allocations: 156.1 kB / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.49e-05/0.2092, allocations: 11.91 kB / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.2093, allocations: 12.72 kB / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2093, allocations: 0 / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2093, allocations: 0 / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.2093, allocations: 0 / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004078/0.2097, allocations: 436.1 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2097, allocations: 0 / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.388e-05/0.2098, allocations: 15.98 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2098, allocations: 3.984 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.2098, allocations: 4 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2098, allocations: 3.938 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2098, allocations: 0 / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005316/0.2104, allocations: 0.8704 MB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.008e-05/0.2104, allocations: 92.94 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.2104, allocations: 0 / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.2106, allocations: 11.98 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/0.2106, allocations: 31.95 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.2106, allocations: 0 / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.477e-05/0.2107, allocations: 105.8 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2107, allocations: 4 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002954/0.211, allocations: 16 kB / 1.225 GB, free: 109.7 MB / 0.823 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 7.398e-05/0.2111, allocations: 103.2 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0003305/0.2114, allocations: 222.7 kB / 1.225 GB, free: 109.4 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2114, allocations: 0 / 1.225 GB, free: 109.4 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.2116, allocations: 115.4 kB / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.2118, allocations: 17.58 kB / 1.225 GB, free: 109.2 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004019/0.2122, allocations: 351.5 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.677e-05/0.2123, allocations: 0.6976 MB / 1.226 GB, free: 108.1 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 4.739e-05/0.2124, allocations: 11.98 kB / 1.226 GB, free: 108.1 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.757e-05/0.2124, allocations: 7.438 kB / 1.226 GB, free: 108.1 MB / 0.823 GB Notification: Performance of SimCode: time 2e-07/0.2124, allocations: 0 / 1.226 GB, free: 108.1 MB / 0.823 GB Notification: Performance of Templates: time 0.002516/0.2149, allocations: 1.204 MB / 1.228 GB, free: 106.9 MB / 0.823 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 -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)