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.62/1.62, allocations: 288.2 MB / 303.2 MB, free: 8.168 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.001119/0.001119, allocations: 187.4 kB / 371.8 MB, free: 10.31 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.427/1.427, allocations: 205.4 MB / 0.6305 GB, free: 10.05 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.0008077/0.0008077, allocations: 86.88 kB / 0.7439 GB, free: 5.961 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003945/0.0003946, allocations: 12.47 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2072, allocations: 115.3 MB / 0.9795 GB, free: 27.65 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001442/0.2087, allocations: 1.23 MB / 0.9807 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.000277/0.209, allocations: 120.5 kB / 0.9808 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.323e-05/0.209, allocations: 3.938 kB / 0.9808 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.2091, allocations: 0 / 0.9808 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 2.213e-05/0.2092, allocations: 15.92 kB / 0.9808 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001785/0.2094, allocations: 19.97 kB / 0.9808 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.436e-05/0.2094, allocations: 39.94 kB / 0.9809 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.938e-05/0.2095, allocations: 15.98 kB / 0.9809 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.981e-05/0.2096, allocations: 19.92 kB / 0.9809 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.879e-05/0.2097, allocations: 23.86 kB / 0.9809 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.2097, allocations: 0 / 0.9809 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.162e-05/0.2097, allocations: 15.98 kB / 0.9809 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.168e-05/0.2098, allocations: 11.98 kB / 0.9809 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.39e-05/0.2098, allocations: 33.64 kB / 0.981 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.58e-05/0.2099, allocations: 40.2 kB / 0.981 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.2099, allocations: 0 / 0.981 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2099, allocations: 0 / 0.981 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.2099, allocations: 4 kB / 0.981 GB, free: 26.04 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.0004162/0.2103, allocations: 383.1 kB / 0.9814 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.2104, allocations: 16.02 kB / 0.9814 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.849e-05/0.2104, allocations: 34.56 kB / 0.9814 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.368e-05/0.2104, allocations: 7.906 kB / 0.9814 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.2106, allocations: 179 kB / 0.9816 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.2106, allocations: 4 kB / 0.9816 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.2106, allocations: 4 kB / 0.9816 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.2109, allocations: 105.6 kB / 0.9817 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.2109, allocations: 3.984 kB / 0.9817 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.2109, allocations: 0 / 0.9817 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2109, allocations: 0 / 0.9817 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002969/0.2112, allocations: 99.92 kB / 0.9818 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004427/0.2117, allocations: 344.6 kB / 0.9821 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.2119, allocations: 70.53 kB / 0.9822 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.2119, allocations: 4.094 kB / 0.9822 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.2119, allocations: 34.55 kB / 0.9823 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.2119, allocations: 0 / 0.9823 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0005425/0.2125, allocations: 177.6 kB / 0.9824 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.169e-05/0.2125, allocations: 55.34 kB / 0.9825 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.891e-05/0.2126, allocations: 117.8 kB / 0.9826 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.045e-05/0.2126, allocations: 29.7 kB / 0.9826 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.177e-05/0.2126, allocations: 99.97 kB / 0.9827 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.454e-05/0.2127, allocations: 3.906 kB / 0.9827 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.938e-06/0.2127, allocations: 0 / 0.9827 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.089e-05/0.2127, allocations: 318.8 kB / 0.983 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.2129, allocations: 43.95 kB / 0.9831 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.213, allocations: 51.95 kB / 0.9831 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001355/0.2131, allocations: 39.97 kB / 0.9831 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2131, allocations: 0 / 0.9831 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002985/0.2134, allocations: 129.5 kB / 0.9833 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.2135, allocations: 12 kB / 0.9833 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2135, allocations: 0 / 0.9833 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.2135, allocations: 0 / 0.9833 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.2136, allocations: 27.94 kB / 0.9833 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.2136, allocations: 0 / 0.9833 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.561e-05/0.2137, allocations: 15.98 kB / 0.9833 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.2137, allocations: 7.984 kB / 0.9833 GB, free: 23.44 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 5.304e-05/0.2138, allocations: 113.8 kB / 0.9834 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.2138, allocations: 7.906 kB / 0.9834 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003469/0.2142, allocations: 137.4 kB / 0.9836 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.2142, allocations: 0 / 0.9836 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2142, allocations: 3.953 kB / 0.9836 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.2142, allocations: 0 / 0.9836 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001212/0.2143, allocations: 177.6 kB / 0.9838 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.2143, allocations: 0 / 0.9838 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.215e-05/0.2144, allocations: 27.98 kB / 0.9838 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2144, allocations: 0 / 0.9838 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.395e-06/0.2145, allocations: 0 / 0.9838 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.2145, allocations: 0 / 0.9838 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2145, allocations: 0 / 0.9838 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.2148, allocations: 227.8 kB / 0.984 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.921e-05/0.2148, allocations: 84.95 kB / 0.9841 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.2149, allocations: 15.94 kB / 0.9841 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.215, allocations: 19.91 kB / 0.9841 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.215, allocations: 4 kB / 0.9841 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.215, allocations: 0 / 0.9841 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.765e-05/0.215, allocations: 91.27 kB / 0.9842 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2151, allocations: 0 / 0.9842 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000219/0.2153, allocations: 15.95 kB / 0.9842 GB, free: 22.43 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.0005287/0.2158, allocations: 0.7652 MB / 0.985 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003161/0.2161, allocations: 99.84 kB / 0.9851 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2162, allocations: 0 / 0.9851 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001579/0.2163, allocations: 51.97 kB / 0.9851 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.2165, allocations: 7.984 kB / 0.9851 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000996/0.2175, allocations: 0.5785 MB / 0.9857 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.2177, allocations: 0.6887 MB / 0.9864 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.549e-05/0.2177, allocations: 15.92 kB / 0.9864 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.2177, allocations: 19.44 kB / 0.9864 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of SimCode: time 2.4e-07/0.2178, allocations: 0 / 0.9864 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0119/0.2297, allocations: 1.466 MB / 0.9878 GB, free: 18.77 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/0.2299, allocations: 184.9 kB / 0.988 GB, free: 18.53 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/1.866, allocations: 0 / 0.988 GB, free: 18.53 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)