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.001104/0.001104, allocations: 104.7 kB / 16.27 MB, free: 5.98 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.001259/0.001259, allocations: 189.8 kB / 17.2 MB, free: 5.605 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.475/1.475, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.794/1.794, allocations: 292.3 MB / 0.5495 GB, free: 17.57 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.001446/0.001447, allocations: 71.91 kB / 0.6722 GB, free: 6.562 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2693, allocations: 114.5 MB / 0.784 GB, free: 3.902 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.004452/0.2738, allocations: 1.527 MB / 0.7855 GB, free: 2.355 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001383/0.2752, allocations: 491.7 kB / 0.786 GB, free: 1.867 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.535e-05/0.2753, allocations: 3.938 kB / 0.786 GB, free: 1.863 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.2755, allocations: 11.92 kB / 0.786 GB, free: 1.852 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.946e-05/0.2756, allocations: 11.88 kB / 0.786 GB, free: 1.84 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002968/0.2759, allocations: 27.91 kB / 0.786 GB, free: 1.812 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002125/0.2761, allocations: 83.81 kB / 0.7861 GB, free: 1.73 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.2763, allocations: 16.19 kB / 0.7861 GB, free: 1.715 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.2765, allocations: 47.78 kB / 0.7862 GB, free: 1.668 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.2767, allocations: 51.75 kB / 0.7862 GB, free: 1.617 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.381e-05/0.2767, allocations: 4 kB / 0.7862 GB, free: 1.613 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 2.78e-05/0.2767, allocations: 8 kB / 0.7862 GB, free: 1.605 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.367e-05/0.2768, allocations: 4 kB / 0.7862 GB, free: 1.602 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 9.896e-05/0.2769, allocations: 39.8 kB / 0.7863 GB, free: 1.562 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001846/0.2771, allocations: 67.98 kB / 0.7863 GB, free: 1.496 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 8.607e-06/0.2772, allocations: 4 kB / 0.7864 GB, free: 1.492 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.134e-06/0.2772, allocations: 4 kB / 0.7864 GB, free: 1.488 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.169e-05/0.2772, allocations: 0 / 0.7864 GB, free: 1.488 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.001062/0.2783, allocations: 442.6 kB / 0.7868 GB, free: 0.9961 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.2783, allocations: 12.02 kB / 0.7868 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.657e-05/0.2784, allocations: 8.844 kB / 0.7868 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.2787, allocations: 188.2 kB / 0.787 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.2788, allocations: 4.375 kB / 0.787 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.631e-05/0.2788, allocations: 8.375 kB / 0.787 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004794/0.2793, allocations: 97.75 kB / 0.7871 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.2793, allocations: 7.938 kB / 0.7871 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.2794, allocations: 0 / 0.7871 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.2794, allocations: 0 / 0.7871 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005281/0.2799, allocations: 75.86 kB / 0.7872 GB, free: 0.5586 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008372/0.2808, allocations: 336.8 kB / 0.7875 GB, free: 184 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004785/0.2813, allocations: 86.55 kB / 0.7876 GB, free: 88 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003057/0.2816, allocations: 52.94 kB / 0.7876 GB, free: 32 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.2816, allocations: 4 kB / 0.7876 GB, free: 28 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5275/0.8091, allocations: 100.5 kB / 0.7877 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 4.579e-06/0.8092, allocations: 0 / 0.7877 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0006271/0.8098, allocations: 206.6 kB / 0.7879 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.8099, allocations: 87.8 kB / 0.788 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.346e-05/0.81, allocations: 132.8 kB / 0.7881 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.81, allocations: 29.64 kB / 0.7882 GB, free: 48.56 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.459e-05/0.81, allocations: 97.38 kB / 0.7882 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.091e-05/0.8101, allocations: 17.83 kB / 0.7883 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.234e-05/0.8101, allocations: 30.19 kB / 0.7883 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.697e-05/0.8102, allocations: 319.1 kB / 0.7886 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.8103, allocations: 44.28 kB / 0.7886 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.8105, allocations: 56.77 kB / 0.7887 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.8108, allocations: 164.9 kB / 0.7888 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.8108, allocations: 0.7812 kB / 0.7888 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003646/0.8112, allocations: 216.8 kB / 0.7891 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.8112, allocations: 63.69 kB / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.8112, allocations: 0 / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.8112, allocations: 0 / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.8114, allocations: 22.94 kB / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.8114, allocations: 0 / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.8115, allocations: 27.89 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.8116, allocations: 5.25 kB / 0.7892 GB, free: 47.89 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 8.223e-05/0.8116, allocations: 148.7 kB / 0.7893 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.708e-05/0.8117, allocations: 9.312 kB / 0.7893 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.738e-05/0.8117, allocations: 17.45 kB / 0.7893 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.8117, allocations: 1.172 kB / 0.7893 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.8117, allocations: 0 / 0.7893 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.8117, allocations: 0 / 0.7893 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004707/0.8122, allocations: 437.3 kB / 0.7898 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.8122, allocations: 0 / 0.7898 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.119e-05/0.8123, allocations: 17.52 kB / 0.7898 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.8123, allocations: 2.625 kB / 0.7898 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.8124, allocations: 0.875 kB / 0.7898 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.8124, allocations: 0.9688 kB / 0.7898 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.8124, allocations: 0.9375 kB / 0.7898 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004529/0.8128, allocations: 278.8 kB / 0.79 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.859e-05/0.8129, allocations: 86.88 kB / 0.7901 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.8129, allocations: 0 / 0.7901 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.813, allocations: 13.64 kB / 0.7901 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.8132, allocations: 22.92 kB / 0.7902 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.8132, allocations: 7.078 kB / 0.7902 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.472e-05/0.8132, allocations: 104.9 kB / 0.7903 GB, free: 47.07 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8132, allocations: 0 / 0.7903 GB, free: 47.07 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002334/0.8135, allocations: 21.28 kB / 0.7903 GB, free: 47.07 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 0.0001039/0.8136, allocations: 107.7 kB / 0.7904 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004113/0.814, allocations: 225 kB / 0.7906 GB, free: 46.85 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.814, allocations: 0.625 kB / 0.7906 GB, free: 46.85 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.8142, allocations: 113.8 kB / 0.7907 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.8145, allocations: 14.78 kB / 0.7907 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004911/0.815, allocations: 221.7 kB / 0.7909 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001289/0.8151, allocations: 0.6946 MB / 0.7916 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.108e-05/0.8152, allocations: 10.06 kB / 0.7916 GB, free: 45.94 MB / 0.6544 GB Notification: Performance of SimCode: time 3.01e-07/0.8152, allocations: 2.625 kB / 0.7916 GB, free: 45.94 MB / 0.6544 GB Notification: Performance of Templates: time 0.002678/0.8179, allocations: 1.256 MB / 0.7929 GB, free: 45.92 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 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)