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.763/1.763, allocations: 288.4 MB / 303.3 MB, free: 8.172 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.0009174/0.0009175, allocations: 182.3 kB / 372 MB, free: 10.27 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.44/1.44, allocations: 205.4 MB / 0.6307 GB, free: 9.977 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.0006755/0.0006756, allocations: 97.11 kB / 0.744 GB, free: 5.902 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003976/0.0003977, allocations: 12.53 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.1981, allocations: 115.3 MB / 0.9796 GB, free: 27.57 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001457/0.1996, allocations: 1.226 MB / 0.9808 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002644/0.1999, allocations: 108.5 kB / 0.9809 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.721e-05/0.2, allocations: 4 kB / 0.9809 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 9.443e-05/0.2001, allocations: 11.88 kB / 0.981 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 2.239e-05/0.2001, allocations: 3.938 kB / 0.981 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001913/0.2003, allocations: 19.97 kB / 0.981 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.051e-05/0.2004, allocations: 55.83 kB / 0.981 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.354e-05/0.2005, allocations: 15.98 kB / 0.981 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.759e-05/0.2006, allocations: 19.92 kB / 0.9811 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.71e-05/0.2006, allocations: 23.91 kB / 0.9811 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.2007, allocations: 4 kB / 0.9811 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.987e-05/0.2007, allocations: 8 kB / 0.9811 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.679e-05/0.2007, allocations: 19.92 kB / 0.9811 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.42e-05/0.2008, allocations: 33.7 kB / 0.9812 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.107e-05/0.2009, allocations: 36.2 kB / 0.9812 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2009, allocations: 0 / 0.9812 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2009, allocations: 0 / 0.9812 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.537e-06/0.2009, allocations: 0 / 0.9812 GB, free: 25.96 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.0004659/0.2014, allocations: 383.1 kB / 0.9816 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.2014, allocations: 12.02 kB / 0.9816 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.988e-05/0.2014, allocations: 42.48 kB / 0.9816 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.638e-05/0.2015, allocations: 7.906 kB / 0.9816 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.2016, allocations: 186.9 kB / 0.9818 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.2016, allocations: 8 kB / 0.9818 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.2016, allocations: 0 / 0.9818 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/0.2019, allocations: 101.6 kB / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.2019, allocations: 0 / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.2019, allocations: 7.938 kB / 0.9819 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.202, allocations: 0 / 0.9819 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003037/0.2023, allocations: 103.9 kB / 0.982 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000445/0.2027, allocations: 336.6 kB / 0.9823 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000182/0.2029, allocations: 74.53 kB / 0.9824 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.2031, allocations: 48.91 kB / 0.9824 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.829e-05/0.2031, allocations: 4 kB / 0.9824 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.153e-05/0.2031, allocations: 34.56 kB / 0.9825 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.113e-06/0.2031, allocations: 0 / 0.9825 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0005461/0.2037, allocations: 173.6 kB / 0.9826 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.908e-05/0.2037, allocations: 51.41 kB / 0.9827 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.288e-05/0.2038, allocations: 121.8 kB / 0.9828 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/0.2038, allocations: 25.7 kB / 0.9828 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.119e-05/0.2038, allocations: 95.97 kB / 0.9829 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.2039, allocations: 7.906 kB / 0.9829 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-06/0.2039, allocations: 0 / 0.9829 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.204e-05/0.2039, allocations: 318.8 kB / 0.9832 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.2041, allocations: 43.97 kB / 0.9833 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.2042, allocations: 47.95 kB / 0.9833 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.2044, allocations: 43.97 kB / 0.9834 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2044, allocations: 0 / 0.9834 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003269/0.2047, allocations: 129.5 kB / 0.9835 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.2047, allocations: 11.94 kB / 0.9835 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.2048, allocations: 11.92 kB / 0.9835 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2048, allocations: 3.953 kB / 0.9835 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.2049, allocations: 23.98 kB / 0.9835 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.2049, allocations: 0 / 0.9835 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.977e-05/0.205, allocations: 19.97 kB / 0.9836 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.205, allocations: 0 / 0.9836 GB, free: 23.31 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.723e-05/0.2051, allocations: 113.8 kB / 0.9837 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.578e-05/0.2051, allocations: 7.906 kB / 0.9837 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003774/0.2055, allocations: 137.8 kB / 0.9838 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2055, allocations: 0 / 0.9838 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2055, allocations: 3.953 kB / 0.9838 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.2055, allocations: 4.031 kB / 0.9838 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.2057, allocations: 181.6 kB / 0.984 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2057, allocations: 0 / 0.984 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.2058, allocations: 27.92 kB / 0.984 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2058, allocations: 0 / 0.984 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-06/0.2058, allocations: 7.938 kB / 0.984 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2058, allocations: 0 / 0.984 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2058, allocations: 0 / 0.984 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003545/0.2062, allocations: 223.4 kB / 0.9842 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.376e-05/0.2062, allocations: 84.95 kB / 0.9843 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.2062, allocations: 3.984 kB / 0.9843 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.2063, allocations: 19.98 kB / 0.9843 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.2064, allocations: 4 kB / 0.9843 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.2064, allocations: 0 / 0.9843 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.198e-05/0.2065, allocations: 99.59 kB / 0.9844 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2065, allocations: 0 / 0.9844 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002096/0.2067, allocations: 16 kB / 0.9845 GB, free: 22.29 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.0005335/0.2072, allocations: 0.767 MB / 0.9852 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003381/0.2076, allocations: 91.92 kB / 0.9853 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.2076, allocations: 0 / 0.9853 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001559/0.2077, allocations: 59.83 kB / 0.9853 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.208, allocations: 4 kB / 0.9853 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009813/0.209, allocations: 0.5799 MB / 0.9859 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.2091, allocations: 0.6887 MB / 0.9866 GB, free: 20 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.345e-05/0.2092, allocations: 4 kB / 0.9866 GB, free: 20 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.794e-05/0.2092, allocations: 15.42 kB / 0.9866 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of SimCode: time 2.6e-07/0.2092, allocations: 7.938 kB / 0.9866 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01193/0.2212, allocations: 1.483 MB / 0.9881 GB, free: 18.62 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/0.2214, allocations: 193.1 kB / 0.9882 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.592/1.813, allocations: 0 / 0.9882 GB, free: 18.37 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)