Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [/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.1819/0.186, allocations: 80.84 MB / 0.6706 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003084/0.1892, allocations: 1.758 MB / 0.6723 GB, free: 252 kB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.1905, allocations: 0.8781 MB / 0.6732 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.798e-05/0.1906, allocations: 4 kB / 0.6732 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0005286/0.1912, allocations: 180.2 kB / 0.6734 GB, free: 15.18 MB / 0.5137 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003822/0.1916, allocations: 172.6 kB / 0.6735 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.192, allocations: 178.3 kB / 0.6737 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002763/0.1923, allocations: 239.5 kB / 0.6739 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.1924, allocations: 49.66 kB / 0.674 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.1926, allocations: 99.66 kB / 0.6741 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.1928, allocations: 155.5 kB / 0.6742 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.607e-05/0.1928, allocations: 20 kB / 0.6743 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 9.327e-05/0.1929, allocations: 55.92 kB / 0.6743 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 9.548e-05/0.193, allocations: 83.75 kB / 0.6744 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 9.364e-05/0.1931, allocations: 115.2 kB / 0.6745 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003398/0.1935, allocations: 354.8 kB / 0.6748 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1935, allocations: 0 / 0.6748 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.924e-06/0.1935, allocations: 0 / 0.6748 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.1935, allocations: 0 / 0.6748 GB, free: 13.69 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007623/0.1943, allocations: 0.5952 MB / 0.6754 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.1943, allocations: 12.03 kB / 0.6754 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.282e-05/0.1944, allocations: 32.56 kB / 0.6755 GB, free: 13 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005204/0.1949, allocations: 414.3 kB / 0.6759 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.1949, allocations: 4.375 kB / 0.6759 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.1949, allocations: 12.06 kB / 0.6759 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.1951, allocations: 81.58 kB / 0.6759 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.1951, allocations: 0 / 0.6759 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.1952, allocations: 8 kB / 0.676 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1952, allocations: 0 / 0.676 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.1953, allocations: 43.97 kB / 0.676 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005784/0.1959, allocations: 484.4 kB / 0.6765 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001196/0.196, allocations: 46.56 kB / 0.6765 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.258e-05/0.1961, allocations: 20.91 kB / 0.6765 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.1961, allocations: 0 / 0.6765 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.1961, allocations: 38.56 kB / 0.6766 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.1961, allocations: 0 / 0.6766 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0002959/0.1964, allocations: 109.2 kB / 0.6767 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.1965, allocations: 51.41 kB / 0.6767 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000591/0.1971, allocations: 0.5485 MB / 0.6772 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.1971, allocations: 33.64 kB / 0.6773 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1972, allocations: 171.9 kB / 0.6774 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.1973, allocations: 15.81 kB / 0.6775 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.44e-05/0.1973, allocations: 17.7 kB / 0.6775 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1974, allocations: 342.8 kB / 0.6778 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.469e-05/0.1975, allocations: 16.09 kB / 0.6778 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.94e-05/0.1975, allocations: 15.94 kB / 0.6778 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.485e-05/0.1976, allocations: 40.77 kB / 0.6779 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1977, allocations: 0 / 0.6779 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001606/0.1978, allocations: 81.31 kB / 0.6779 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.1978, allocations: 11.98 kB / 0.678 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.1979, allocations: 0 / 0.678 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.1979, allocations: 3.938 kB / 0.678 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.939e-05/0.198, allocations: 8 kB / 0.678 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.198, allocations: 0 / 0.678 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.129e-05/0.198, allocations: 4 kB / 0.678 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.1981, allocations: 3.984 kB / 0.678 GB, free: 10.24 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 0.0001359/0.1982, allocations: 177.8 kB / 0.6781 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.464e-05/0.1983, allocations: 31.62 kB / 0.6782 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.856e-05/0.1983, allocations: 34.53 kB / 0.6782 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1983, allocations: 4.266 kB / 0.6782 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1983, allocations: 4 kB / 0.6782 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.1984, allocations: 4 kB / 0.6782 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002603/0.1986, allocations: 289.5 kB / 0.6785 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1986, allocations: 0 / 0.6785 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.82e-05/0.1987, allocations: 15.92 kB / 0.6785 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1987, allocations: 0 / 0.6785 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.463e-06/0.1987, allocations: 0 / 0.6785 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1987, allocations: 3.938 kB / 0.6785 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1987, allocations: 4 kB / 0.6785 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.1989, allocations: 183.1 kB / 0.6787 GB, free: 9.426 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.199, allocations: 116.7 kB / 0.6788 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/0.1991, allocations: 0 / 0.6788 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.92e-05/0.1992, allocations: 7.922 kB / 0.6788 GB, free: 9.285 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.133e-05/0.1992, allocations: 4 kB / 0.6788 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.1992, allocations: 0 / 0.6788 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003979/0.1996, allocations: 423.1 kB / 0.6792 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1996, allocations: 0 / 0.6792 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002599/0.1999, allocations: 27.92 kB / 0.6793 GB, free: 8.84 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.000782/0.2007, allocations: 361.9 kB / 0.6796 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001567/0.2009, allocations: 31.97 kB / 0.6796 GB, free: 8.578 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2009, allocations: 0 / 0.6796 GB, free: 8.578 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 5.233e-05/0.2009, allocations: 15.98 kB / 0.6796 GB, free: 8.562 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.2014, allocations: 46.14 kB / 0.6797 GB, free: 8.516 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007386/0.2021, allocations: 0.51 MB / 0.6802 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.2024, allocations: 0.787 MB / 0.681 GB, free: 7.168 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001042/0.2025, allocations: 50.91 kB / 0.681 GB, free: 7.113 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.337e-05/0.2026, allocations: 19.44 kB / 0.681 GB, free: 7.094 MB / 0.5137 GB Notification: Performance of SimCode: time 2.7e-07/0.2026, allocations: 8 kB / 0.681 GB, free: 7.086 MB / 0.5137 GB Notification: Performance of Templates: time 0.005901/0.2085, allocations: 2.54 MB / 0.6835 GB, free: 4.586 MB / 0.5137 GB make -j1 -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)