Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.03224/0.03224, allocations: 221.3 kB / 15.17 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001818/0.001818, allocations: 177.6 kB / 16.06 MB, free: 5.832 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.631/3.631, allocations: 389.1 MB / 405.9 MB, free: 68.47 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.156/4.156, allocations: 472.3 MB / 0.9018 GB, free: 13.37 MB / 0.573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006466/0.0006469, allocations: 12 kB / 1.008 GB, free: 0.6914 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6054/0.6061, allocations: 98.72 MB / 1.104 GB, free: 183.7 MB / 0.6823 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002634/0.6088, allocations: 1.892 MB / 1.106 GB, free: 181.8 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.001826/0.6106, allocations: 0.9487 MB / 1.107 GB, free: 180.8 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.6108, allocations: 11.94 kB / 1.107 GB, free: 180.8 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.611, allocations: 43.59 kB / 1.107 GB, free: 180.8 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.0002461/0.6112, allocations: 29.09 kB / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005419/0.6118, allocations: 183.7 kB / 1.107 GB, free: 180.6 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.0005776/0.6124, allocations: 0.5309 MB / 1.108 GB, free: 180 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005224/0.6129, allocations: 353.3 kB / 1.108 GB, free: 179.7 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001898/0.6131, allocations: 139.4 kB / 1.108 GB, free: 179.6 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.6133, allocations: 159.2 kB / 1.108 GB, free: 179.4 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 5.339e-05/0.6134, allocations: 16 kB / 1.108 GB, free: 179.4 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.6135, allocations: 42.08 kB / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.6137, allocations: 87.67 kB / 1.108 GB, free: 179.3 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 7.836e-05/0.6138, allocations: 93.52 kB / 1.109 GB, free: 179.2 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.000548/0.6143, allocations: 0.5237 MB / 1.109 GB, free: 178.6 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.6143, allocations: 0 / 1.109 GB, free: 178.6 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.914e-06/0.6144, allocations: 0.9375 kB / 1.109 GB, free: 178.6 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.6144, allocations: 3.344 kB / 1.109 GB, free: 178.6 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.00118/0.6156, allocations: 0.6204 MB / 1.11 GB, free: 178 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.6156, allocations: 8.031 kB / 1.11 GB, free: 178 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000121/0.6157, allocations: 91.52 kB / 1.11 GB, free: 177.9 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.6159, allocations: 56.31 kB / 1.11 GB, free: 177.8 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004468/0.6163, allocations: 336.4 kB / 1.11 GB, free: 177.4 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.093e-05/0.6164, allocations: 45 kB / 1.11 GB, free: 177.4 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.6165, allocations: 55.31 kB / 1.11 GB, free: 177.3 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.6177, allocations: 0.5539 MB / 1.111 GB, free: 176.8 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.6178, allocations: 4.156 kB / 1.111 GB, free: 176.8 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.277e-05/0.6178, allocations: 23.95 kB / 1.111 GB, free: 176.7 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.388e-05/0.6179, allocations: 21.89 kB / 1.111 GB, free: 176.7 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.6189, allocations: 435.6 kB / 1.111 GB, free: 176.3 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/0.6216, allocations: 1.903 MB / 1.113 GB, free: 174.3 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007889/0.6224, allocations: 362.3 kB / 1.113 GB, free: 174 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004139/0.6229, allocations: 188.8 kB / 1.114 GB, free: 173.8 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 6.208e-05/0.6229, allocations: 7.125 kB / 1.114 GB, free: 173.8 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004958/0.6235, allocations: 230.9 kB / 1.114 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 3.467e-06/0.6235, allocations: 0 / 1.114 GB, free: 173.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.00119/0.6247, allocations: 478.8 kB / 1.114 GB, free: 173.1 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.6247, allocations: 63.72 kB / 1.114 GB, free: 173 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.625, allocations: 241 kB / 1.115 GB, free: 172.8 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.543e-05/0.625, allocations: 49.69 kB / 1.115 GB, free: 172.7 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.6252, allocations: 214.8 kB / 1.115 GB, free: 172.5 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.6253, allocations: 114.5 kB / 1.115 GB, free: 172.4 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.544e-05/0.6253, allocations: 8 kB / 1.115 GB, free: 172.4 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.396e-05/0.6254, allocations: 351.4 kB / 1.115 GB, free: 172 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004367/0.6259, allocations: 164.6 kB / 1.115 GB, free: 171.9 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004721/0.6264, allocations: 292.3 kB / 1.116 GB, free: 171.5 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004036/0.6268, allocations: 169.3 kB / 1.116 GB, free: 171.4 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.6268, allocations: 0 / 1.116 GB, free: 171.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001071/0.6279, allocations: 0.5043 MB / 1.116 GB, free: 170.9 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.6279, allocations: 4 kB / 1.116 GB, free: 170.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.6279, allocations: 4.938 kB / 1.116 GB, free: 170.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.628, allocations: 8.875 kB / 1.116 GB, free: 170.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003878/0.6284, allocations: 63.83 kB / 1.116 GB, free: 170.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.6284, allocations: 11.94 kB / 1.116 GB, free: 170.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.6288, allocations: 62.98 kB / 1.117 GB, free: 170.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-05/0.6288, allocations: 27.98 kB / 1.117 GB, free: 170.7 MB / 0.6823 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.0002927/0.6291, allocations: 229.5 kB / 1.117 GB, free: 170.5 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.027e-05/0.6292, allocations: 31.62 kB / 1.117 GB, free: 170.4 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.6302, allocations: 430.8 kB / 1.117 GB, free: 170 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.6302, allocations: 4 kB / 1.117 GB, free: 170 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.6303, allocations: 0.6562 kB / 1.117 GB, free: 170 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.6303, allocations: 9.516 kB / 1.117 GB, free: 170 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.6323, allocations: 1.127 MB / 1.118 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.6323, allocations: 0 / 1.118 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002523/0.6325, allocations: 39.91 kB / 1.118 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.6326, allocations: 5 kB / 1.118 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.6326, allocations: 13.78 kB / 1.118 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.6326, allocations: 8.891 kB / 1.118 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.6326, allocations: 3.5 kB / 1.118 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008502/0.6335, allocations: 0.4919 MB / 1.119 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.937e-05/0.6335, allocations: 108.6 kB / 1.119 GB, free: 168.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.979e-05/0.6336, allocations: 12 kB / 1.119 GB, free: 168.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003182/0.634, allocations: 34.94 kB / 1.119 GB, free: 168.1 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.6342, allocations: 64.3 kB / 1.119 GB, free: 168 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.6342, allocations: 16 kB / 1.119 GB, free: 168 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001157/0.6343, allocations: 142 kB / 1.119 GB, free: 167.9 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.11e-07/0.6343, allocations: 0 / 1.119 GB, free: 167.9 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005229/0.6349, allocations: 109.6 kB / 1.119 GB, free: 167.8 MB / 0.6823 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.001156/0.636, allocations: 1.08 MB / 1.12 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0009348/0.637, allocations: 429.6 kB / 1.121 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.637, allocations: 3.156 kB / 1.121 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004522/0.6375, allocations: 222.3 kB / 1.121 GB, free: 166 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004977/0.638, allocations: 49.72 kB / 1.121 GB, free: 166 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003712/0.6417, allocations: 2.027 MB / 1.123 GB, free: 163.9 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.642, allocations: 0.8354 MB / 1.124 GB, free: 163 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0003175/0.6424, allocations: 58.25 kB / 1.124 GB, free: 163 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002939/0.6427, allocations: 143.4 kB / 1.124 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of SimCode: time 8.01e-07/0.6427, allocations: 0 / 1.124 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02879/0.6715, allocations: 7.133 MB / 1.131 GB, free: 156.4 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002601/0.6718, allocations: 226.3 kB / 1.131 GB, free: 156.1 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.467/3.138, allocations: 3.938 kB / 1.131 GB, free: 156.1 MB / 0.6823 GB