Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.463/2.463, allocations: 251.1 MB / 266.1 MB, free: 11.57 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002323/0.002323, allocations: 173 kB / 325.6 MB, free: 2.805 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.575/2.575, allocations: 205.4 MB / 0.5766 GB, free: 20.76 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 101.6 kB / 0.6811 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004931/0.0004935, allocations: 11.09 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2284, allocations: 106.3 MB / 0.8989 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002998/0.2315, allocations: 1.919 MB / 0.9008 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001979/0.2335, allocations: 0.9829 MB / 0.9017 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.2337, allocations: 4 kB / 0.9017 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.2339, allocations: 47.53 kB / 0.9018 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002495/0.2342, allocations: 39.81 kB / 0.9018 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005889/0.2348, allocations: 183.7 kB / 0.902 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0005173/0.2353, allocations: 356.1 kB / 0.9023 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005292/0.2359, allocations: 348.3 kB / 0.9027 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.2361, allocations: 147.4 kB / 0.9028 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.2363, allocations: 163.2 kB / 0.903 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.013e-05/0.2364, allocations: 16 kB / 0.903 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.2365, allocations: 31.98 kB / 0.903 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.2366, allocations: 95.66 kB / 0.9031 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.841e-05/0.2367, allocations: 97.52 kB / 0.9032 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0005725/0.2373, allocations: 0.5222 MB / 0.9037 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2373, allocations: 0 / 0.9037 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.723e-06/0.2373, allocations: 3.938 kB / 0.9037 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.2374, allocations: 0 / 0.9037 GB, free: 60.45 MB / 0.6042 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.001281/0.2386, allocations: 0.6307 MB / 0.9043 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.2387, allocations: 8.031 kB / 0.9043 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.2388, allocations: 55.39 kB / 0.9044 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004671/0.2393, allocations: 335 kB / 0.9047 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.336e-05/0.2394, allocations: 49.3 kB / 0.9047 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.2395, allocations: 56 kB / 0.9048 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.2408, allocations: 0.5656 MB / 0.9053 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.2408, allocations: 0 / 0.9053 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.879e-05/0.2409, allocations: 20 kB / 0.9054 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-05/0.241, allocations: 24.95 kB / 0.9054 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.2421, allocations: 431.7 kB / 0.9058 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0029/0.245, allocations: 1.926 MB / 0.9077 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008447/0.2459, allocations: 367.7 kB / 0.908 GB, free: 55.8 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 6.92e-05/0.246, allocations: 7.984 kB / 0.908 GB, free: 55.79 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005187/0.2465, allocations: 222 kB / 0.9082 GB, free: 55.56 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.567e-06/0.2465, allocations: 0 / 0.9082 GB, free: 55.56 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001289/0.2478, allocations: 478.6 kB / 0.9087 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.2479, allocations: 63.16 kB / 0.9088 GB, free: 55.02 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.2482, allocations: 249.6 kB / 0.909 GB, free: 54.76 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.781e-05/0.2482, allocations: 45.7 kB / 0.909 GB, free: 54.71 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.2484, allocations: 216.7 kB / 0.9093 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.2485, allocations: 114.5 kB / 0.9094 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.629e-05/0.2486, allocations: 8 kB / 0.9094 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.526e-05/0.2487, allocations: 350.8 kB / 0.9097 GB, free: 54.02 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004329/0.2491, allocations: 165.2 kB / 0.9099 GB, free: 53.86 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005096/0.2496, allocations: 288.7 kB / 0.9101 GB, free: 53.54 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004679/0.2501, allocations: 166.1 kB / 0.9103 GB, free: 53.37 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.2501, allocations: 0 / 0.9103 GB, free: 53.37 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001176/0.2513, allocations: 0.5063 MB / 0.9108 GB, free: 52.86 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.2514, allocations: 4 kB / 0.9108 GB, free: 52.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.2514, allocations: 4 kB / 0.9108 GB, free: 52.85 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.946e-05/0.2514, allocations: 8 kB / 0.9108 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003978/0.2518, allocations: 71.77 kB / 0.9109 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.2519, allocations: 8 kB / 0.9109 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003651/0.2522, allocations: 63.86 kB / 0.9109 GB, free: 52.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.308e-05/0.2523, allocations: 31.92 kB / 0.911 GB, free: 52.67 MB / 0.6042 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,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003509/0.2527, allocations: 230.8 kB / 0.9112 GB, free: 52.43 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.244e-05/0.2527, allocations: 31.62 kB / 0.9112 GB, free: 52.4 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/0.2538, allocations: 427.5 kB / 0.9116 GB, free: 51.98 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/0.2539, allocations: 8 kB / 0.9116 GB, free: 51.97 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.2539, allocations: 0 / 0.9116 GB, free: 51.97 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.627e-06/0.2539, allocations: 3.984 kB / 0.9116 GB, free: 51.97 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002062/0.256, allocations: 1.126 MB / 0.9127 GB, free: 50.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.256, allocations: 3.984 kB / 0.9127 GB, free: 50.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.2563, allocations: 31.92 kB / 0.9128 GB, free: 50.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.2563, allocations: 0 / 0.9128 GB, free: 50.73 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/0.2563, allocations: 23.98 kB / 0.9128 GB, free: 50.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.2564, allocations: 7.953 kB / 0.9128 GB, free: 50.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.2564, allocations: 0 / 0.9128 GB, free: 50.7 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009291/0.2573, allocations: 0.4918 MB / 0.9133 GB, free: 50.2 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.749e-05/0.2574, allocations: 112.6 kB / 0.9134 GB, free: 50.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.549e-05/0.2575, allocations: 8 kB / 0.9134 GB, free: 50.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003214/0.2578, allocations: 35.97 kB / 0.9134 GB, free: 50.02 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.258, allocations: 68.3 kB / 0.9135 GB, free: 49.96 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.921e-05/0.2581, allocations: 19.98 kB / 0.9135 GB, free: 49.94 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001271/0.2582, allocations: 131 kB / 0.9136 GB, free: 49.81 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.71e-07/0.2582, allocations: 0 / 0.9136 GB, free: 49.81 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005993/0.2588, allocations: 107.7 kB / 0.9137 GB, free: 49.7 MB / 0.6042 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.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$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.active,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.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002338/0.2591, allocations: 143.1 kB / 0.9139 GB, free: 49.55 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001032/0.2601, allocations: 442.4 kB / 0.9143 GB, free: 49.12 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2601, allocations: 4.062 kB / 0.9143 GB, free: 49.11 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004904/0.2606, allocations: 222.3 kB / 0.9145 GB, free: 48.9 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.261, allocations: 35.92 kB / 0.9146 GB, free: 48.86 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.2627, allocations: 0.8467 MB / 0.9154 GB, free: 47.99 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.263, allocations: 0.8272 MB / 0.9162 GB, free: 47.14 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0003372/0.2634, allocations: 67.23 kB / 0.9163 GB, free: 47.07 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.2636, allocations: 43.42 kB / 0.9163 GB, free: 47.04 MB / 0.6042 GB Notification: Performance of SimCode: time 1.192e-06/0.2636, allocations: 4 kB / 0.9163 GB, free: 47.03 MB / 0.6042 GB Notification: Performance of Templates: time 0.01128/0.2749, allocations: 3.735 MB / 0.9199 GB, free: 43.33 MB / 0.6042 GB