Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json 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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 199.1 kB / 16.64 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.342/1.342, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.681/1.681, allocations: 292.3 MB / 0.549 GB, free: 12.76 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 68.91 kB / 0.6723 GB, free: 26.01 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.1835, allocations: 114.5 MB / 0.7841 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002797/0.1864, allocations: 1.784 MB / 0.7859 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001115/0.1875, allocations: 0.8636 MB / 0.7867 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.656e-05/0.1876, allocations: 4 kB / 0.7867 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004329/0.188, allocations: 191.5 kB / 0.7869 GB, free: 9.906 MB / 0.6075 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.0003277/0.1884, allocations: 157.8 kB / 0.7871 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003515/0.1887, allocations: 182.9 kB / 0.7872 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002339/0.189, allocations: 235.5 kB / 0.7875 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.1891, allocations: 49.67 kB / 0.7875 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.1892, allocations: 95.66 kB / 0.7876 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.1894, allocations: 155.5 kB / 0.7877 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.774e-05/0.1895, allocations: 20 kB / 0.7878 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.331e-05/0.1896, allocations: 47.98 kB / 0.7878 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.379e-05/0.1896, allocations: 87.69 kB / 0.7879 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.129e-05/0.1897, allocations: 119.2 kB / 0.788 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.19, allocations: 350.8 kB / 0.7883 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1901, allocations: 0 / 0.7883 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.455e-06/0.1901, allocations: 4 kB / 0.7883 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.1901, allocations: 3.938 kB / 0.7883 GB, free: 8.434 MB / 0.6075 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.000704/0.1908, allocations: 0.5991 MB / 0.7889 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.1908, allocations: 12.03 kB / 0.7889 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.632e-05/0.1909, allocations: 32.47 kB / 0.789 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004559/0.1913, allocations: 410.3 kB / 0.7894 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.1914, allocations: 8.359 kB / 0.7894 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.452e-05/0.1914, allocations: 12.12 kB / 0.7894 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.1916, allocations: 77.55 kB / 0.7895 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1916, allocations: 0 / 0.7895 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.1916, allocations: 11.88 kB / 0.7895 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.1916, allocations: 8 kB / 0.7895 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.1917, allocations: 43.97 kB / 0.7895 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005633/0.1923, allocations: 484.4 kB / 0.79 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000113/0.1924, allocations: 50.56 kB / 0.79 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.033e-05/0.1925, allocations: 20.91 kB / 0.79 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.1925, allocations: 3.984 kB / 0.79 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/0.1926, allocations: 30.56 kB / 0.7901 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1926, allocations: 0 / 0.7901 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002547/0.1929, allocations: 105.2 kB / 0.7902 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.1929, allocations: 55.41 kB / 0.7902 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005834/0.1935, allocations: 0.5561 MB / 0.7908 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.1935, allocations: 29.69 kB / 0.7908 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.1936, allocations: 172 kB / 0.791 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.75e-05/0.1937, allocations: 7.844 kB / 0.791 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.091e-05/0.1937, allocations: 17.7 kB / 0.791 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1938, allocations: 346.8 kB / 0.7913 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.549e-05/0.1939, allocations: 11.98 kB / 0.7913 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.635e-05/0.1939, allocations: 12 kB / 0.7913 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.099e-05/0.194, allocations: 40.83 kB / 0.7914 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.194, allocations: 0 / 0.7914 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000151/0.1942, allocations: 89.23 kB / 0.7915 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.1942, allocations: 8 kB / 0.7915 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1942, allocations: 112 / 0.7915 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.1942, allocations: 7.875 kB / 0.7915 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.427e-05/0.1943, allocations: 4 kB / 0.7915 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.1943, allocations: 4 kB / 0.7915 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.931e-05/0.1944, allocations: 7.984 kB / 0.7915 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.259e-06/0.1944, allocations: 0 / 0.7915 GB, free: 4.973 MB / 0.6075 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.0001342/0.1945, allocations: 178.5 kB / 0.7917 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.04e-05/0.1946, allocations: 27.95 kB / 0.7917 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.558e-05/0.1946, allocations: 34.53 kB / 0.7917 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1946, allocations: 3.938 kB / 0.7917 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1947, allocations: 7.984 kB / 0.7917 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1947, allocations: 0 / 0.7917 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002477/0.1949, allocations: 285.5 kB / 0.792 GB, free: 4.383 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1949, allocations: 4 kB / 0.792 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.677e-05/0.195, allocations: 8 kB / 0.792 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.195, allocations: 0 / 0.792 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.195, allocations: 0 / 0.792 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.195, allocations: 11.86 kB / 0.792 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.195, allocations: 0 / 0.792 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001923/0.1952, allocations: 187.1 kB / 0.7922 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.04e-05/0.1953, allocations: 116.7 kB / 0.7923 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.1953, allocations: 3.984 kB / 0.7923 GB, free: 4.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.958e-05/0.1954, allocations: 7.938 kB / 0.7923 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.595e-05/0.1955, allocations: 4 kB / 0.7923 GB, free: 4.012 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.1955, allocations: 0 / 0.7923 GB, free: 4.012 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004238/0.1959, allocations: 423.1 kB / 0.7927 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1959, allocations: 0 / 0.7927 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002497/0.1962, allocations: 24 kB / 0.7928 GB, free: 3.574 MB / 0.6075 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.0007165/0.1969, allocations: 356.9 kB / 0.7931 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001341/0.197, allocations: 35.92 kB / 0.7931 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.197, allocations: 0 / 0.7931 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 4.972e-05/0.1971, allocations: 19.98 kB / 0.7932 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.1975, allocations: 45.81 kB / 0.7932 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006702/0.1981, allocations: 0.5058 MB / 0.7937 GB, free: 2.723 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.1985, allocations: 0.7792 MB / 0.7945 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.523e-05/0.1986, allocations: 51.09 kB / 0.7945 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.587e-05/0.1986, allocations: 23.44 kB / 0.7945 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of SimCode: time 2.81e-07/0.1986, allocations: 3.938 kB / 0.7945 GB, free: 1.84 MB / 0.6075 GB Notification: Performance of Templates: time 0.005166/0.2038, allocations: 2.456 MB / 0.7969 GB, free: 15.4 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)