Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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.004823/0.004823, allocations: 102.8 kB / 15.73 MB, free: 5.992 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.001141/0.001141, allocations: 193.2 kB / 16.67 MB, free: 5.914 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.197/1.197, allocations: 205.1 MB / 222.5 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.344/1.344, allocations: 251.7 MB / 0.5094 GB, free: 3.027 MB / 414.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.001254/0.001254, allocations: 75.89 kB / 0.7258 GB, free: 9.004 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1778, allocations: 104.7 MB / 0.828 GB, free: 192 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002662/0.1805, allocations: 1.761 MB / 0.8298 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.1817, allocations: 0.8857 MB / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.196e-05/0.1817, allocations: 0 / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0004577/0.1822, allocations: 190.4 kB / 0.8308 GB, free: 13.34 MB / 0.6544 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.0003477/0.1825, allocations: 164 kB / 0.831 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003424/0.1829, allocations: 174.3 kB / 0.8311 GB, free: 13.01 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000246/0.1832, allocations: 243.4 kB / 0.8314 GB, free: 12.77 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.1833, allocations: 61.62 kB / 0.8314 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1834, allocations: 95.67 kB / 0.8315 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.1836, allocations: 159.5 kB / 0.8317 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.16e-05/0.1837, allocations: 19.94 kB / 0.8317 GB, free: 12.44 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.866e-05/0.1837, allocations: 40 kB / 0.8317 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.24e-05/0.1838, allocations: 83.75 kB / 0.8318 GB, free: 12.32 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.184, allocations: 119.2 kB / 0.8319 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.1843, allocations: 358.8 kB / 0.8323 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1843, allocations: 0 / 0.8323 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.172e-06/0.1843, allocations: 4 kB / 0.8323 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.1843, allocations: 0 / 0.8323 GB, free: 11.85 MB / 0.6544 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.0006802/0.185, allocations: 0.5991 MB / 0.8328 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.185, allocations: 8.031 kB / 0.8329 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.326e-05/0.1851, allocations: 32.56 kB / 0.8329 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004692/0.1856, allocations: 422.1 kB / 0.8333 GB, free: 10.71 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-06/0.1856, allocations: 384 / 0.8333 GB, free: 10.71 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.1856, allocations: 12.12 kB / 0.8333 GB, free: 10.7 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.1858, allocations: 77.66 kB / 0.8334 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.1858, allocations: 0 / 0.8334 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.1858, allocations: 4 kB / 0.8334 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1858, allocations: 0 / 0.8334 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001122/0.1859, allocations: 47.97 kB / 0.8334 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005055/0.1864, allocations: 480.4 kB / 0.8339 GB, free: 10.04 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.1865, allocations: 58.48 kB / 0.8339 GB, free: 9.977 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.533e-05/0.1866, allocations: 12.92 kB / 0.8339 GB, free: 9.961 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.1866, allocations: 8 kB / 0.834 GB, free: 9.953 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.1867, allocations: 34.55 kB / 0.834 GB, free: 9.91 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1867, allocations: 0 / 0.834 GB, free: 9.91 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0002548/0.1869, allocations: 101.2 kB / 0.8341 GB, free: 9.805 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.187, allocations: 55.52 kB / 0.8341 GB, free: 9.738 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005335/0.1875, allocations: 0.5639 MB / 0.8347 GB, free: 9.168 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.1875, allocations: 25.7 kB / 0.8347 GB, free: 9.137 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.1876, allocations: 175.9 kB / 0.8349 GB, free: 8.961 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.1877, allocations: 7.906 kB / 0.8349 GB, free: 8.953 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/0.1877, allocations: 13.72 kB / 0.8349 GB, free: 8.934 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1878, allocations: 338.8 kB / 0.8352 GB, free: 8.594 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.499e-05/0.1879, allocations: 15.98 kB / 0.8352 GB, free: 8.578 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.765e-05/0.1879, allocations: 19.98 kB / 0.8353 GB, free: 8.559 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.918e-05/0.188, allocations: 32.84 kB / 0.8353 GB, free: 8.523 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.188, allocations: 3.938 kB / 0.8353 GB, free: 8.52 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001438/0.1882, allocations: 89.3 kB / 0.8354 GB, free: 8.426 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.1882, allocations: 4 kB / 0.8354 GB, free: 8.422 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.1882, allocations: 0 / 0.8354 GB, free: 8.422 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.1882, allocations: 7.938 kB / 0.8354 GB, free: 8.414 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.682e-05/0.1883, allocations: 11.92 kB / 0.8354 GB, free: 8.402 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.1883, allocations: 3.984 kB / 0.8354 GB, free: 8.398 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.746e-05/0.1884, allocations: 11.91 kB / 0.8354 GB, free: 8.387 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.79e-06/0.1884, allocations: 0 / 0.8354 GB, free: 8.387 MB / 0.6544 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.0001304/0.1885, allocations: 179.6 kB / 0.8356 GB, free: 8.203 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.591e-05/0.1886, allocations: 23.72 kB / 0.8356 GB, free: 8.18 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.529e-05/0.1886, allocations: 38.52 kB / 0.8356 GB, free: 8.137 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.1886, allocations: 3.938 kB / 0.8357 GB, free: 8.133 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1886, allocations: 0 / 0.8357 GB, free: 8.133 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1886, allocations: 0 / 0.8357 GB, free: 8.133 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.1889, allocations: 293.4 kB / 0.8359 GB, free: 7.797 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1889, allocations: 4 kB / 0.8359 GB, free: 7.793 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.549e-05/0.1889, allocations: 7.984 kB / 0.8359 GB, free: 7.785 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.189, allocations: 0 / 0.8359 GB, free: 7.785 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-06/0.189, allocations: 0 / 0.8359 GB, free: 7.785 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.189, allocations: 7.938 kB / 0.836 GB, free: 7.777 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.189, allocations: 0 / 0.836 GB, free: 7.777 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001892/0.1892, allocations: 183.1 kB / 0.8361 GB, free: 7.582 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.888e-05/0.1893, allocations: 116.8 kB / 0.8362 GB, free: 7.449 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.1893, allocations: 4 kB / 0.8362 GB, free: 7.445 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.181e-05/0.1894, allocations: 3.938 kB / 0.8362 GB, free: 7.441 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.855e-05/0.1894, allocations: 4 kB / 0.8362 GB, free: 7.438 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.1894, allocations: 11.92 kB / 0.8363 GB, free: 7.426 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003825/0.1898, allocations: 415.1 kB / 0.8367 GB, free: 7.023 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1898, allocations: 0 / 0.8367 GB, free: 7.023 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002376/0.1901, allocations: 31.84 kB / 0.8367 GB, free: 6.992 MB / 0.6544 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.0006776/0.1907, allocations: 350.8 kB / 0.837 GB, free: 6.77 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001305/0.1909, allocations: 27.98 kB / 0.837 GB, free: 6.742 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.1909, allocations: 0 / 0.837 GB, free: 6.742 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 4.826e-05/0.191, allocations: 23.92 kB / 0.8371 GB, free: 6.719 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/0.1913, allocations: 56.7 kB / 0.8371 GB, free: 6.664 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006278/0.192, allocations: 0.4946 MB / 0.8376 GB, free: 6.148 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.1923, allocations: 0.7946 MB / 0.8384 GB, free: 5.328 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 8.604e-05/0.1924, allocations: 42.94 kB / 0.8384 GB, free: 5.281 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.041e-05/0.1925, allocations: 23.42 kB / 0.8384 GB, free: 5.258 MB / 0.6544 GB Notification: Performance of SimCode: time 2.5e-07/0.1925, allocations: 0 / 0.8384 GB, free: 5.258 MB / 0.6544 GB Notification: Performance of Templates: time 0.004944/0.1974, allocations: 2.495 MB / 0.8409 GB, free: 2.809 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)