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.001467/0.001467, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 195.5 kB / 16.14 MB, free: 6.656 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.278/1.278, allocations: 205.1 MB / 222 MB, free: 4.762 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.668/1.668, allocations: 292.2 MB / 0.5484 GB, free: 13.68 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.001399/0.001399, allocations: 69.88 kB / 0.6708 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1853, allocations: 114.5 MB / 0.7827 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003079/0.1884, allocations: 1.838 MB / 0.7845 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001272/0.1897, allocations: 0.8433 MB / 0.7853 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.88e-05/0.1899, allocations: 3.938 kB / 0.7853 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004862/0.1904, allocations: 175.5 kB / 0.7855 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003233/0.1907, allocations: 153.8 kB / 0.7856 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.1911, allocations: 170.8 kB / 0.7858 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002419/0.1913, allocations: 211.5 kB / 0.786 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.1915, allocations: 57.92 kB / 0.786 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.1916, allocations: 91.59 kB / 0.7861 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.1918, allocations: 135.6 kB / 0.7862 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.606e-05/0.1919, allocations: 11.94 kB / 0.7863 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.192e-05/0.192, allocations: 31.98 kB / 0.7863 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.274e-05/0.1921, allocations: 75.73 kB / 0.7864 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.003e-05/0.1922, allocations: 107.2 kB / 0.7865 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002988/0.1925, allocations: 334.8 kB / 0.7868 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1925, allocations: 0 / 0.7868 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.61e-07/0.1925, allocations: 4 kB / 0.7868 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.1925, allocations: 3.938 kB / 0.7868 GB, free: 9.793 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.0007682/0.1933, allocations: 0.6069 MB / 0.7874 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.1933, allocations: 12.03 kB / 0.7874 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.443e-05/0.1934, allocations: 36.41 kB / 0.7874 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004969/0.1939, allocations: 406.4 kB / 0.7878 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.1939, allocations: 8.375 kB / 0.7878 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.1939, allocations: 8.125 kB / 0.7878 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001672/0.1941, allocations: 77.66 kB / 0.7879 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.1941, allocations: 0 / 0.7879 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.1942, allocations: 7.938 kB / 0.7879 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.1942, allocations: 0 / 0.7879 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001197/0.1943, allocations: 47.97 kB / 0.788 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005217/0.1948, allocations: 488.4 kB / 0.7884 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000123/0.195, allocations: 46.56 kB / 0.7885 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.177e-05/0.195, allocations: 20.91 kB / 0.7885 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.195, allocations: 0 / 0.7885 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.1951, allocations: 34.56 kB / 0.7885 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.1951, allocations: 0 / 0.7885 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002791/0.1954, allocations: 105.4 kB / 0.7886 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.1954, allocations: 55.34 kB / 0.7887 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000576/0.196, allocations: 0.56 MB / 0.7892 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.196, allocations: 25.7 kB / 0.7893 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.1961, allocations: 172 kB / 0.7894 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.292e-05/0.1962, allocations: 11.84 kB / 0.7894 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-05/0.1962, allocations: 17.72 kB / 0.7894 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1963, allocations: 342.8 kB / 0.7898 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.268e-05/0.1964, allocations: 16 kB / 0.7898 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.216e-05/0.1964, allocations: 15.98 kB / 0.7898 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.194e-05/0.1965, allocations: 32.84 kB / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1966, allocations: 0 / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001622/0.1967, allocations: 93.23 kB / 0.7899 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.1967, allocations: 4 kB / 0.7899 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.1968, allocations: 0 / 0.7899 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.1968, allocations: 3.938 kB / 0.7899 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.075e-05/0.1969, allocations: 15.98 kB / 0.7899 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.1969, allocations: 0 / 0.7899 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.078e-05/0.1969, allocations: 0 / 0.7899 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.197, allocations: 4 kB / 0.7899 GB, free: 6.332 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.0001392/0.1971, allocations: 182.5 kB / 0.7901 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.397e-05/0.1972, allocations: 31.62 kB / 0.7902 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000212/0.1974, allocations: 96.14 kB / 0.7902 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1974, allocations: 11.94 kB / 0.7903 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.1974, allocations: 3.938 kB / 0.7903 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1974, allocations: 0 / 0.7903 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.1977, allocations: 285.5 kB / 0.7905 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1977, allocations: 0 / 0.7905 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.033e-05/0.1977, allocations: 8 kB / 0.7905 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1978, allocations: 384 / 0.7905 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.1978, allocations: 0 / 0.7905 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.1978, allocations: 3.938 kB / 0.7905 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1978, allocations: 0 / 0.7905 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002211/0.198, allocations: 191.1 kB / 0.7907 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.565e-05/0.1981, allocations: 116.7 kB / 0.7908 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.1982, allocations: 3.938 kB / 0.7908 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.262e-05/0.1983, allocations: 11.92 kB / 0.7909 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.239e-05/0.1983, allocations: 3.938 kB / 0.7909 GB, free: 5.297 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.1983, allocations: 4 kB / 0.7909 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004166/0.1987, allocations: 419.1 kB / 0.7913 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1988, allocations: 4 kB / 0.7913 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002633/0.199, allocations: 23.98 kB / 0.7913 GB, free: 4.859 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.0007447/0.1998, allocations: 351.8 kB / 0.7916 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001408/0.1999, allocations: 35.97 kB / 0.7917 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1999, allocations: 0 / 0.7917 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.632e-05/0.2, allocations: 23.92 kB / 0.7917 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004178/0.2004, allocations: 36.83 kB / 0.7917 GB, free: 4.547 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000733/0.2012, allocations: 0.5818 MB / 0.7923 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.2015, allocations: 0.7794 MB / 0.793 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001091/0.2016, allocations: 46.92 kB / 0.7931 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.146e-05/0.2017, allocations: 23.44 kB / 0.7931 GB, free: 3.062 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.2017, allocations: 4 kB / 0.7931 GB, free: 3.059 MB / 0.6075 GB Notification: Performance of Templates: time 0.00531/0.207, allocations: 2.381 MB / 0.7954 GB, free: 0.6914 MB / 0.6075 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)