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.1734/0.1754, allocations: 80.83 MB / 0.6706 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003144/0.1786, allocations: 1.769 MB / 0.6724 GB, free: 72 kB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.18, allocations: 0.8743 MB / 0.6732 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.788e-05/0.1801, allocations: 4 kB / 0.6732 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0005967/0.1807, allocations: 183.3 kB / 0.6734 GB, free: 15 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.0003958/0.1811, allocations: 156.7 kB / 0.6735 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004051/0.1815, allocations: 182.1 kB / 0.6737 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.000269/0.1818, allocations: 239.5 kB / 0.6739 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.182, allocations: 57.64 kB / 0.674 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/0.1821, allocations: 91.67 kB / 0.6741 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.1823, allocations: 151.5 kB / 0.6742 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/0.1824, allocations: 20 kB / 0.6742 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.1825, allocations: 51.98 kB / 0.6743 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.1826, allocations: 87.69 kB / 0.6744 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.1827, allocations: 119.1 kB / 0.6745 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003519/0.1831, allocations: 350.8 kB / 0.6748 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.1831, allocations: 0 / 0.6748 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.452e-06/0.1831, allocations: 0 / 0.6748 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.291e-06/0.1831, allocations: 4 kB / 0.6748 GB, free: 13.53 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.0007929/0.1839, allocations: 0.603 MB / 0.6754 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.1839, allocations: 12.03 kB / 0.6754 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.973e-05/0.184, allocations: 28.56 kB / 0.6755 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005107/0.1845, allocations: 410.3 kB / 0.6759 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.1846, allocations: 8.375 kB / 0.6759 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.1846, allocations: 12.06 kB / 0.6759 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000166/0.1848, allocations: 69.67 kB / 0.6759 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.1848, allocations: 7.984 kB / 0.6759 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.1848, allocations: 7.984 kB / 0.676 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.1848, allocations: 0 / 0.676 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.185, allocations: 55.84 kB / 0.676 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005792/0.1855, allocations: 476.4 kB / 0.6765 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.1857, allocations: 50.55 kB / 0.6765 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.732e-05/0.1858, allocations: 20.92 kB / 0.6765 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.1858, allocations: 3.984 kB / 0.6765 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.1858, allocations: 34.55 kB / 0.6766 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.393e-06/0.1858, allocations: 4 kB / 0.6766 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0003096/0.1861, allocations: 105.2 kB / 0.6767 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.1862, allocations: 51.41 kB / 0.6767 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005835/0.1868, allocations: 0.5563 MB / 0.6773 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.1868, allocations: 25.7 kB / 0.6773 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.1869, allocations: 172 kB / 0.6775 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.187, allocations: 15.8 kB / 0.6775 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.187, allocations: 13.72 kB / 0.6775 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1871, allocations: 342.8 kB / 0.6778 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.454e-05/0.1872, allocations: 16.09 kB / 0.6778 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.052e-05/0.1872, allocations: 15.92 kB / 0.6778 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.162e-05/0.1873, allocations: 36.84 kB / 0.6779 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1874, allocations: 0 / 0.6779 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001625/0.1875, allocations: 93.23 kB / 0.678 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.1875, allocations: 4 kB / 0.678 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1876, allocations: 0 / 0.678 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.1876, allocations: 3.938 kB / 0.678 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.809e-05/0.1877, allocations: 11.98 kB / 0.678 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.1877, allocations: 3.984 kB / 0.678 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.351e-05/0.1877, allocations: 4 kB / 0.678 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.1878, allocations: 4 kB / 0.678 GB, free: 10.06 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.0001491/0.1879, allocations: 181.8 kB / 0.6782 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.135e-05/0.188, allocations: 27.62 kB / 0.6782 GB, free: 9.848 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.555e-05/0.188, allocations: 42.52 kB / 0.6782 GB, free: 9.805 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1881, allocations: 7.938 kB / 0.6782 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1881, allocations: 0 / 0.6782 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.1881, allocations: 0 / 0.6782 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002711/0.1883, allocations: 277.8 kB / 0.6785 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1884, allocations: 0 / 0.6785 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.133e-05/0.1884, allocations: 15.98 kB / 0.6785 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1884, allocations: 0 / 0.6785 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.1884, allocations: 4 kB / 0.6785 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.638e-06/0.1884, allocations: 3.938 kB / 0.6785 GB, free: 9.453 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1885, allocations: 3.938 kB / 0.6785 GB, free: 9.449 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000215/0.1887, allocations: 183.1 kB / 0.6787 GB, free: 9.254 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.1888, allocations: 116.7 kB / 0.6788 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.1888, allocations: 8 kB / 0.6788 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.083e-05/0.1889, allocations: 7.938 kB / 0.6788 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.844e-05/0.189, allocations: 0 / 0.6788 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.189, allocations: 0 / 0.6788 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004241/0.1894, allocations: 423.1 kB / 0.6792 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.1894, allocations: 0 / 0.6792 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002618/0.1897, allocations: 23.94 kB / 0.6793 GB, free: 8.668 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.0008661/0.1906, allocations: 346.5 kB / 0.6796 GB, free: 8.449 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001773/0.1907, allocations: 35.92 kB / 0.6796 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1908, allocations: 0 / 0.6796 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 5.73e-05/0.1908, allocations: 19.98 kB / 0.6796 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.1913, allocations: 52.5 kB / 0.6797 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008174/0.1921, allocations: 0.5062 MB / 0.6802 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.1925, allocations: 0.7831 MB / 0.681 GB, free: 7.008 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001149/0.1926, allocations: 46.94 kB / 0.681 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.255e-05/0.1927, allocations: 31.42 kB / 0.681 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of SimCode: time 7.01e-07/0.1927, allocations: 0 / 0.681 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of Templates: time 0.006016/0.1987, allocations: 2.497 MB / 0.6835 GB, free: 4.465 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)