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.2161/0.2182, allocations: 80.83 MB / 0.6706 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003657/0.2219, allocations: 1.517 MB / 0.6721 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003966/0.2223, allocations: 95.69 kB / 0.6722 GB, free: 412 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.699e-05/0.2224, allocations: 4 kB / 0.6722 GB, free: 408 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.2226, allocations: 15.86 kB / 0.6722 GB, free: 392 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.845e-05/0.2226, allocations: 3.938 kB / 0.6722 GB, free: 388 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.2229, allocations: 27.95 kB / 0.6722 GB, free: 360 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.223, allocations: 59.78 kB / 0.6723 GB, free: 300 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.2231, allocations: 27.92 kB / 0.6723 GB, free: 272 kB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.2233, allocations: 27.84 kB / 0.6723 GB, free: 244 kB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.323e-05/0.2234, allocations: 23.92 kB / 0.6724 GB, free: 220 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.918e-05/0.2234, allocations: 4 kB / 0.6724 GB, free: 216 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.755e-05/0.2235, allocations: 15.98 kB / 0.6724 GB, free: 200 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.13e-05/0.2236, allocations: 23.91 kB / 0.6724 GB, free: 176 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.169e-05/0.2236, allocations: 19.88 kB / 0.6724 GB, free: 156 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.2238, allocations: 55.81 kB / 0.6725 GB, free: 100 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.2238, allocations: 0 / 0.6725 GB, free: 100 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.674e-06/0.2238, allocations: 3.938 kB / 0.6725 GB, free: 96 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.2238, allocations: 4 kB / 0.6725 GB, free: 92 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.0007156/0.2245, allocations: 379.2 kB / 0.6729 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.2246, allocations: 12.03 kB / 0.6729 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.2246, allocations: 8.844 kB / 0.6729 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000213/0.2248, allocations: 184.2 kB / 0.673 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.2248, allocations: 4.375 kB / 0.6731 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.2249, allocations: 4.375 kB / 0.6731 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.2252, allocations: 93.52 kB / 0.6731 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.2252, allocations: 0 / 0.6731 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.2252, allocations: 0 / 0.6731 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.2252, allocations: 4 kB / 0.6731 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003505/0.2256, allocations: 79.91 kB / 0.6732 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006394/0.2262, allocations: 332.6 kB / 0.6735 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.2265, allocations: 58.53 kB / 0.6736 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.2267, allocations: 44.91 kB / 0.6736 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.2267, allocations: 4 kB / 0.6736 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.2267, allocations: 30.56 kB / 0.6737 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.2268, allocations: 4 kB / 0.6737 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0006092/0.2274, allocations: 133.6 kB / 0.6738 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.2274, allocations: 55.41 kB / 0.6739 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.2276, allocations: 117.8 kB / 0.674 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.039e-05/0.2276, allocations: 25.7 kB / 0.674 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.151e-05/0.2277, allocations: 96.03 kB / 0.6741 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.2277, allocations: 7.906 kB / 0.6741 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.174e-05/0.2278, allocations: 13.72 kB / 0.6741 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002743/0.228, allocations: 322.8 kB / 0.6744 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.2282, allocations: 31.97 kB / 0.6744 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.2284, allocations: 43.83 kB / 0.6745 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000278/0.2286, allocations: 68.78 kB / 0.6746 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2287, allocations: 0 / 0.6746 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003497/0.229, allocations: 117.7 kB / 0.6747 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.229, allocations: 4 kB / 0.6747 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.2291, allocations: 4 kB / 0.6747 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.2291, allocations: 0 / 0.6747 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.2292, allocations: 12.03 kB / 0.6747 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.2292, allocations: 0 / 0.6747 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.378e-05/0.2293, allocations: 23.91 kB / 0.6747 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.2294, allocations: 3.984 kB / 0.6747 GB, free: 13.59 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.073e-05/0.2295, allocations: 117.8 kB / 0.6748 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.412e-05/0.2295, allocations: 4 kB / 0.6748 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004591/0.23, allocations: 121.4 kB / 0.6749 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.23, allocations: 4 kB / 0.6749 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.23, allocations: 0 / 0.6749 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.23, allocations: 3.938 kB / 0.6749 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002462/0.2302, allocations: 177.5 kB / 0.6751 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2303, allocations: 0 / 0.6751 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.687e-05/0.2304, allocations: 19.98 kB / 0.6751 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2304, allocations: 0 / 0.6751 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.238e-06/0.2304, allocations: 0 / 0.6751 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2304, allocations: 0 / 0.6751 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2304, allocations: 0 / 0.6751 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003808/0.2308, allocations: 203.4 kB / 0.6753 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.806e-05/0.2308, allocations: 85.02 kB / 0.6754 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.2309, allocations: 0 / 0.6754 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.231, allocations: 15.97 kB / 0.6754 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.736e-05/0.231, allocations: 11.88 kB / 0.6754 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.2311, allocations: 4 kB / 0.6754 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 5.064e-05/0.2311, allocations: 91.7 kB / 0.6755 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.2311, allocations: 0 / 0.6755 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002316/0.2314, allocations: 12 kB / 0.6755 GB, free: 12.62 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.0001781/0.2315, allocations: 110.8 kB / 0.6756 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004115/0.232, allocations: 79.91 kB / 0.6757 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.232, allocations: 0 / 0.6757 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.2321, allocations: 35.97 kB / 0.6758 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.2325, allocations: 16.25 kB / 0.6758 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004406/0.233, allocations: 145.5 kB / 0.6759 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.2333, allocations: 0.7001 MB / 0.6766 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.524e-05/0.2334, allocations: 7.984 kB / 0.6766 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.865e-05/0.2334, allocations: 7.438 kB / 0.6766 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of SimCode: time 2e-07/0.2334, allocations: 0 / 0.6766 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of Templates: time 0.004091/0.2375, allocations: 0.7688 MB / 0.6774 GB, free: 10.71 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)