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.1763/0.1783, allocations: 80.84 MB / 0.5897 GB, free: 7.109 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003978/0.1824, allocations: 1.819 MB / 0.5915 GB, free: 5.266 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.184, allocations: 0.8512 MB / 0.5923 GB, free: 4.406 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.1842, allocations: 3.938 kB / 0.5923 GB, free: 4.402 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006356/0.1848, allocations: 182.5 kB / 0.5925 GB, free: 4.23 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004092/0.1852, allocations: 155.6 kB / 0.5926 GB, free: 4.078 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004754/0.1857, allocations: 171.6 kB / 0.5928 GB, free: 3.914 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000332/0.1861, allocations: 215.5 kB / 0.593 GB, free: 3.703 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.1862, allocations: 57.58 kB / 0.5931 GB, free: 3.648 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.1864, allocations: 83.69 kB / 0.5931 GB, free: 3.566 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002375/0.1867, allocations: 143.5 kB / 0.5933 GB, free: 3.426 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.584e-05/0.1867, allocations: 8 kB / 0.5933 GB, free: 3.418 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.1869, allocations: 31.92 kB / 0.5933 GB, free: 3.387 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.187, allocations: 79.73 kB / 0.5934 GB, free: 3.309 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.1871, allocations: 103.2 kB / 0.5935 GB, free: 3.207 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003796/0.1875, allocations: 330.9 kB / 0.5938 GB, free: 2.883 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1875, allocations: 0 / 0.5938 GB, free: 2.883 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1875, allocations: 0 / 0.5938 GB, free: 2.883 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1875, allocations: 0 / 0.5938 GB, free: 2.883 MB / 446.1 MB 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.001146/0.1887, allocations: 0.6185 MB / 0.5944 GB, free: 2.215 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.1887, allocations: 12.03 kB / 0.5944 GB, free: 2.203 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.1888, allocations: 28.56 kB / 0.5944 GB, free: 2.176 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006138/0.1895, allocations: 410.3 kB / 0.5948 GB, free: 1.734 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.1895, allocations: 4.375 kB / 0.5948 GB, free: 1.73 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.1895, allocations: 8.125 kB / 0.5948 GB, free: 1.723 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.1897, allocations: 73.66 kB / 0.5949 GB, free: 1.645 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.1897, allocations: 0 / 0.5949 GB, free: 1.645 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.1898, allocations: 4 kB / 0.5949 GB, free: 1.641 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.1898, allocations: 4 kB / 0.5949 GB, free: 1.637 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.1899, allocations: 51.91 kB / 0.595 GB, free: 1.586 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006951/0.1906, allocations: 496.3 kB / 0.5954 GB, free: 1.051 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001427/0.1908, allocations: 46.56 kB / 0.5955 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.792e-05/0.1908, allocations: 16.92 kB / 0.5955 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.1909, allocations: 3.984 kB / 0.5955 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.1909, allocations: 38.55 kB / 0.5955 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1909, allocations: 0 / 0.5955 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003175/0.1912, allocations: 105.2 kB / 0.5956 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.1913, allocations: 51.41 kB / 0.5957 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006402/0.1919, allocations: 0.5602 MB / 0.5962 GB, free: 188 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.192, allocations: 25.7 kB / 0.5963 GB, free: 156 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.1921, allocations: 168.1 kB / 0.5964 GB, free: 15.98 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.1921, allocations: 11.84 kB / 0.5964 GB, free: 15.97 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.994e-05/0.1922, allocations: 17.72 kB / 0.5965 GB, free: 15.95 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1924, allocations: 342.8 kB / 0.5968 GB, free: 15.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.403e-05/0.1924, allocations: 12 kB / 0.5968 GB, free: 15.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.603e-05/0.1925, allocations: 19.98 kB / 0.5968 GB, free: 15.57 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.94e-05/0.1926, allocations: 28.84 kB / 0.5968 GB, free: 15.54 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1926, allocations: 0 / 0.5968 GB, free: 15.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001858/0.1928, allocations: 93.23 kB / 0.5969 GB, free: 15.44 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.1928, allocations: 4 kB / 0.5969 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1928, allocations: 0 / 0.5969 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1928, allocations: 3.938 kB / 0.5969 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.8e-05/0.1929, allocations: 11.98 kB / 0.5969 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.193, allocations: 0 / 0.5969 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.785e-05/0.193, allocations: 4 kB / 0.597 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.193, allocations: 8 kB / 0.597 GB, free: 15.41 MB / 462.1 MB 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.0001881/0.1932, allocations: 174.7 kB / 0.5971 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/0.1933, allocations: 31.62 kB / 0.5972 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00026/0.1936, allocations: 104.1 kB / 0.5973 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1936, allocations: 3.938 kB / 0.5973 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1936, allocations: 0 / 0.5973 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1936, allocations: 8 kB / 0.5973 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003151/0.1939, allocations: 285.6 kB / 0.5975 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.194, allocations: 3.938 kB / 0.5975 GB, free: 14.74 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-05/0.194, allocations: 8 kB / 0.5976 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.194, allocations: 0 / 0.5976 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.194, allocations: 0 / 0.5976 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.194, allocations: 3.938 kB / 0.5976 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.194, allocations: 0 / 0.5976 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002375/0.1943, allocations: 187.2 kB / 0.5977 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.1944, allocations: 116.7 kB / 0.5978 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.1944, allocations: 0 / 0.5978 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.487e-05/0.1945, allocations: 16.28 kB / 0.5979 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.1946, allocations: 3.938 kB / 0.5979 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.1946, allocations: 0 / 0.5979 GB, free: 14.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004715/0.1951, allocations: 419.1 kB / 0.5983 GB, free: 13.97 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1951, allocations: 0 / 0.5983 GB, free: 13.97 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002806/0.1954, allocations: 31.84 kB / 0.5983 GB, free: 13.94 MB / 462.1 MB 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.0009628/0.1964, allocations: 356.5 kB / 0.5986 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001749/0.1965, allocations: 31.97 kB / 0.5987 GB, free: 13.71 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1966, allocations: 4 kB / 0.5987 GB, free: 13.71 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 6.044e-05/0.1966, allocations: 19.98 kB / 0.5987 GB, free: 13.69 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000598/0.1972, allocations: 38.64 kB / 0.5987 GB, free: 13.65 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.1983, allocations: 0.5779 MB / 0.5993 GB, free: 13.05 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.1988, allocations: 0.7834 MB / 0.6001 GB, free: 12.24 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001306/0.1989, allocations: 50.92 kB / 0.6001 GB, free: 12.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.274e-05/0.199, allocations: 19.44 kB / 0.6001 GB, free: 12.18 MB / 462.1 MB Notification: Performance of SimCode: time 2.4e-07/0.199, allocations: 0 / 0.6001 GB, free: 12.18 MB / 462.1 MB Notification: Performance of Templates: time 0.00638/0.2054, allocations: 2.377 MB / 0.6024 GB, free: 9.848 MB / 462.1 MB 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)