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.1543/0.1564, allocations: 80.84 MB / 0.6706 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003095/0.1596, allocations: 1.769 MB / 0.6724 GB, free: 252 kB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001358/0.1609, allocations: 0.8742 MB / 0.6732 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.432e-05/0.161, allocations: 4 kB / 0.6732 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0005385/0.1616, 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.0004126/0.162, allocations: 160.6 kB / 0.6735 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004158/0.1624, allocations: 178.9 kB / 0.6737 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002718/0.1627, allocations: 247.4 kB / 0.6739 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.1629, allocations: 57.58 kB / 0.674 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.163, allocations: 95.72 kB / 0.6741 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.1633, allocations: 159.5 kB / 0.6742 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.722e-05/0.1633, allocations: 20 kB / 0.6743 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.1634, allocations: 44 kB / 0.6743 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.1635, allocations: 87.73 kB / 0.6744 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.1637, allocations: 111.2 kB / 0.6745 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003882/0.164, allocations: 354.8 kB / 0.6748 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.1641, allocations: 0 / 0.6748 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.633e-06/0.1641, allocations: 0 / 0.6748 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.165e-06/0.1641, allocations: 4 kB / 0.6748 GB, free: 13.7 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.0008334/0.1649, allocations: 0.5992 MB / 0.6754 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.165, allocations: 12.03 kB / 0.6754 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.89e-05/0.165, allocations: 28.56 kB / 0.6755 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005325/0.1656, allocations: 414.2 kB / 0.6759 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.1656, allocations: 12.38 kB / 0.6759 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/0.1657, allocations: 12.06 kB / 0.6759 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.1658, allocations: 73.66 kB / 0.6759 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1659, allocations: 4 kB / 0.676 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.1659, allocations: 4 kB / 0.676 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1659, allocations: 0 / 0.676 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.166, allocations: 47.97 kB / 0.676 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006485/0.1667, allocations: 480.4 kB / 0.6765 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.1668, allocations: 58.48 kB / 0.6765 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.68e-05/0.1669, allocations: 20.91 kB / 0.6765 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.1669, allocations: 0 / 0.6765 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.167, allocations: 30.56 kB / 0.6766 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.167, allocations: 0 / 0.6766 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0002975/0.1673, allocations: 105.2 kB / 0.6767 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.1673, allocations: 51.41 kB / 0.6767 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006063/0.1679, allocations: 0.5524 MB / 0.6773 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.168, allocations: 33.7 kB / 0.6773 GB, free: 10.99 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.1681, allocations: 171.9 kB / 0.6774 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.1681, allocations: 11.81 kB / 0.6775 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.1682, allocations: 17.66 kB / 0.6775 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1683, allocations: 346.8 kB / 0.6778 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.3e-05/0.1684, allocations: 12.11 kB / 0.6778 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.023e-05/0.1684, allocations: 15.92 kB / 0.6778 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.188e-05/0.1685, allocations: 36.84 kB / 0.6779 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1685, allocations: 0 / 0.6779 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001599/0.1687, allocations: 89.3 kB / 0.678 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.1687, allocations: 4 kB / 0.678 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1687, allocations: 3.938 kB / 0.678 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.1687, allocations: 3.938 kB / 0.678 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.539e-05/0.1688, allocations: 15.92 kB / 0.678 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.1688, allocations: 0 / 0.678 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.431e-05/0.1689, allocations: 4 kB / 0.678 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.1689, allocations: 7.984 kB / 0.678 GB, free: 10.23 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.0001461/0.1691, allocations: 177.8 kB / 0.6782 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.048e-05/0.1691, allocations: 31.61 kB / 0.6782 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/0.1692, allocations: 34.53 kB / 0.6782 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.1692, allocations: 7.938 kB / 0.6782 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1692, allocations: 0 / 0.6782 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1692, allocations: 0 / 0.6782 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002701/0.1695, allocations: 281.5 kB / 0.6785 GB, free: 9.652 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1695, allocations: 4 kB / 0.6785 GB, free: 9.648 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.299e-05/0.1696, allocations: 11.98 kB / 0.6785 GB, free: 9.637 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1696, allocations: 0 / 0.6785 GB, free: 9.637 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.1696, allocations: 0 / 0.6785 GB, free: 9.637 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1696, allocations: 3.938 kB / 0.6785 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1696, allocations: 0 / 0.6785 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002276/0.1698, allocations: 187.1 kB / 0.6787 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 9.262e-05/0.1699, allocations: 121.1 kB / 0.6788 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.17, allocations: 4 kB / 0.6788 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.601e-05/0.1701, allocations: 7.938 kB / 0.6788 GB, free: 9.285 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.689e-05/0.1701, allocations: 3.984 kB / 0.6788 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.1701, allocations: 3.984 kB / 0.6788 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004562/0.1706, allocations: 419.1 kB / 0.6792 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.51e-07/0.1706, allocations: 0 / 0.6792 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002815/0.1709, allocations: 23.94 kB / 0.6793 GB, free: 8.844 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.000923/0.1718, allocations: 346.7 kB / 0.6796 GB, free: 8.625 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001754/0.172, allocations: 35.97 kB / 0.6796 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.172, allocations: 0 / 0.6796 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 6.004e-05/0.1721, allocations: 23.94 kB / 0.6796 GB, free: 8.566 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004748/0.1726, allocations: 46.11 kB / 0.6797 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008241/0.1734, allocations: 0.5101 MB / 0.6802 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.1738, allocations: 0.7908 MB / 0.681 GB, free: 7.168 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001072/0.1739, allocations: 42.94 kB / 0.681 GB, free: 7.121 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.228e-05/0.174, allocations: 27.42 kB / 0.681 GB, free: 7.094 MB / 0.5137 GB Notification: Performance of SimCode: time 3.31e-07/0.174, allocations: 0 / 0.681 GB, free: 7.094 MB / 0.5137 GB Notification: Performance of Templates: time 0.005881/0.1799, allocations: 2.491 MB / 0.6835 GB, free: 4.641 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)