Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8569/0.8569, allocations: 143.4 MB / 158.3 MB, free: 5.844 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 175.5 kB / 191.5 MB, free: 5.773 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 223.2 MB / 447.7 MB, free: 4.734 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 103.7 kB / 0.5188 GB, free: 1.082 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001693/0.001693, allocations: 274.4 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004589/0.0004589, allocations: 14.44 kB / 0.6929 GB, free: 59.65 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.1825, allocations: 82.8 MB / 0.7737 GB, free: 13.85 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1634/0.3459, allocations: 108.8 MB / 0.88 GB, free: 0.8594 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.3462, allocations: 70 kB / 0.8801 GB, free: 0.793 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.4412/0.7874, allocations: 1.122 MB / 0.8812 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.004e-06/0.7875, allocations: 0.7812 kB / 0.8812 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.619e-05/0.7875, allocations: 1.125 kB / 0.8812 GB, free: 109.2 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005839/0.7881, allocations: 385.5 kB / 0.8815 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.7881, allocations: 8.875 kB / 0.8816 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.403e-05/0.7882, allocations: 7 kB / 0.8816 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.7884, allocations: 192.2 kB / 0.8817 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.7884, allocations: 5.922 kB / 0.8818 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.7884, allocations: 3.562 kB / 0.8818 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003655/0.7888, allocations: 100.8 kB / 0.8819 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.7888, allocations: 7.297 kB / 0.8819 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.7889, allocations: 4.547 kB / 0.8819 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.7889, allocations: 3.875 kB / 0.8819 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003436/0.7892, allocations: 96.98 kB / 0.882 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005664/0.7898, allocations: 337.9 kB / 0.8823 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.79, allocations: 72.81 kB / 0.8823 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 4.464e-05/0.7901, allocations: 3.703 kB / 0.8824 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.7901, allocations: 31.5 kB / 0.8824 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.7901, allocations: 4 kB / 0.8824 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.000587/0.7907, allocations: 171.4 kB / 0.8826 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.7907, allocations: 51.41 kB / 0.8826 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.952e-05/0.7908, allocations: 109.2 kB / 0.8827 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.7908, allocations: 25.7 kB / 0.8827 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.433e-05/0.7909, allocations: 102.8 kB / 0.8828 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/0.7909, allocations: 3.906 kB / 0.8828 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/0.7909, allocations: 1.688 kB / 0.8828 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.203e-05/0.791, allocations: 325.6 kB / 0.8831 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.7912, allocations: 43.19 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.7913, allocations: 44.42 kB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.7915, allocations: 50.06 kB / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.7915, allocations: 0 / 0.8833 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003202/0.7918, allocations: 126.1 kB / 0.8834 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.7918, allocations: 9.766 kB / 0.8834 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.7918, allocations: 0 / 0.8834 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.7919, allocations: 0 / 0.8834 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.792, allocations: 21.77 kB / 0.8834 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.792, allocations: 7.984 kB / 0.8834 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.268e-05/0.7921, allocations: 21.81 kB / 0.8835 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.7921, allocations: 2.5 kB / 0.8835 GB, free: 107.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.587e-05/0.7922, allocations: 118.7 kB / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.7923, allocations: 0.875 kB / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003971/0.7927, allocations: 145.8 kB / 0.8837 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.7927, allocations: 0 / 0.8837 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.7927, allocations: 4 kB / 0.8837 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.7927, allocations: 5.469 kB / 0.8837 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.7928, allocations: 182.1 kB / 0.8839 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.7929, allocations: 3 kB / 0.8839 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.818e-05/0.793, allocations: 18.34 kB / 0.8839 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.793, allocations: 3.328 kB / 0.8839 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/0.793, allocations: 0 / 0.8839 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.793, allocations: 0 / 0.8839 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.793, allocations: 7.531 kB / 0.8839 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003437/0.7933, allocations: 221.4 kB / 0.8841 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.582e-05/0.7934, allocations: 81.02 kB / 0.8842 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.53e-05/0.7934, allocations: 2.5 kB / 0.8842 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.7935, allocations: 17 kB / 0.8842 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.152e-05/0.7936, allocations: 11.11 kB / 0.8842 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.7936, allocations: 4 kB / 0.8842 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.72e-05/0.7936, allocations: 92.12 kB / 0.8843 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7936, allocations: 0 / 0.8843 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002149/0.7938, allocations: 14.84 kB / 0.8843 GB, free: 106.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001495/0.794, allocations: 99.67 kB / 0.8844 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003409/0.7944, allocations: 99.97 kB / 0.8845 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.7944, allocations: 0 / 0.8845 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.7945, allocations: 48.55 kB / 0.8846 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001831/0.7947, allocations: 13.59 kB / 0.8846 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003723/0.7951, allocations: 165.9 kB / 0.8848 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001643/0.7953, allocations: 0.6954 MB / 0.8854 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.411e-05/0.7953, allocations: 5.797 kB / 0.8854 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.416e-05/0.7953, allocations: 10.22 kB / 0.8854 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of SimCode: time 3.21e-07/0.7953, allocations: 0 / 0.8854 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of Templates: time 0.002828/0.7982, allocations: 0.6025 MB / 0.886 GB, free: 105.8 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)