Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") translateModel(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 102.2 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.0009828/0.0009828, allocations: 197 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002676/0.002676, allocations: 278.9 kB / 291 MB, free: 14.64 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9303/0.9303, allocations: 169.2 MB / 0.4985 GB, free: 4.742 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 94.47 kB / 0.5953 GB, free: 15.56 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.1834, allocations: 86.97 MB / 0.6803 GB, free: 8.605 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002911/0.1864, allocations: 1.531 MB / 0.6818 GB, free: 7.055 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007893/0.1872, allocations: 447.7 kB / 0.6822 GB, free: 6.613 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.396e-05/0.1873, allocations: 4 kB / 0.6822 GB, free: 6.609 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.1874, allocations: 7.938 kB / 0.6822 GB, free: 6.602 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.268e-05/0.1874, allocations: 11.92 kB / 0.6822 GB, free: 6.59 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.1877, allocations: 35.89 kB / 0.6822 GB, free: 6.555 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.1879, allocations: 99.77 kB / 0.6823 GB, free: 6.457 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.188, allocations: 20.17 kB / 0.6824 GB, free: 6.438 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.1881, allocations: 47.83 kB / 0.6824 GB, free: 6.391 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.112e-05/0.1882, allocations: 39.83 kB / 0.6824 GB, free: 6.352 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.704e-05/0.1883, allocations: 8 kB / 0.6824 GB, free: 6.344 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.763e-05/0.1883, allocations: 8 kB / 0.6825 GB, free: 6.336 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.791e-05/0.1883, allocations: 15.92 kB / 0.6825 GB, free: 6.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.003e-05/0.1884, allocations: 43.83 kB / 0.6825 GB, free: 6.277 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.1885, allocations: 56.14 kB / 0.6826 GB, free: 6.223 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1885, allocations: 4 kB / 0.6826 GB, free: 6.219 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1885, allocations: 0 / 0.6826 GB, free: 6.219 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1885, allocations: 0 / 0.6826 GB, free: 6.219 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007265/0.1893, allocations: 442.7 kB / 0.683 GB, free: 5.727 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.1893, allocations: 8.031 kB / 0.683 GB, free: 5.719 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.865e-05/0.1894, allocations: 12.83 kB / 0.683 GB, free: 5.707 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000207/0.1896, allocations: 188.2 kB / 0.6832 GB, free: 5.484 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.1896, allocations: 8.359 kB / 0.6832 GB, free: 5.477 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.639e-05/0.1896, allocations: 16.31 kB / 0.6832 GB, free: 5.461 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003948/0.19, allocations: 125.7 kB / 0.6833 GB, free: 5.332 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.1901, allocations: 0 / 0.6833 GB, free: 5.332 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.1901, allocations: 4 kB / 0.6833 GB, free: 5.328 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1901, allocations: 3.938 kB / 0.6833 GB, free: 5.324 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/0.1904, allocations: 87.92 kB / 0.6834 GB, free: 5.238 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005373/0.1909, allocations: 336.7 kB / 0.6837 GB, free: 4.859 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.1913, allocations: 106.5 kB / 0.6838 GB, free: 4.746 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.1914, allocations: 76.94 kB / 0.6839 GB, free: 4.668 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.1915, allocations: 0 / 0.6839 GB, free: 4.668 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003698/0.1918, allocations: 127.2 kB / 0.684 GB, free: 4.531 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/0.1918, allocations: 0 / 0.684 GB, free: 4.531 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007294/0.1926, allocations: 279.1 kB / 0.6843 GB, free: 4.246 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.1927, allocations: 89.09 kB / 0.6844 GB, free: 4.141 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.1928, allocations: 124.5 kB / 0.6845 GB, free: 4.012 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.1928, allocations: 29.7 kB / 0.6845 GB, free: 3.977 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.447e-05/0.1929, allocations: 99.97 kB / 0.6846 GB, free: 3.875 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.1929, allocations: 15.81 kB / 0.6846 GB, free: 3.859 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-05/0.193, allocations: 33.7 kB / 0.6847 GB, free: 3.82 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1932, allocations: 326.8 kB / 0.685 GB, free: 3.492 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.1933, allocations: 63.95 kB / 0.6851 GB, free: 3.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.1935, allocations: 68.03 kB / 0.6851 GB, free: 3.363 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.1939, allocations: 181.9 kB / 0.6853 GB, free: 3.164 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1939, allocations: 3.938 kB / 0.6853 GB, free: 3.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004929/0.1944, allocations: 257 kB / 0.6855 GB, free: 2.891 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.691e-05/0.1944, allocations: 63.41 kB / 0.6856 GB, free: 2.816 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1945, allocations: 0 / 0.6856 GB, free: 2.816 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.1945, allocations: 7.984 kB / 0.6856 GB, free: 2.809 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.1946, allocations: 11.98 kB / 0.6856 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.1946, allocations: 0 / 0.6856 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.1948, allocations: 27.83 kB / 0.6856 GB, free: 2.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.1948, allocations: 3.984 kB / 0.6857 GB, free: 2.766 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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.0001279/0.1949, allocations: 163.5 kB / 0.6858 GB, free: 2.59 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.099e-05/0.195, allocations: 7.906 kB / 0.6858 GB, free: 2.582 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.216e-05/0.195, allocations: 16.45 kB / 0.6858 GB, free: 2.566 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.195, allocations: 3.938 kB / 0.6858 GB, free: 2.562 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.195, allocations: 0 / 0.6858 GB, free: 2.562 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.195, allocations: 0 / 0.6858 GB, free: 2.562 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.1952, allocations: 197.5 kB / 0.686 GB, free: 2.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1952, allocations: 0 / 0.686 GB, free: 2.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.291e-05/0.1953, allocations: 19.92 kB / 0.686 GB, free: 2.301 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1953, allocations: 0 / 0.686 GB, free: 2.301 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.1953, allocations: 8.25 kB / 0.686 GB, free: 2.293 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1953, allocations: 0 / 0.686 GB, free: 2.293 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1953, allocations: 4 kB / 0.6861 GB, free: 2.289 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000482/0.1958, allocations: 250.5 kB / 0.6863 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.01e-05/0.1959, allocations: 89.02 kB / 0.6864 GB, free: 1.914 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.1959, allocations: 0 / 0.6864 GB, free: 1.914 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.1961, allocations: 23.97 kB / 0.6864 GB, free: 1.891 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.1962, allocations: 35.95 kB / 0.6864 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.1962, allocations: 4 kB / 0.6864 GB, free: 1.852 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.332e-05/0.1963, allocations: 99.27 kB / 0.6865 GB, free: 1.754 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1963, allocations: 0 / 0.6865 GB, free: 1.754 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002141/0.1965, allocations: 27.94 kB / 0.6866 GB, free: 1.727 MB / 494.1 MB 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,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * 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.000105/0.1966, allocations: 103.2 kB / 0.6867 GB, free: 1.617 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005473/0.1972, allocations: 274.6 kB / 0.6869 GB, free: 1.324 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1972, allocations: 0 / 0.6869 GB, free: 1.324 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002877/0.1975, allocations: 131.4 kB / 0.687 GB, free: 1.184 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.1977, allocations: 22.8 kB / 0.6871 GB, free: 1.164 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000569/0.1983, allocations: 253.1 kB / 0.6873 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.1986, allocations: 0.6923 MB / 0.688 GB, free: 168 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.594e-05/0.1987, allocations: 19.44 kB / 0.688 GB, free: 148 kB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1987, allocations: 0 / 0.688 GB, free: 148 kB / 494.1 MB Notification: Performance of Templates: time 0.3144/0.5131, allocations: 1.432 MB / 0.6894 GB, free: 17.87 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)