Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.474/1.474, allocations: 288.4 MB / 303.6 MB, free: 8.051 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.0008924/0.0008924, allocations: 179.1 kB / 372.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.118/1.118, allocations: 205.4 MB / 0.631 GB, free: 9.902 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.0006704/0.0006703, allocations: 99.8 kB / 0.7444 GB, free: 5.793 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.000332, allocations: 13.06 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1419, allocations: 115.3 MB / 0.9802 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001171/0.1431, allocations: 1.242 MB / 0.9814 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002317/0.1434, allocations: 104.6 kB / 0.9815 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.785e-05/0.1434, allocations: 0 / 0.9815 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.775e-05/0.1435, allocations: 7.875 kB / 0.9815 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 2.122e-05/0.1436, allocations: 11.88 kB / 0.9815 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001532/0.1437, allocations: 27.97 kB / 0.9815 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.132e-05/0.1438, allocations: 51.83 kB / 0.9816 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.773e-05/0.1439, allocations: 27.92 kB / 0.9816 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.743e-05/0.1439, allocations: 15.98 kB / 0.9816 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.89e-05/0.144, allocations: 23.86 kB / 0.9817 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.144, allocations: 4 kB / 0.9817 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.301e-05/0.144, allocations: 11.98 kB / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.231e-05/0.1441, allocations: 4 kB / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.249e-05/0.1441, allocations: 53.55 kB / 0.9817 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.095e-05/0.1442, allocations: 32.22 kB / 0.9818 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1442, allocations: 0 / 0.9818 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.333e-06/0.1442, allocations: 0 / 0.9818 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.1442, allocations: 0 / 0.9818 GB, free: 25.61 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.0003615/0.1446, allocations: 393.3 kB / 0.9821 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.1446, allocations: 8.031 kB / 0.9821 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.615e-05/0.1447, allocations: 38.69 kB / 0.9822 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.158e-05/0.1447, allocations: 4.844 kB / 0.9822 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.1448, allocations: 184.3 kB / 0.9824 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.835e-06/0.1448, allocations: 8.375 kB / 0.9824 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-06/0.1448, allocations: 4.375 kB / 0.9824 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.1451, allocations: 94.2 kB / 0.9825 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1451, allocations: 3.938 kB / 0.9825 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.667e-06/0.1451, allocations: 7.938 kB / 0.9825 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1451, allocations: 4 kB / 0.9825 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.1454, allocations: 103.9 kB / 0.9826 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003856/0.1458, allocations: 340.6 kB / 0.9829 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001707/0.146, allocations: 70.53 kB / 0.983 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.1461, allocations: 52.91 kB / 0.983 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.1461, allocations: 4 kB / 0.983 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.266e-05/0.1462, allocations: 30.56 kB / 0.983 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.1462, allocations: 0 / 0.983 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004837/0.1466, allocations: 181.5 kB / 0.9832 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.67e-05/0.1467, allocations: 55.41 kB / 0.9833 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.278e-05/0.1467, allocations: 109.8 kB / 0.9834 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.736e-06/0.1467, allocations: 33.64 kB / 0.9834 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.616e-05/0.1468, allocations: 99.97 kB / 0.9835 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.238e-05/0.1468, allocations: 3.906 kB / 0.9835 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-06/0.1468, allocations: 0 / 0.9835 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 3.588e-05/0.1468, allocations: 326.8 kB / 0.9838 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.147, allocations: 39.97 kB / 0.9839 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.1471, allocations: 51.95 kB / 0.9839 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.1474, allocations: 92.78 kB / 0.984 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.1474, allocations: 0 / 0.984 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002863/0.1477, allocations: 125.6 kB / 0.9841 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.1477, allocations: 11.98 kB / 0.9841 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.1477, allocations: 3.938 kB / 0.9841 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.417e-06/0.1477, allocations: 0 / 0.9841 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.1478, allocations: 23.98 kB / 0.9842 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.1478, allocations: 4 kB / 0.9842 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.096e-05/0.1479, allocations: 19.89 kB / 0.9842 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.1479, allocations: 0 / 0.9842 GB, free: 22.9 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 4.727e-05/0.148, allocations: 127.3 kB / 0.9843 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.148, allocations: 4 kB / 0.9843 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003349/0.1484, allocations: 137.5 kB / 0.9844 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1484, allocations: 0 / 0.9844 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1484, allocations: 4 kB / 0.9844 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1484, allocations: 3.984 kB / 0.9844 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.1485, allocations: 173.6 kB / 0.9846 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1485, allocations: 0 / 0.9846 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.845e-05/0.1486, allocations: 27.97 kB / 0.9846 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.1486, allocations: 0 / 0.9846 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.1486, allocations: 0 / 0.9846 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1486, allocations: 4 kB / 0.9846 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1486, allocations: 0 / 0.9846 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002987/0.1489, allocations: 228.2 kB / 0.9849 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.418e-05/0.149, allocations: 81.05 kB / 0.9849 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.169e-05/0.149, allocations: 4 kB / 0.9849 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.536e-05/0.1491, allocations: 15.98 kB / 0.985 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/0.1491, allocations: 7.984 kB / 0.985 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.1491, allocations: 3.938 kB / 0.985 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.525e-05/0.1491, allocations: 91.27 kB / 0.985 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1492, allocations: 4 kB / 0.9851 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001952/0.1494, allocations: 15.84 kB / 0.9851 GB, free: 21.88 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.0004422/0.1498, allocations: 0.7558 MB / 0.9858 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002924/0.1501, allocations: 107.9 kB / 0.9859 GB, free: 21 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1501, allocations: 3.938 kB / 0.9859 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.1503, allocations: 43.97 kB / 0.986 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.1505, allocations: 12.7 kB / 0.986 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008547/0.1514, allocations: 0.5828 MB / 0.9865 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.503e-05/0.1515, allocations: 0.6887 MB / 0.9872 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.686e-05/0.1515, allocations: 7.984 kB / 0.9872 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.1515, allocations: 19.44 kB / 0.9872 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of SimCode: time 3.31e-07/0.1515, allocations: 0 / 0.9872 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5756/0.7272, allocations: 1.47 MB / 0.9887 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/0.7274, allocations: 182.6 kB / 0.9888 GB, free: 17.99 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.058/2.785, allocations: 0 / 0.9888 GB, free: 17.99 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)