Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.956/2.956, allocations: 287.5 MB / 302.4 MB, free: 8.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001422/0.001422, allocations: 181.8 kB / 371 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.168/2.168, allocations: 205.4 MB / 0.6297 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001064/0.001064, allocations: 94.73 kB / 0.743 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006911/0.0006914, allocations: 12.53 kB / 0.8658 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2301, allocations: 115.3 MB / 0.9783 GB, free: 28.38 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001889/0.232, allocations: 1.238 MB / 0.9796 GB, free: 27.12 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003479/0.2324, allocations: 104.6 kB / 0.9797 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.383e-05/0.2325, allocations: 11.94 kB / 0.9797 GB, free: 27.01 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001081/0.2326, allocations: 7.875 kB / 0.9797 GB, free: 27 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 3.139e-05/0.2327, allocations: 7.875 kB / 0.9797 GB, free: 26.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.2329, allocations: 23.97 kB / 0.9797 GB, free: 26.97 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.302e-05/0.233, allocations: 47.84 kB / 0.9797 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.2331, allocations: 19.98 kB / 0.9798 GB, free: 26.9 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.595e-05/0.2332, allocations: 23.91 kB / 0.9798 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.949e-05/0.2333, allocations: 23.91 kB / 0.9798 GB, free: 26.86 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.2333, allocations: 4 kB / 0.9798 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.184e-05/0.2334, allocations: 4 kB / 0.9798 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.356e-05/0.2334, allocations: 15.92 kB / 0.9798 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.909e-05/0.2335, allocations: 33.7 kB / 0.9799 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.2336, allocations: 35.94 kB / 0.9799 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2336, allocations: 0 / 0.9799 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.454e-06/0.2336, allocations: 0 / 0.9799 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.2336, allocations: 0 / 0.9799 GB, free: 26.76 MB / 0.6198 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.0006244/0.2343, allocations: 383.4 kB / 0.9803 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.2343, allocations: 12.02 kB / 0.9803 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.886e-05/0.2344, allocations: 7.906 kB / 0.9803 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.2345, allocations: 194.8 kB / 0.9805 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.2346, allocations: 4 kB / 0.9805 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.068e-05/0.2346, allocations: 4 kB / 0.9805 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004051/0.235, allocations: 101.6 kB / 0.9806 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.235, allocations: 0 / 0.9806 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.2351, allocations: 0 / 0.9806 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.2351, allocations: 4 kB / 0.9806 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005239/0.2356, allocations: 107.9 kB / 0.9807 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006926/0.2363, allocations: 336.7 kB / 0.981 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.2367, allocations: 70.56 kB / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002629/0.2369, allocations: 52.92 kB / 0.9811 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.739e-05/0.237, allocations: 4 kB / 0.9811 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.237, allocations: 30.56 kB / 0.9812 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 2.625e-06/0.237, allocations: 0 / 0.9812 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.000899/0.238, allocations: 177.5 kB / 0.9813 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.238, allocations: 51.41 kB / 0.9814 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.82e-05/0.2381, allocations: 117.8 kB / 0.9815 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.2381, allocations: 29.64 kB / 0.9815 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.153e-05/0.2382, allocations: 99.92 kB / 0.9816 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.454e-05/0.2382, allocations: 15.89 kB / 0.9816 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.575e-06/0.2383, allocations: 0 / 0.9816 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.904e-05/0.2383, allocations: 314.8 kB / 0.9819 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002561/0.2386, allocations: 43.95 kB / 0.982 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.2389, allocations: 43.97 kB / 0.982 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000257/0.2391, allocations: 47.95 kB / 0.9821 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2392, allocations: 0 / 0.9821 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005704/0.2397, allocations: 129.5 kB / 0.9822 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.2398, allocations: 8 kB / 0.9822 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.2398, allocations: 336 / 0.9822 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.2398, allocations: 7.891 kB / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001992/0.24, allocations: 19.98 kB / 0.9822 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.24, allocations: 0 / 0.9822 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.2402, allocations: 15.98 kB / 0.9822 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.2402, allocations: 15.92 kB / 0.9822 GB, free: 24.14 MB / 0.6198 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 8.313e-05/0.2403, allocations: 119.1 kB / 0.9824 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.524e-05/0.2404, allocations: 7.891 kB / 0.9824 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006124/0.241, allocations: 133.5 kB / 0.9825 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.241, allocations: 3.953 kB / 0.9825 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.241, allocations: 0 / 0.9825 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.241, allocations: 3.984 kB / 0.9825 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001909/0.2412, allocations: 173.7 kB / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.2413, allocations: 3.984 kB / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.2414, allocations: 23.98 kB / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.2414, allocations: 0 / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.2415, allocations: 4 kB / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2415, allocations: 0 / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.2415, allocations: 7.891 kB / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005736/0.2421, allocations: 219.5 kB / 0.9829 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.649e-05/0.2421, allocations: 85.02 kB / 0.983 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.2421, allocations: 0 / 0.983 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.2424, allocations: 15.98 kB / 0.983 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.2424, allocations: 7.984 kB / 0.983 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.2425, allocations: 7.953 kB / 0.983 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.231e-05/0.2425, allocations: 95.27 kB / 0.9831 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.41e-07/0.2425, allocations: 0 / 0.9831 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002966/0.2428, allocations: 11.94 kB / 0.9831 GB, free: 23.13 MB / 0.6198 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.0001538/0.243, allocations: 99.25 kB / 0.9832 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000587/0.2436, allocations: 103.8 kB / 0.9833 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.2436, allocations: 0 / 0.9833 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002732/0.2439, allocations: 47.97 kB / 0.9834 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.2443, allocations: 19.86 kB / 0.9834 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004196/0.2447, allocations: 161.7 kB / 0.9835 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000154/0.2449, allocations: 0.6887 MB / 0.9842 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.649e-05/0.245, allocations: 12 kB / 0.9842 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.504e-05/0.245, allocations: 7.438 kB / 0.9842 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of SimCode: time 1.242e-06/0.245, allocations: 0 / 0.9842 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of Templates: time 0.003525/0.2486, allocations: 0.6078 MB / 0.9848 GB, free: 21.34 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)