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.ChillerSwitch.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.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005621/0.005621, allocations: 103.3 kB / 15.74 MB, free: 5.957 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.001228/0.001228, allocations: 192.2 kB / 16.67 MB, free: 5.879 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.196/1.196, allocations: 205.1 MB / 222.5 MB, free: 4.477 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.366/1.366, allocations: 251.7 MB / 0.5094 GB, free: 2.988 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.001319/0.001319, allocations: 67.91 kB / 0.7258 GB, free: 9.027 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1769, allocations: 104.7 MB / 0.828 GB, free: 220 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002632/0.1795, allocations: 1.671 MB / 0.8297 GB, free: 14.53 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0007696/0.1803, allocations: 499.5 kB / 0.8301 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.986e-05/0.1804, allocations: 0 / 0.8301 GB, free: 14.04 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.752e-05/0.1804, allocations: 11.86 kB / 0.8302 GB, free: 14.02 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.146e-05/0.1805, allocations: 11.88 kB / 0.8302 GB, free: 14.01 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001619/0.1807, allocations: 39.89 kB / 0.8302 GB, free: 13.97 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.1808, allocations: 79.7 kB / 0.8303 GB, free: 13.89 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.1809, allocations: 27.92 kB / 0.8303 GB, free: 13.87 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.258e-05/0.181, allocations: 35.86 kB / 0.8303 GB, free: 13.83 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.179e-05/0.1811, allocations: 35.83 kB / 0.8304 GB, free: 13.8 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.969e-05/0.1811, allocations: 8 kB / 0.8304 GB, free: 13.79 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.325e-05/0.1811, allocations: 12 kB / 0.8304 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.516e-05/0.1812, allocations: 15.92 kB / 0.8304 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.172e-05/0.1812, allocations: 35.8 kB / 0.8304 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.1813, allocations: 83.7 kB / 0.8305 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1814, allocations: 0 / 0.8305 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.186e-06/0.1814, allocations: 3.984 kB / 0.8305 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.1814, allocations: 3.938 kB / 0.8305 GB, free: 13.64 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000469/0.1819, allocations: 387.1 kB / 0.8309 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.1819, allocations: 16.03 kB / 0.8309 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.324e-05/0.1819, allocations: 8.844 kB / 0.8309 GB, free: 13.19 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.1821, allocations: 182.8 kB / 0.8311 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.796e-06/0.1821, allocations: 4.375 kB / 0.8311 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.1821, allocations: 384 / 0.8311 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.1823, allocations: 95.62 kB / 0.8312 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1823, allocations: 0 / 0.8312 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.1823, allocations: 7.938 kB / 0.8312 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.1823, allocations: 4 kB / 0.8312 GB, free: 12.85 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.1825, allocations: 47.97 kB / 0.8313 GB, free: 12.8 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004192/0.1829, allocations: 328.6 kB / 0.8316 GB, free: 12.43 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.183, allocations: 50.55 kB / 0.8316 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.203e-05/0.1831, allocations: 36.92 kB / 0.8317 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.1831, allocations: 0 / 0.8317 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.1831, allocations: 38.59 kB / 0.8317 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.1832, allocations: 0 / 0.8317 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0002856/0.1834, allocations: 93.66 kB / 0.8318 GB, free: 12.19 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.1835, allocations: 85.09 kB / 0.8319 GB, free: 12.09 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.92e-05/0.1836, allocations: 126.1 kB / 0.832 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.1836, allocations: 29.7 kB / 0.832 GB, free: 11.92 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.1e-05/0.1837, allocations: 104 kB / 0.8321 GB, free: 11.82 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.1837, allocations: 7.812 kB / 0.8321 GB, free: 11.81 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.854e-05/0.1837, allocations: 21.7 kB / 0.8321 GB, free: 11.78 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.224e-05/0.1838, allocations: 326.8 kB / 0.8324 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.231e-05/0.1839, allocations: 23.98 kB / 0.8325 GB, free: 11.43 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.393e-05/0.184, allocations: 41.7 kB / 0.8325 GB, free: 11.38 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.1841, allocations: 48.77 kB / 0.8326 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1841, allocations: 0 / 0.8326 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001737/0.1843, allocations: 85.58 kB / 0.8326 GB, free: 11.24 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.1843, allocations: 4 kB / 0.8326 GB, free: 11.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1843, allocations: 224 / 0.8326 GB, free: 11.24 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.1843, allocations: 8 kB / 0.8326 GB, free: 11.23 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.112e-05/0.1844, allocations: 11.98 kB / 0.8327 GB, free: 11.22 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1845, allocations: 3.938 kB / 0.8327 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.844e-05/0.1845, allocations: 11.98 kB / 0.8327 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.619e-06/0.1845, allocations: 3.938 kB / 0.8327 GB, free: 11.2 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: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.526e-05/0.1846, allocations: 121.8 kB / 0.8328 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.566e-05/0.1847, allocations: 3.906 kB / 0.8328 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.842e-05/0.1847, allocations: 20.23 kB / 0.8328 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.1847, allocations: 0 / 0.8328 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1847, allocations: 0 / 0.8328 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1847, allocations: 0 / 0.8328 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001637/0.1849, allocations: 197.5 kB / 0.833 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1849, allocations: 3.938 kB / 0.833 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.374e-05/0.185, allocations: 8 kB / 0.833 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.185, allocations: 0 / 0.833 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.185, allocations: 3.984 kB / 0.833 GB, free: 10.78 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.185, allocations: 0 / 0.833 GB, free: 10.78 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.185, allocations: 0 / 0.833 GB, free: 10.78 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002024/0.1852, allocations: 183.4 kB / 0.8332 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.22e-05/0.1852, allocations: 85.05 kB / 0.8333 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.1853, allocations: 0 / 0.8333 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.1854, allocations: 11.98 kB / 0.8333 GB, free: 10.47 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.993e-05/0.1854, allocations: 11.98 kB / 0.8333 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.1854, allocations: 0 / 0.8333 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.581e-05/0.1855, allocations: 109.7 kB / 0.8334 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1855, allocations: 0 / 0.8334 GB, free: 10.36 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002105/0.1857, allocations: 15.91 kB / 0.8334 GB, free: 10.34 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 9.385e-05/0.1858, allocations: 103.2 kB / 0.8335 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001777/0.186, allocations: 51.97 kB / 0.8336 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.186, allocations: 0 / 0.8336 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 7.505e-05/0.1861, allocations: 36.16 kB / 0.8336 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.1864, allocations: 4 kB / 0.8336 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003683/0.1867, allocations: 175.1 kB / 0.8338 GB, free: 9.941 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.187, allocations: 0.6924 MB / 0.8344 GB, free: 9.223 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.547e-05/0.187, allocations: 7.984 kB / 0.8345 GB, free: 9.215 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.389e-05/0.1871, allocations: 11.44 kB / 0.8345 GB, free: 9.203 MB / 0.6544 GB Notification: Performance of SimCode: time 1.8e-07/0.1871, allocations: 0 / 0.8345 GB, free: 9.203 MB / 0.6544 GB Notification: Performance of Templates: time 0.002937/0.19, allocations: 0.8952 MB / 0.8353 GB, free: 8.348 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)