Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 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.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_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.001559/0.001559, allocations: 111 kB / 16.38 MB, free: 6.008 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.001809/0.001809, allocations: 189.4 kB / 17.31 MB, free: 5.621 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.285/1.285, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.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.766/1.766, allocations: 292.3 MB / 0.5496 GB, free: 17.64 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.001396/0.001396, allocations: 67.91 kB / 0.6729 GB, free: 5.875 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2522, allocations: 114.6 MB / 0.7848 GB, free: 3.203 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003628/0.2559, allocations: 2.265 MB / 0.787 GB, free: 0.918 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.5185/0.7744, allocations: 0.9876 MB / 0.788 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004134/0.7749, allocations: 11.62 kB / 0.788 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.7751, allocations: 60.73 kB / 0.7881 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002633/0.7754, allocations: 50.53 kB / 0.7881 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006129/0.7761, allocations: 282.7 kB / 0.7884 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0005098/0.7766, allocations: 0.6329 MB / 0.789 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005033/0.7771, allocations: 462.5 kB / 0.7894 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.7773, allocations: 225 kB / 0.7896 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.7775, allocations: 225 kB / 0.7899 GB, free: 46.31 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.902e-05/0.7776, allocations: 68.38 kB / 0.7899 GB, free: 46.31 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.7777, allocations: 80.47 kB / 0.79 GB, free: 46.31 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.000141/0.7779, allocations: 145.8 kB / 0.7901 GB, free: 46.29 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.7781, allocations: 247.6 kB / 0.7904 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005163/0.7786, allocations: 0.7305 MB / 0.7911 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.7786, allocations: 2.062 kB / 0.7911 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.823e-06/0.7786, allocations: 1.375 kB / 0.7911 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.899e-06/0.7786, allocations: 0 / 0.7911 GB, free: 46.14 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.0009774/0.7796, allocations: 0.7276 MB / 0.7918 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.7797, allocations: 10.5 kB / 0.7918 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.712e-05/0.7798, allocations: 53.52 kB / 0.7919 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003524/0.7801, allocations: 342.7 kB / 0.7922 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.096e-05/0.7802, allocations: 51.72 kB / 0.7922 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.733e-05/0.7802, allocations: 55.12 kB / 0.7923 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007885/0.781, allocations: 0.5772 MB / 0.7929 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.7811, allocations: 0 / 0.7929 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.06e-05/0.7811, allocations: 18.69 kB / 0.7929 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.797e-05/0.7811, allocations: 22.84 kB / 0.7929 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006131/0.7818, allocations: 428.9 kB / 0.7933 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001781/0.7836, allocations: 1.905 MB / 0.7952 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004617/0.784, allocations: 356.5 kB / 0.7955 GB, free: 44.35 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.7843, allocations: 185.9 kB / 0.7957 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 5.551e-05/0.7844, allocations: 14.61 kB / 0.7957 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003199/0.7847, allocations: 226.4 kB / 0.7959 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=46): time 1.833e-06/0.7847, allocations: 0 / 0.7959 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of matching and sorting (n=46): time 0.0007745/0.7855, allocations: 477.6 kB / 0.7964 GB, free: 44.14 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.7855, allocations: 67.27 kB / 0.7964 GB, free: 44.08 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.7857, allocations: 238.2 kB / 0.7967 GB, free: 43.92 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.7857, allocations: 49.16 kB / 0.7967 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.7859, allocations: 222 kB / 0.7969 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.853e-05/0.7859, allocations: 113.6 kB / 0.797 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.7861, allocations: 141.8 kB / 0.7972 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.351e-05/0.7862, allocations: 342.1 kB / 0.7975 GB, free: 43.22 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002598/0.7865, allocations: 160.7 kB / 0.7976 GB, free: 43.17 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003022/0.7868, allocations: 290.5 kB / 0.7979 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004794/0.7873, allocations: 405.2 kB / 0.7983 GB, free: 42.71 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.7873, allocations: 1.875 kB / 0.7983 GB, free: 42.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006937/0.788, allocations: 0.5042 MB / 0.7988 GB, free: 42.52 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.788, allocations: 5.688 kB / 0.7988 GB, free: 42.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.788, allocations: 3.375 kB / 0.7988 GB, free: 42.52 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.788, allocations: 7.844 kB / 0.7988 GB, free: 42.52 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002264/0.7883, allocations: 65.09 kB / 0.7989 GB, free: 42.52 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/0.7883, allocations: 11.19 kB / 0.7989 GB, free: 42.51 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002039/0.7885, allocations: 56.95 kB / 0.7989 GB, free: 42.48 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.092e-05/0.7886, allocations: 25.22 kB / 0.799 GB, free: 42.48 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.0002499/0.7888, allocations: 233.1 kB / 0.7992 GB, free: 42.3 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.512e-05/0.7889, allocations: 35.44 kB / 0.7992 GB, free: 42.28 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007699/0.7896, allocations: 431 kB / 0.7996 GB, free: 42.11 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.7897, allocations: 4.594 kB / 0.7996 GB, free: 42.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.7897, allocations: 0 / 0.7996 GB, free: 42.11 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.264e-05/0.7897, allocations: 109.6 kB / 0.7997 GB, free: 41.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.988e-05/0.7898, allocations: 12.06 kB / 0.7998 GB, free: 41.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.79, allocations: 24.78 kB / 0.7998 GB, free: 41.97 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.7901, allocations: 58.19 kB / 0.7998 GB, free: 41.96 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007783/0.7909, allocations: 494.5 kB / 0.8003 GB, free: 41.73 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006279/0.7916, allocations: 0.5521 MB / 0.8008 GB, free: 41.39 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002702/0.7918, allocations: 195.7 kB / 0.801 GB, free: 41.32 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 9.086e-05/0.7919, allocations: 137.2 kB / 0.8012 GB, free: 41.23 MB / 0.6544 GB Notification: Performance of Backend: time 6.21e-07/0.7919, allocations: 4 kB / 0.8012 GB, free: 41.22 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0007856/0.7927, allocations: 381.6 kB / 0.8015 GB, free: 41.08 MB / 0.6544 GB Notification: Performance of SimCode: time 0.001029/0.7938, allocations: 1.04 MB / 0.8025 GB, free: 40.27 MB / 0.6544 GB Notification: Performance of Templates: time 0.01127/0.8051, allocations: 4.691 MB / 0.8071 GB, free: 40.09 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)