Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/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/Complex 4.0.0+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/Buildings 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Math.Examples.Average") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.1962/0.1983, allocations: 80.84 MB / 0.6706 GB, free: 4.602 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002827/0.2012, allocations: 1.503 MB / 0.6721 GB, free: 3.078 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0003262/0.2015, allocations: 99.69 kB / 0.6722 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.126e-05/0.2016, allocations: 0 / 0.6722 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.2017, allocations: 7.922 kB / 0.6722 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 3.686e-05/0.2018, allocations: 7.875 kB / 0.6722 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.202, allocations: 27.91 kB / 0.6722 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.2021, allocations: 55.84 kB / 0.6723 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.2023, allocations: 31.91 kB / 0.6723 GB, free: 2.852 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 6.243e-05/0.2023, allocations: 31.84 kB / 0.6723 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 7.289e-05/0.2024, allocations: 31.84 kB / 0.6724 GB, free: 2.789 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.2024, allocations: 4 kB / 0.6724 GB, free: 2.785 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.242e-05/0.2025, allocations: 15.98 kB / 0.6724 GB, free: 2.77 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 4.366e-05/0.2026, allocations: 8 kB / 0.6724 GB, free: 2.762 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 4.881e-05/0.2026, allocations: 31.8 kB / 0.6724 GB, free: 2.73 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.2027, allocations: 63.8 kB / 0.6725 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2028, allocations: 0 / 0.6725 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.944e-06/0.2028, allocations: 0 / 0.6725 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.2028, allocations: 0 / 0.6725 GB, free: 2.668 MB / 0.5137 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.0005787/0.2034, allocations: 375.3 kB / 0.6728 GB, free: 2.254 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.2034, allocations: 8.031 kB / 0.6729 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.934e-05/0.2034, allocations: 8.844 kB / 0.6729 GB, free: 2.238 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.2036, allocations: 188.2 kB / 0.673 GB, free: 2.016 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.2036, allocations: 8.375 kB / 0.673 GB, free: 2.008 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.2037, allocations: 384 / 0.673 GB, free: 2.008 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002902/0.204, allocations: 89.58 kB / 0.6731 GB, free: 1.914 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.204, allocations: 0 / 0.6731 GB, free: 1.914 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.204, allocations: 4 kB / 0.6731 GB, free: 1.91 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.204, allocations: 0 / 0.6731 GB, free: 1.91 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003087/0.2043, allocations: 87.84 kB / 0.6732 GB, free: 1.824 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005202/0.2048, allocations: 324.6 kB / 0.6735 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.2051, allocations: 62.5 kB / 0.6736 GB, free: 1.387 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.2052, allocations: 44.92 kB / 0.6736 GB, free: 1.34 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.2053, allocations: 7.984 kB / 0.6736 GB, free: 1.332 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.2053, allocations: 30.56 kB / 0.6737 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.2053, allocations: 0 / 0.6737 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0005607/0.2059, allocations: 133.6 kB / 0.6738 GB, free: 1.156 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/0.2059, allocations: 59.34 kB / 0.6739 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.206, allocations: 117.8 kB / 0.674 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.2061, allocations: 25.7 kB / 0.674 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.751e-05/0.2061, allocations: 100 kB / 0.6741 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/0.2062, allocations: 3.906 kB / 0.6741 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-05/0.2062, allocations: 21.72 kB / 0.6741 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.2064, allocations: 318.8 kB / 0.6744 GB, free: 488 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.2065, allocations: 31.97 kB / 0.6744 GB, free: 456 kB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.2067, allocations: 39.89 kB / 0.6745 GB, free: 416 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002871/0.207, allocations: 76.78 kB / 0.6746 GB, free: 336 kB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.207, allocations: 0 / 0.6746 GB, free: 336 kB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003503/0.2073, allocations: 109.5 kB / 0.6747 GB, free: 220 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.2074, allocations: 4 kB / 0.6747 GB, free: 216 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2074, allocations: 3.938 kB / 0.6747 GB, free: 212 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2074, allocations: 0 / 0.6747 GB, free: 212 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.2075, allocations: 19.98 kB / 0.6747 GB, free: 192 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2075, allocations: 0 / 0.6747 GB, free: 192 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.094e-05/0.2076, allocations: 15.92 kB / 0.6747 GB, free: 176 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.2077, allocations: 0 / 0.6747 GB, free: 176 kB / 0.5137 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.811e-05/0.2078, allocations: 125.8 kB / 0.6748 GB, free: 40 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.882e-05/0.2078, allocations: 8.234 kB / 0.6748 GB, free: 32 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004071/0.2082, allocations: 113.5 kB / 0.6749 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2082, allocations: 4 kB / 0.6749 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.2082, allocations: 3.984 kB / 0.6749 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.2082, allocations: 3.938 kB / 0.675 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001906/0.2084, allocations: 181.6 kB / 0.6751 GB, free: 15.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2085, allocations: 3.938 kB / 0.6751 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.412e-05/0.2086, allocations: 19.92 kB / 0.6751 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.2086, allocations: 0 / 0.6751 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.2086, allocations: 4 kB / 0.6752 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2086, allocations: 0 / 0.6752 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2086, allocations: 0 / 0.6752 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003726/0.209, allocations: 199.4 kB / 0.6753 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 4.014e-05/0.209, allocations: 85.02 kB / 0.6754 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.209, allocations: 4 kB / 0.6754 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.2092, allocations: 7.984 kB / 0.6754 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.968e-05/0.2092, allocations: 11.92 kB / 0.6754 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.261e-06/0.2092, allocations: 0 / 0.6754 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 5.29e-05/0.2093, allocations: 91.27 kB / 0.6755 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2093, allocations: 0 / 0.6755 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002262/0.2095, allocations: 16 kB / 0.6755 GB, free: 15.2 MB / 0.5294 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001529/0.2097, allocations: 103.2 kB / 0.6756 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0003735/0.2101, allocations: 75.91 kB / 0.6757 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2101, allocations: 0 / 0.6757 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002832/0.2104, allocations: 35.97 kB / 0.6758 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.2107, allocations: 15.97 kB / 0.6758 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000353/0.2111, allocations: 153.4 kB / 0.6759 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.2114, allocations: 0.6969 MB / 0.6766 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 4.453e-05/0.2114, allocations: 8 kB / 0.6766 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.521e-05/0.2115, allocations: 19.42 kB / 0.6766 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of SimCode: time 8.11e-07/0.2115, allocations: 0 / 0.6766 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of Templates: time 0.003641/0.2151, allocations: 0.758 MB / 0.6774 GB, free: 13.29 MB / 0.5294 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_3.0.0_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)