Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_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.001136/0.001136, allocations: 106 kB / 15.98 MB, free: 6.359 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.00114/0.00114, allocations: 195.4 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.1 MB / 222.8 MB, free: 4.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.695/1.695, allocations: 292.3 MB / 0.5492 GB, free: 13.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 63.28 kB / 0.6717 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2014, allocations: 114.5 MB / 0.7835 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002734/0.2042, allocations: 1.581 MB / 0.7851 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007783/0.205, allocations: 0.4919 MB / 0.7855 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.237e-05/0.205, allocations: 0 / 0.7855 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.16e-05/0.2051, allocations: 3.938 kB / 0.7855 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.125e-05/0.2052, allocations: 11.92 kB / 0.7856 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001961/0.2054, allocations: 23.97 kB / 0.7856 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001368/0.2056, allocations: 83.77 kB / 0.7857 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.808e-05/0.2057, allocations: 16.19 kB / 0.7857 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.2058, allocations: 47.78 kB / 0.7857 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.601e-05/0.2059, allocations: 31.89 kB / 0.7857 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.2059, allocations: 8 kB / 0.7858 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.566e-05/0.2059, allocations: 11.94 kB / 0.7858 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.973e-05/0.206, allocations: 11.98 kB / 0.7858 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.723e-05/0.206, allocations: 39.8 kB / 0.7858 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.443e-05/0.2061, allocations: 52.12 kB / 0.7859 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.2062, allocations: 0 / 0.7859 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2062, allocations: 0 / 0.7859 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.2062, allocations: 0 / 0.7859 GB, free: 11.47 MB / 0.6075 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.0006811/0.2069, allocations: 442.6 kB / 0.7863 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.2069, allocations: 8.031 kB / 0.7863 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.926e-05/0.207, allocations: 24.83 kB / 0.7863 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.2071, allocations: 184.2 kB / 0.7865 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.2072, allocations: 4.375 kB / 0.7865 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.2072, allocations: 12.31 kB / 0.7865 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.2075, allocations: 97.75 kB / 0.7866 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.2075, allocations: 0 / 0.7866 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.2075, allocations: 0 / 0.7866 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.2075, allocations: 0 / 0.7866 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002646/0.2078, allocations: 71.94 kB / 0.7867 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005377/0.2083, allocations: 340.6 kB / 0.787 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.2086, allocations: 90.39 kB / 0.7871 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.2088, allocations: 52.94 kB / 0.7871 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.2088, allocations: 0 / 0.7871 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/0.2091, allocations: 107.4 kB / 0.7872 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.2091, allocations: 4 kB / 0.7872 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005938/0.2097, allocations: 207.2 kB / 0.7874 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.2098, allocations: 81.11 kB / 0.7875 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.2099, allocations: 141 kB / 0.7877 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.2099, allocations: 25.7 kB / 0.7877 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.71e-05/0.21, allocations: 96.12 kB / 0.7878 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.21, allocations: 19.72 kB / 0.7878 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.608e-05/0.2101, allocations: 33.7 kB / 0.7878 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.2102, allocations: 322.7 kB / 0.7881 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.2104, allocations: 47.95 kB / 0.7882 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.2105, allocations: 51.95 kB / 0.7882 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.2108, allocations: 169.9 kB / 0.7884 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2109, allocations: 0 / 0.7884 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004141/0.2113, allocations: 212.9 kB / 0.7886 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.354e-05/0.2113, allocations: 59.41 kB / 0.7886 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2113, allocations: 0 / 0.7886 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.2114, allocations: 4.266 kB / 0.7886 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.2115, allocations: 15.98 kB / 0.7887 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.2115, allocations: 4.312 kB / 0.7887 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.2116, allocations: 23.86 kB / 0.7887 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.2117, allocations: 7.938 kB / 0.7887 GB, free: 8.277 MB / 0.6075 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.0001113/0.2118, allocations: 156.1 kB / 0.7888 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.2118, allocations: 7.906 kB / 0.7889 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.932e-05/0.2118, allocations: 12.72 kB / 0.7889 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2119, allocations: 0 / 0.7889 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2119, allocations: 0 / 0.7889 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.2119, allocations: 4 kB / 0.7889 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005297/0.2124, allocations: 432.1 kB / 0.7893 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2124, allocations: 0 / 0.7893 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.325e-05/0.2125, allocations: 11.98 kB / 0.7893 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.2125, allocations: 0 / 0.7893 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.2125, allocations: 15.92 kB / 0.7893 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.2125, allocations: 7.875 kB / 0.7893 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.2126, allocations: 8 kB / 0.7893 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004056/0.213, allocations: 265.1 kB / 0.7896 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.751e-05/0.213, allocations: 81.02 kB / 0.7897 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.469e-05/0.2131, allocations: 4 kB / 0.7897 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.2132, allocations: 19.92 kB / 0.7897 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.301e-05/0.2133, allocations: 23.97 kB / 0.7897 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.2133, allocations: 4 kB / 0.7897 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.751e-05/0.2134, allocations: 99.27 kB / 0.7898 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.71e-07/0.2134, allocations: 0 / 0.7898 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002368/0.2136, allocations: 19.98 kB / 0.7898 GB, free: 7.008 MB / 0.6075 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.0001177/0.2138, allocations: 111.2 kB / 0.7899 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004409/0.2142, allocations: 226.7 kB / 0.7901 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2142, allocations: 0 / 0.7901 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.2144, allocations: 115.3 kB / 0.7902 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002665/0.2147, allocations: 4 kB / 0.7903 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000512/0.2152, allocations: 260.5 kB / 0.7905 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.2155, allocations: 0.6885 MB / 0.7912 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.2156, allocations: 15.44 kB / 0.7912 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of SimCode: time 3.31e-07/0.2156, allocations: 0 / 0.7912 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of Templates: time 0.002745/0.2183, allocations: 1.269 MB / 0.7924 GB, free: 4.25 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)