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.BatteryControl.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.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005409/0.005409, allocations: 104.7 kB / 15.74 MB, free: 6.488 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.001344/0.001344, allocations: 197.5 kB / 16.67 MB, free: 6.375 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.198/1.198, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.357/1.357, allocations: 251.7 MB / 0.5094 GB, free: 3.016 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.001285/0.001285, allocations: 59.91 kB / 0.7258 GB, free: 9.023 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1765, allocations: 104.7 MB / 0.828 GB, free: 204 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.00312/0.1796, allocations: 2.265 MB / 0.8302 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001612/0.1813, allocations: 1.002 MB / 0.8312 GB, free: 12.91 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.1814, allocations: 11.94 kB / 0.8312 GB, free: 12.9 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001979/0.1816, allocations: 59.34 kB / 0.8313 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.1819, allocations: 51.47 kB / 0.8313 GB, free: 12.79 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005122/0.1824, allocations: 287.6 kB / 0.8316 GB, free: 12.51 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0005594/0.183, allocations: 0.6286 MB / 0.8322 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005125/0.1835, allocations: 468.1 kB / 0.8327 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.1837, allocations: 211.4 kB / 0.8329 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.1839, allocations: 226.9 kB / 0.8331 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.895e-05/0.184, allocations: 68 kB / 0.8332 GB, free: 10.92 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.1841, allocations: 83.98 kB / 0.8332 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.1843, allocations: 151.6 kB / 0.8334 GB, free: 10.69 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.1845, allocations: 246.8 kB / 0.8336 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005467/0.185, allocations: 0.7359 MB / 0.8343 GB, free: 9.707 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1851, allocations: 3.938 kB / 0.8343 GB, free: 9.703 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.233e-06/0.1851, allocations: 0 / 0.8343 GB, free: 9.703 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.1851, allocations: 0 / 0.8343 GB, free: 9.703 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.0009426/0.186, allocations: 0.7242 MB / 0.835 GB, free: 8.934 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.1861, allocations: 12.03 kB / 0.8351 GB, free: 8.922 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.584e-05/0.1862, allocations: 52.38 kB / 0.8351 GB, free: 8.871 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/0.1865, allocations: 348.1 kB / 0.8354 GB, free: 8.492 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.735e-05/0.1866, allocations: 49.69 kB / 0.8355 GB, free: 8.445 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.775e-05/0.1867, allocations: 60.38 kB / 0.8355 GB, free: 8.387 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008217/0.1875, allocations: 0.5777 MB / 0.8361 GB, free: 7.777 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.1875, allocations: 4 kB / 0.8361 GB, free: 7.773 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.54e-05/0.1876, allocations: 20 kB / 0.8361 GB, free: 7.754 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.168e-05/0.1876, allocations: 24.92 kB / 0.8362 GB, free: 7.727 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006779/0.1883, allocations: 419.7 kB / 0.8366 GB, free: 7.32 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.1901, allocations: 1.907 MB / 0.8384 GB, free: 5.332 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004956/0.1907, allocations: 351 kB / 0.8388 GB, free: 4.98 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002567/0.1909, allocations: 188.8 kB / 0.8389 GB, free: 4.793 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 4.557e-05/0.191, allocations: 11.98 kB / 0.8389 GB, free: 4.781 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003267/0.1913, allocations: 218.3 kB / 0.8392 GB, free: 4.555 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=46): time 1.673e-06/0.1913, allocations: 0 / 0.8392 GB, free: 4.555 MB / 0.6544 GB Notification: Performance of matching and sorting (n=46): time 0.0008088/0.1921, allocations: 481.2 kB / 0.8396 GB, free: 4.078 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.1922, allocations: 63.09 kB / 0.8397 GB, free: 4.004 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001841/0.1924, allocations: 249.7 kB / 0.8399 GB, free: 3.746 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.618e-05/0.1924, allocations: 49.69 kB / 0.84 GB, free: 3.691 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.1926, allocations: 216.7 kB / 0.8402 GB, free: 3.473 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 8.445e-05/0.1927, allocations: 110.5 kB / 0.8403 GB, free: 3.363 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.1928, allocations: 142.3 kB / 0.8404 GB, free: 3.219 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.1929, allocations: 346.7 kB / 0.8407 GB, free: 2.871 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.1932, allocations: 161.2 kB / 0.8409 GB, free: 2.715 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.1935, allocations: 296.7 kB / 0.8412 GB, free: 2.375 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004894/0.194, allocations: 398.4 kB / 0.8416 GB, free: 1.941 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.194, allocations: 0 / 0.8416 GB, free: 1.941 MB / 0.6544 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007014/0.1947, allocations: 0.5139 MB / 0.8421 GB, free: 1.418 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.1948, allocations: 8 kB / 0.8421 GB, free: 1.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1948, allocations: 4 kB / 0.8421 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1948, allocations: 4.469 kB / 0.8421 GB, free: 1.402 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.195, allocations: 67.83 kB / 0.8421 GB, free: 1.336 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.195, allocations: 8 kB / 0.8421 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001971/0.1952, allocations: 59.52 kB / 0.8422 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/0.1953, allocations: 27.98 kB / 0.8422 GB, free: 1.242 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,con.t4.enableFire,con.t4.localCondition,con.t3.enableFire,con.t3.localCondition,con.discharge.active,con.discharge.oldActive,$PRE.con.discharge.oldActive,con.discharge.newActive,$PRE.con.discharge.newActive,con.discharge.localActive,$PRE.con.discharge.localActive,con.charge.active,con.charge.oldActive,$PRE.con.charge.oldActive,con.charge.newActive,$PRE.con.charge.newActive,con.charge.localActive,$PRE.con.charge.localActive,con.t2.t_start,$PRE.con.t2.t_start,con.t2.fire,con.t2.enableFire,con.t2.localCondition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.localCondition,con.alternative.split[2].available,con.stateGraphRoot.activeSteps,con.off.oldActive,$PRE.con.off.oldActive,con.off.newActive,$PRE.con.off.newActive,con.off.outPort[1].reset,con.off.inPort[1].set,con.off.localActive,$PRE.con.off.localActive,con.off.active,con.multiSwitch1.firstActiveIndex,con.multiSwitch1.u[2],con.multiSwitch1.u[1],con.greaterThreshold.y,con.not1.y,con.lessThreshold.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.0002099/0.1955, allocations: 222.9 kB / 0.8424 GB, free: 1.012 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.917e-05/0.1955, allocations: 27.72 kB / 0.8425 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006707/0.1962, allocations: 435.4 kB / 0.8429 GB, free: 0.5547 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1962, allocations: 4 kB / 0.8429 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1962, allocations: 0 / 0.8429 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1963, allocations: 3.984 kB / 0.8429 GB, free: 0.5469 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.1976, allocations: 1.121 MB / 0.844 GB, free: 15.36 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1976, allocations: 4 kB / 0.844 GB, free: 15.35 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.1977, allocations: 31.91 kB / 0.844 GB, free: 15.32 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.1977, allocations: 11.88 kB / 0.844 GB, free: 15.31 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.1978, allocations: 15.98 kB / 0.844 GB, free: 15.29 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.1978, allocations: 0 / 0.844 GB, free: 15.29 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1978, allocations: 0 / 0.844 GB, free: 15.29 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005697/0.1983, allocations: 496.9 kB / 0.8445 GB, free: 14.79 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 4.885e-05/0.1984, allocations: 112.6 kB / 0.8446 GB, free: 14.66 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.749e-05/0.1984, allocations: 16 kB / 0.8446 GB, free: 14.64 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.1986, allocations: 23.97 kB / 0.8447 GB, free: 14.62 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.1988, allocations: 64.36 kB / 0.8447 GB, free: 14.56 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.1988, allocations: 12 kB / 0.8447 GB, free: 14.55 MB / 0.67 GB Notification: Performance of sorting global known variables: time 8.752e-05/0.1989, allocations: 144.2 kB / 0.8449 GB, free: 14.41 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1989, allocations: 0 / 0.8449 GB, free: 14.41 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0003592/0.1992, allocations: 111.5 kB / 0.845 GB, free: 14.3 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.localActive,con.discharge.active,con.charge.localActive,con.charge.active,con.off.active,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.localCondition,con.t1.fire,con.t1.t_start,con.t2.localCondition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.localCondition,con.t3.enableFire,con.t4.localCondition,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001783/0.1994, allocations: 147 kB / 0.8451 GB, free: 14.14 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0006542/0.2001, allocations: 437.6 kB / 0.8455 GB, free: 13.72 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2001, allocations: 4.875 kB / 0.8455 GB, free: 13.72 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0002974/0.2004, allocations: 218.3 kB / 0.8458 GB, free: 13.51 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.2007, allocations: 49.86 kB / 0.8458 GB, free: 13.46 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.2018, allocations: 0.7174 MB / 0.8465 GB, free: 12.71 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.2021, allocations: 0.8229 MB / 0.8473 GB, free: 11.86 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001715/0.2023, allocations: 75.22 kB / 0.8474 GB, free: 11.79 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.2024, allocations: 39.42 kB / 0.8474 GB, free: 11.75 MB / 0.67 GB Notification: Performance of SimCode: time 2.4e-07/0.2024, allocations: 0 / 0.8474 GB, free: 11.75 MB / 0.67 GB Notification: Performance of Templates: time 0.007408/0.2098, allocations: 4.402 MB / 0.8517 GB, free: 7.406 MB / 0.67 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)