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.0009999/0.0009999, allocations: 107.3 kB / 16.29 MB, free: 6.43 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.0009033/0.0009032, allocations: 184 kB / 17.22 MB, free: 5.934 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.171/1.171, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.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.595/1.595, allocations: 292.3 MB / 0.5495 GB, free: 17.56 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.001498/0.001498, allocations: 63.91 kB / 0.6722 GB, free: 6.566 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1875, allocations: 114.5 MB / 0.7841 GB, free: 3.898 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002566/0.1901, allocations: 1.519 MB / 0.7856 GB, free: 2.363 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.000746/0.1909, allocations: 495.7 kB / 0.786 GB, free: 1.871 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.022e-05/0.191, allocations: 0 / 0.786 GB, free: 1.871 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 7.811e-05/0.191, allocations: 15.8 kB / 0.786 GB, free: 1.855 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 4.708e-05/0.1911, allocations: 15.88 kB / 0.7861 GB, free: 1.84 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.1913, allocations: 27.89 kB / 0.7861 GB, free: 1.812 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.1914, allocations: 87.83 kB / 0.7862 GB, free: 1.727 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.4e-05/0.1915, allocations: 16.17 kB / 0.7862 GB, free: 1.711 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.1917, allocations: 47.78 kB / 0.7862 GB, free: 1.664 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.946e-05/0.1918, allocations: 35.89 kB / 0.7863 GB, free: 1.629 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/0.1918, allocations: 8 kB / 0.7863 GB, free: 1.621 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.637e-05/0.1918, allocations: 4 kB / 0.7863 GB, free: 1.617 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.269e-05/0.1919, allocations: 19.92 kB / 0.7863 GB, free: 1.598 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.155e-05/0.1919, allocations: 31.8 kB / 0.7863 GB, free: 1.566 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.192, allocations: 72 kB / 0.7864 GB, free: 1.496 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.192, allocations: 0 / 0.7864 GB, free: 1.496 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.062e-06/0.1921, allocations: 0 / 0.7864 GB, free: 1.496 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.1921, allocations: 0 / 0.7864 GB, free: 1.496 MB / 0.6544 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.0005855/0.1927, allocations: 454.6 kB / 0.7868 GB, free: 0.9922 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.1927, allocations: 8.031 kB / 0.7868 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.26e-05/0.1927, allocations: 8.844 kB / 0.7868 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.1929, allocations: 192.1 kB / 0.787 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.1929, allocations: 4.375 kB / 0.787 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.1929, allocations: 12.36 kB / 0.787 GB, free: 0.7344 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002437/0.1932, allocations: 89.77 kB / 0.7871 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.1932, allocations: 0 / 0.7871 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.1932, allocations: 11.88 kB / 0.7871 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1932, allocations: 4 kB / 0.7871 GB, free: 0.625 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.1935, allocations: 75.86 kB / 0.7872 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004683/0.194, allocations: 324.8 kB / 0.7875 GB, free: 188 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.1942, allocations: 94.55 kB / 0.7876 GB, free: 84 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.1944, allocations: 52.94 kB / 0.7877 GB, free: 28 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.1944, allocations: 0 / 0.7877 GB, free: 28 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2947/0.4891, allocations: 103.5 kB / 0.7878 GB, free: 49.03 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 3.777e-06/0.4892, allocations: 0.7188 kB / 0.7878 GB, free: 49.03 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0005473/0.4897, allocations: 212.1 kB / 0.788 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.4898, allocations: 83.67 kB / 0.7881 GB, free: 48.87 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.51e-05/0.4898, allocations: 131.7 kB / 0.7882 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.4899, allocations: 31.53 kB / 0.7882 GB, free: 48.74 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.875e-05/0.4899, allocations: 94.3 kB / 0.7883 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.4899, allocations: 18.23 kB / 0.7883 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.007e-05/0.49, allocations: 25.58 kB / 0.7883 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.496e-05/0.49, allocations: 321.7 kB / 0.7886 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.4902, allocations: 50.14 kB / 0.7887 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.4903, allocations: 51.2 kB / 0.7887 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002426/0.4906, allocations: 164.5 kB / 0.7889 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.4906, allocations: 0 / 0.7889 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003398/0.4909, allocations: 217.1 kB / 0.7891 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.491, allocations: 62.41 kB / 0.7892 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.491, allocations: 0 / 0.7892 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.491, allocations: 2.844 kB / 0.7892 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.4911, allocations: 22.66 kB / 0.7892 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.4911, allocations: 1.219 kB / 0.7892 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.4913, allocations: 21.42 kB / 0.7892 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.4913, allocations: 2.594 kB / 0.7892 GB, free: 48.06 MB / 0.6544 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 7.403e-05/0.4914, allocations: 157.7 kB / 0.7894 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.943e-05/0.4914, allocations: 6.688 kB / 0.7894 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.4914, allocations: 15.7 kB / 0.7894 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.4914, allocations: 3.219 kB / 0.7894 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4914, allocations: 2.625 kB / 0.7894 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4915, allocations: 0 / 0.7894 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004426/0.4919, allocations: 428.2 kB / 0.7898 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4919, allocations: 3.719 kB / 0.7898 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.664e-05/0.492, allocations: 21.27 kB / 0.7898 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.492, allocations: 2.688 kB / 0.7898 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.492, allocations: 4.844 kB / 0.7898 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.492, allocations: 0 / 0.7898 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.492, allocations: 0 / 0.7898 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003235/0.4924, allocations: 274.5 kB / 0.7901 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.516e-05/0.4924, allocations: 90.53 kB / 0.7902 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.4924, allocations: 3.188 kB / 0.7902 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.4926, allocations: 13.73 kB / 0.7902 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.296e-05/0.4927, allocations: 21.2 kB / 0.7902 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.4927, allocations: 6.453 kB / 0.7902 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.199e-05/0.4927, allocations: 100.9 kB / 0.7903 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4927, allocations: 0 / 0.7903 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002222/0.493, allocations: 19.31 kB / 0.7903 GB, free: 47.24 MB / 0.6544 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 8.524e-05/0.493, allocations: 109.4 kB / 0.7904 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003617/0.4934, allocations: 222.7 kB / 0.7907 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4934, allocations: 0 / 0.7907 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.4936, allocations: 111.5 kB / 0.7908 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.4939, allocations: 11.97 kB / 0.7908 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004212/0.4943, allocations: 197.4 kB / 0.791 GB, free: 46.85 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001062/0.4944, allocations: 0.6965 MB / 0.7916 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 5.397e-05/0.4945, allocations: 16.23 kB / 0.7917 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.599e-05/0.4945, allocations: 17.81 kB / 0.7917 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of SimCode: time 2.01e-07/0.4945, allocations: 0 / 0.7917 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of Templates: time 0.003183/0.4977, allocations: 1.31 MB / 0.793 GB, free: 46.12 MB / 0.6544 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)