Running: ./testmodel.py --libraries=/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.088/2.088, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001467/0.001467, allocations: 187.2 kB / 325.5 MB, free: 2.895 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.324/2.324, allocations: 205.4 MB / 0.5764 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00119/0.00119, allocations: 92.28 kB / 0.6809 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005077/0.0005077, allocations: 11.72 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2347, allocations: 106.3 MB / 0.8988 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2494/0.4841, allocations: 135.8 MB / 1.031 GB, free: 9.5 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004049/0.4846, allocations: 99.94 kB / 1.031 GB, free: 9.402 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03354/0.5182, allocations: 8.245 MB / 1.04 GB, free: 1.102 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.004e-06/0.5182, allocations: 0 / 1.04 GB, free: 1.102 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.17e-05/0.5183, allocations: 8 kB / 1.04 GB, free: 1.094 MB / 0.6823 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.001427/0.5197, allocations: 0.6427 MB / 1.04 GB, free: 404 kB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.5198, allocations: 8.031 kB / 1.04 GB, free: 396 kB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001629/0.5199, allocations: 98.5 kB / 1.04 GB, free: 288 kB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.5201, allocations: 47.44 kB / 1.04 GB, free: 240 kB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006429/0.5207, allocations: 339.2 kB / 1.041 GB, free: 15.86 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.205e-05/0.5208, allocations: 45.31 kB / 1.041 GB, free: 15.81 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.521, allocations: 56.34 kB / 1.041 GB, free: 15.76 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.5225, allocations: 0.5656 MB / 1.041 GB, free: 15.16 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.779e-05/0.5225, allocations: 7.938 kB / 1.041 GB, free: 15.16 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.637e-05/0.5226, allocations: 24 kB / 1.041 GB, free: 15.13 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.277e-05/0.5226, allocations: 21 kB / 1.041 GB, free: 15.11 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.5239, allocations: 415.7 kB / 1.042 GB, free: 14.7 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003567/0.5275, allocations: 1.911 MB / 1.044 GB, free: 12.72 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009582/0.5285, allocations: 361.9 kB / 1.044 GB, free: 12.36 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.329e-05/0.5286, allocations: 12 kB / 1.044 GB, free: 12.34 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006078/0.5292, allocations: 229.9 kB / 1.044 GB, free: 12.11 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 4.008e-06/0.5292, allocations: 0 / 1.044 GB, free: 12.11 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.00153/0.5308, allocations: 482.6 kB / 1.045 GB, free: 11.63 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.453e-05/0.5309, allocations: 67.16 kB / 1.045 GB, free: 11.55 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/0.5312, allocations: 224.9 kB / 1.045 GB, free: 11.32 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.239e-05/0.5313, allocations: 45.7 kB / 1.045 GB, free: 11.27 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/0.5315, allocations: 225.3 kB / 1.045 GB, free: 11.05 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001481/0.5317, allocations: 110.6 kB / 1.045 GB, free: 10.94 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.82e-05/0.5317, allocations: 12 kB / 1.045 GB, free: 10.93 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.5319, allocations: 342.8 kB / 1.046 GB, free: 10.58 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000493/0.5324, allocations: 161.2 kB / 1.046 GB, free: 10.43 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006/0.533, allocations: 288.7 kB / 1.046 GB, free: 10.1 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005125/0.5336, allocations: 174.1 kB / 1.046 GB, free: 9.93 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.5336, allocations: 0 / 1.046 GB, free: 9.93 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001418/0.535, allocations: 0.4984 MB / 1.047 GB, free: 9.422 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.535, allocations: 8.469 kB / 1.047 GB, free: 9.414 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.5351, allocations: 8 kB / 1.047 GB, free: 9.406 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.996e-05/0.5351, allocations: 4 kB / 1.047 GB, free: 9.402 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004313/0.5356, allocations: 67.83 kB / 1.047 GB, free: 9.336 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.3e-05/0.5356, allocations: 11.89 kB / 1.047 GB, free: 9.324 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003781/0.536, allocations: 43.83 kB / 1.047 GB, free: 9.281 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.047e-05/0.5361, allocations: 27.98 kB / 1.047 GB, free: 9.254 MB / 0.698 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.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$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.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,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.enableFire,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.0004275/0.5365, allocations: 226.9 kB / 1.047 GB, free: 9.023 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.444e-05/0.5366, allocations: 27.7 kB / 1.047 GB, free: 8.996 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.5379, allocations: 439.5 kB / 1.048 GB, free: 8.562 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.5379, allocations: 7.938 kB / 1.048 GB, free: 8.555 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.5379, allocations: 0 / 1.048 GB, free: 8.555 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.5379, allocations: 3.953 kB / 1.048 GB, free: 8.551 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002449/0.5404, allocations: 1.058 MB / 1.049 GB, free: 7.438 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.5404, allocations: 0 / 1.049 GB, free: 7.438 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.5407, allocations: 43.86 kB / 1.049 GB, free: 7.395 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/0.5407, allocations: 0 / 1.049 GB, free: 7.395 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.029e-05/0.5408, allocations: 15.92 kB / 1.049 GB, free: 7.379 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.653e-06/0.5408, allocations: 4 kB / 1.049 GB, free: 7.375 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5408, allocations: 0 / 1.049 GB, free: 7.375 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.542, allocations: 0.4919 MB / 1.049 GB, free: 6.863 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.5421, allocations: 108.7 kB / 1.049 GB, free: 6.738 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.735e-05/0.5422, allocations: 11.89 kB / 1.049 GB, free: 6.727 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003738/0.5426, allocations: 31.97 kB / 1.049 GB, free: 6.695 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.5428, allocations: 64.34 kB / 1.049 GB, free: 6.633 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.263e-05/0.5429, allocations: 23.98 kB / 1.049 GB, free: 6.609 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001594/0.5431, allocations: 127.2 kB / 1.049 GB, free: 6.484 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.71e-07/0.5431, allocations: 0 / 1.049 GB, free: 6.484 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006194/0.5437, allocations: 95.98 kB / 1.05 GB, free: 6.391 MB / 0.698 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.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,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.001591/0.5453, allocations: 1.068 MB / 1.051 GB, free: 5.297 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001304/0.5466, allocations: 446.4 kB / 1.051 GB, free: 4.855 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.5466, allocations: 0 / 1.051 GB, free: 4.855 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005734/0.5472, allocations: 218.4 kB / 1.051 GB, free: 4.645 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004268/0.5477, allocations: 35.94 kB / 1.051 GB, free: 4.609 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005631/0.5533, allocations: 4.29 MB / 1.055 GB, free: 212 kB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5956/1.149, allocations: 0.8234 MB / 1.056 GB, free: 150.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004763/1.149, allocations: 67.94 kB / 1.056 GB, free: 150.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004038/1.15, allocations: 145.9 kB / 1.056 GB, free: 150.2 MB / 0.698 GB Notification: Performance of SimCode: time 1.583e-06/1.15, allocations: 1.375 kB / 1.056 GB, free: 150.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04457/1.194, allocations: 7.135 MB / 1.063 GB, free: 149.9 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002352/1.195, allocations: 211.9 kB / 1.064 GB, free: 149.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.585/3.779, allocations: 0.8125 kB / 1.064 GB, free: 149.6 MB / 0.698 GB