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.1863/0.1885, allocations: 80.83 MB / 0.6706 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.004026/0.1925, allocations: 1.502 MB / 0.6721 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000434/0.193, allocations: 99.67 kB / 0.6722 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.711e-05/0.1931, allocations: 0 / 0.6722 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.1933, allocations: 15.86 kB / 0.6722 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.356e-05/0.1933, allocations: 3.938 kB / 0.6722 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002523/0.1936, allocations: 23.97 kB / 0.6722 GB, free: 492 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001303/0.1937, allocations: 59.77 kB / 0.6723 GB, free: 432 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.1939, allocations: 35.91 kB / 0.6723 GB, free: 396 kB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.738e-05/0.194, allocations: 23.92 kB / 0.6723 GB, free: 372 kB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.485e-05/0.1941, allocations: 27.91 kB / 0.6724 GB, free: 344 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/0.1941, allocations: 4 kB / 0.6724 GB, free: 340 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.914e-05/0.1942, allocations: 8 kB / 0.6724 GB, free: 332 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.96e-05/0.1942, allocations: 27.92 kB / 0.6724 GB, free: 304 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.732e-05/0.1943, allocations: 23.84 kB / 0.6724 GB, free: 280 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.1945, allocations: 59.75 kB / 0.6725 GB, free: 220 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1945, allocations: 0 / 0.6725 GB, free: 220 kB / 0.4981 GB Notification: Performance of FrontEnd: time 3.387e-06/0.1945, allocations: 0 / 0.6725 GB, free: 220 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.1945, allocations: 3.938 kB / 0.6725 GB, free: 216 kB / 0.4981 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.0005192/0.195, allocations: 379.3 kB / 0.6728 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.1951, allocations: 15.97 kB / 0.6729 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.613e-05/0.1951, allocations: 16.84 kB / 0.6729 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.1953, allocations: 176.3 kB / 0.673 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.1953, allocations: 8.375 kB / 0.6731 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.1953, allocations: 4.375 kB / 0.6731 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.1956, allocations: 89.56 kB / 0.6731 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1956, allocations: 3.938 kB / 0.6731 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.1956, allocations: 0 / 0.6731 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.1956, allocations: 4 kB / 0.6731 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003047/0.1959, allocations: 79.92 kB / 0.6732 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006005/0.1966, allocations: 332.5 kB / 0.6735 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.1968, allocations: 62.53 kB / 0.6736 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.1969, allocations: 36.92 kB / 0.6736 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.949e-05/0.197, allocations: 0 / 0.6736 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.197, allocations: 30.56 kB / 0.6737 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.197, allocations: 4 kB / 0.6737 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0005609/0.1976, allocations: 145.6 kB / 0.6738 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.1976, allocations: 51.41 kB / 0.6739 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.1978, allocations: 117.8 kB / 0.674 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/0.1978, allocations: 25.7 kB / 0.674 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.79e-05/0.1978, allocations: 96.03 kB / 0.6741 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.1979, allocations: 7.906 kB / 0.6741 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.782e-05/0.1979, allocations: 17.72 kB / 0.6741 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.198, allocations: 314.8 kB / 0.6744 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.1982, allocations: 31.95 kB / 0.6744 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.1984, allocations: 35.95 kB / 0.6745 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/0.1987, allocations: 80.72 kB / 0.6746 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1987, allocations: 0 / 0.6746 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003477/0.199, allocations: 105.8 kB / 0.6747 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.1991, allocations: 6.344 kB / 0.6747 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.1991, allocations: 4 kB / 0.6747 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.1991, allocations: 11.92 kB / 0.6747 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.1992, allocations: 11.98 kB / 0.6747 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.1993, allocations: 0 / 0.6747 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.032e-05/0.1993, allocations: 15.92 kB / 0.6747 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.233e-05/0.1994, allocations: 4 kB / 0.6747 GB, free: 13.71 MB / 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.411e-05/0.1995, allocations: 117.8 kB / 0.6748 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.033e-05/0.1995, allocations: 7.984 kB / 0.6748 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000388/0.1999, allocations: 121.5 kB / 0.6749 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1999, allocations: 0 / 0.6749 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1999, allocations: 0 / 0.6749 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1999, allocations: 3.938 kB / 0.6749 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.2001, allocations: 177.5 kB / 0.6751 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2001, allocations: 0 / 0.6751 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.662e-05/0.2002, allocations: 23.97 kB / 0.6751 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.2002, allocations: 0 / 0.6751 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.2003, allocations: 0 / 0.6751 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.2003, allocations: 4 kB / 0.6751 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.2003, allocations: 3.984 kB / 0.6751 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003733/0.2007, allocations: 203.4 kB / 0.6753 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.051e-05/0.2007, allocations: 85.02 kB / 0.6754 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.2007, allocations: 0 / 0.6754 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.2008, allocations: 11.98 kB / 0.6754 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.544e-05/0.2009, allocations: 15.86 kB / 0.6754 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.2009, allocations: 4 kB / 0.6755 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 5.938e-05/0.201, allocations: 95.64 kB / 0.6755 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.201, allocations: 0 / 0.6755 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002385/0.2012, allocations: 8 kB / 0.6755 GB, free: 12.73 MB / 0.5137 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.0001895/0.2014, allocations: 107.2 kB / 0.6757 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003574/0.2018, allocations: 79.92 kB / 0.6757 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2018, allocations: 0 / 0.6757 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.202, allocations: 43.95 kB / 0.6758 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.2023, allocations: 4 kB / 0.6758 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003983/0.2027, allocations: 157.4 kB / 0.6759 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.203, allocations: 0.6885 MB / 0.6766 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.287e-05/0.2031, allocations: 4 kB / 0.6766 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.67e-05/0.2031, allocations: 7.438 kB / 0.6766 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of SimCode: time 3.5e-07/0.2031, allocations: 4 kB / 0.6766 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of Templates: time 0.00339/0.2065, allocations: 0.7881 MB / 0.6774 GB, free: 10.8 MB / 0.5137 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)