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.001227/0.001227, allocations: 103 kB / 16.36 MB, free: 6.301 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.001116/0.001116, allocations: 192.5 kB / 17.29 MB, free: 5.875 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.49/1.49, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.843/1.843, allocations: 292.3 MB / 0.5496 GB, free: 17.44 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.001386/0.001387, allocations: 67.91 kB / 0.6729 GB, free: 5.836 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2333, allocations: 114.6 MB / 0.7848 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003084/0.2364, allocations: 1.522 MB / 0.7863 GB, free: 1.629 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0009222/0.2374, allocations: 495.7 kB / 0.7867 GB, free: 1.137 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.989e-05/0.2375, allocations: 0 / 0.7867 GB, free: 1.137 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.2376, allocations: 7.875 kB / 0.7868 GB, free: 1.129 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.72e-05/0.2377, allocations: 11.88 kB / 0.7868 GB, free: 1.117 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.2379, allocations: 43.88 kB / 0.7868 GB, free: 1.074 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001699/0.2381, allocations: 79.77 kB / 0.7869 GB, free: 0.9961 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.2382, allocations: 20.19 kB / 0.7869 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.2384, allocations: 47.77 kB / 0.787 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.034e-05/0.2385, allocations: 31.91 kB / 0.787 GB, free: 0.8984 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.2385, allocations: 8 kB / 0.787 GB, free: 0.8906 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.542e-05/0.2386, allocations: 4 kB / 0.787 GB, free: 0.8867 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 5.169e-05/0.2386, allocations: 15.92 kB / 0.787 GB, free: 0.8711 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.318e-05/0.2387, allocations: 35.8 kB / 0.787 GB, free: 0.8359 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.2388, allocations: 79.7 kB / 0.7871 GB, free: 0.7578 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.2389, allocations: 0 / 0.7871 GB, free: 0.7578 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2389, allocations: 3.938 kB / 0.7871 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.663e-06/0.2389, allocations: 0 / 0.7871 GB, free: 0.7539 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.0007309/0.2396, allocations: 442.6 kB / 0.7875 GB, free: 268 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.2397, allocations: 8.031 kB / 0.7876 GB, free: 260 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.769e-05/0.2397, allocations: 8.844 kB / 0.7876 GB, free: 252 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001979/0.2399, allocations: 192.2 kB / 0.7877 GB, free: 20 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.2399, allocations: 8.375 kB / 0.7878 GB, free: 12 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.24, allocations: 4.375 kB / 0.7878 GB, free: 8 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3803/0.6202, allocations: 93.03 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.6203, allocations: 1.094 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.6203, allocations: 8.25 kB / 0.7879 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.6203, allocations: 1.062 kB / 0.7879 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002812/0.6206, allocations: 77.09 kB / 0.7879 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005544/0.6212, allocations: 331.3 kB / 0.7882 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000275/0.6215, allocations: 80.05 kB / 0.7883 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.6216, allocations: 55.41 kB / 0.7884 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.6217, allocations: 0.8438 kB / 0.7884 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003282/0.622, allocations: 107.8 kB / 0.7885 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 2.815e-06/0.622, allocations: 2.625 kB / 0.7885 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0005908/0.6226, allocations: 214.4 kB / 0.7887 GB, free: 48.56 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.6227, allocations: 79.73 kB / 0.7888 GB, free: 48.46 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.318e-05/0.6228, allocations: 135.2 kB / 0.7889 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.6228, allocations: 33.14 kB / 0.7889 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.565e-05/0.6228, allocations: 95.17 kB / 0.789 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.6229, allocations: 19.47 kB / 0.789 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.085e-05/0.6229, allocations: 25.94 kB / 0.7891 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.686e-05/0.623, allocations: 320.3 kB / 0.7894 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.6231, allocations: 46.67 kB / 0.7894 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.6233, allocations: 51.19 kB / 0.7895 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002712/0.6236, allocations: 165.6 kB / 0.7896 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.6236, allocations: 2.75 kB / 0.7896 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003715/0.624, allocations: 211.8 kB / 0.7898 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.287e-05/0.624, allocations: 64.81 kB / 0.7899 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.624, allocations: 0.6875 kB / 0.7899 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.6241, allocations: 3.656 kB / 0.7899 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.6242, allocations: 13.64 kB / 0.7899 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.6242, allocations: 6.562 kB / 0.7899 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.6243, allocations: 22.52 kB / 0.7899 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.6244, allocations: 2.625 kB / 0.7899 GB, free: 47.65 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 9.019e-05/0.6245, allocations: 150.3 kB / 0.7901 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.917e-05/0.6245, allocations: 13.09 kB / 0.7901 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.906e-05/0.6245, allocations: 11.97 kB / 0.7901 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.6245, allocations: 2 kB / 0.7901 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.6246, allocations: 3.938 kB / 0.7901 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.6246, allocations: 6.031 kB / 0.7901 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004901/0.6251, allocations: 438.7 kB / 0.7905 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.6251, allocations: 0.625 kB / 0.7905 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.731e-05/0.6252, allocations: 12.77 kB / 0.7905 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.6252, allocations: 2.625 kB / 0.7905 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.6252, allocations: 4.453 kB / 0.7905 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.6252, allocations: 3 kB / 0.7905 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.6252, allocations: 6 kB / 0.7906 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003698/0.6256, allocations: 269 kB / 0.7908 GB, free: 47 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.782e-05/0.6256, allocations: 77.7 kB / 0.7909 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.6256, allocations: 8.031 kB / 0.7909 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.6258, allocations: 16.09 kB / 0.7909 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.6259, allocations: 22.19 kB / 0.7909 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.6259, allocations: 6 kB / 0.7909 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.512e-05/0.626, allocations: 105.7 kB / 0.791 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.626, allocations: 4.031 kB / 0.791 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002309/0.6262, allocations: 20.5 kB / 0.7911 GB, free: 46.82 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.0001077/0.6263, allocations: 100.9 kB / 0.7912 GB, free: 46.74 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004235/0.6268, allocations: 227.7 kB / 0.7914 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.6268, allocations: 6.469 kB / 0.7914 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.627, allocations: 109.2 kB / 0.7915 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.6273, allocations: 13.98 kB / 0.7915 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004853/0.6278, allocations: 231.8 kB / 0.7917 GB, free: 46.4 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000128/0.6279, allocations: 0.6913 MB / 0.7924 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.173e-05/0.628, allocations: 17.94 kB / 0.7924 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of SimCode: time 2.21e-07/0.628, allocations: 0 / 0.7924 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of Templates: time 0.002787/0.6308, allocations: 1.252 MB / 0.7936 GB, free: 45.67 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)