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.01558/0.01558, allocations: 108.5 kB / 15.06 MB, free: 5.555 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.001898/0.001898, allocations: 181.3 kB / 15.95 MB, free: 5.52 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 2.002/2.002, allocations: 194.6 MB / 211.3 MB, free: 11.02 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.259/2.259, allocations: 236.2 MB / 492.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005199/0.0005199, allocations: 12 kB / 0.587 GB, free: 2.062 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6746/0.6751, allocations: 98.71 MB / 0.6834 GB, free: 16.84 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003112/0.6783, allocations: 1.892 MB / 0.6853 GB, free: 15.47 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.002245/0.6806, allocations: 0.9503 MB / 0.6862 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002763/0.6809, allocations: 12.44 kB / 0.6862 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.6811, allocations: 42.06 kB / 0.6863 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.000274/0.6814, allocations: 34.06 kB / 0.6863 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008016/0.6822, allocations: 177.1 kB / 0.6865 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0007217/0.6829, allocations: 352.5 kB / 0.6868 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007376/0.6837, allocations: 349.4 kB / 0.6871 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000295/0.684, allocations: 141.2 kB / 0.6873 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003207/0.6843, allocations: 159 kB / 0.6874 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 6.456e-05/0.6844, allocations: 22.5 kB / 0.6874 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.6845, allocations: 34.67 kB / 0.6875 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.6847, allocations: 89.64 kB / 0.6876 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 9.821e-05/0.6848, allocations: 95.42 kB / 0.6877 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0009067/0.6857, allocations: 0.5177 MB / 0.6882 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.6858, allocations: 0 / 0.6882 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.964e-06/0.6858, allocations: 0 / 0.6882 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.034e-05/0.6858, allocations: 1.406 kB / 0.6882 GB, free: 13.96 MB / 0.5261 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.001331/0.6871, allocations: 0.623 MB / 0.6888 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.6872, allocations: 10.33 kB / 0.6888 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001516/0.6873, allocations: 95.02 kB / 0.6889 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.6875, allocations: 48.88 kB / 0.6889 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004943/0.688, allocations: 338.7 kB / 0.6892 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.942e-05/0.6881, allocations: 48.77 kB / 0.6893 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.6882, allocations: 53.03 kB / 0.6893 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.6897, allocations: 0.5531 MB / 0.6899 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.6897, allocations: 1 kB / 0.6899 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-05/0.6898, allocations: 22.05 kB / 0.6899 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.655e-05/0.6899, allocations: 30.12 kB / 0.6899 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.6911, allocations: 436 kB / 0.6903 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003244/0.6944, allocations: 1.9 MB / 0.6922 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009126/0.6953, allocations: 363 kB / 0.6925 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 7.125e-05/0.6954, allocations: 15.86 kB / 0.6926 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005713/0.696, allocations: 227.3 kB / 0.6928 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 4.599e-06/0.696, allocations: 0 / 0.6928 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.001425/0.6974, allocations: 484.8 kB / 0.6932 GB, free: 10.71 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.6975, allocations: 63.62 kB / 0.6933 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002988/0.6978, allocations: 238.6 kB / 0.6935 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.444e-05/0.6979, allocations: 47.03 kB / 0.6936 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.6981, allocations: 212.8 kB / 0.6938 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.6982, allocations: 117.6 kB / 0.6939 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.952e-05/0.6983, allocations: 10.34 kB / 0.6939 GB, free: 10.17 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.356e-05/0.6984, allocations: 348.1 kB / 0.6942 GB, free: 9.836 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004795/0.6988, allocations: 159.5 kB / 0.6944 GB, free: 9.777 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005661/0.6994, allocations: 292.6 kB / 0.6947 GB, free: 9.574 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004825/0.6999, allocations: 168.7 kB / 0.6948 GB, free: 9.496 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.6999, allocations: 1.906 kB / 0.6948 GB, free: 9.496 MB / 0.5261 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00138/0.7013, allocations: 0.5014 MB / 0.6953 GB, free: 9.281 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.7014, allocations: 8.219 kB / 0.6953 GB, free: 9.281 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.7014, allocations: 2.938 kB / 0.6953 GB, free: 9.281 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.773e-05/0.7014, allocations: 7.25 kB / 0.6953 GB, free: 9.281 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004157/0.7019, allocations: 64.44 kB / 0.6954 GB, free: 9.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.687e-05/0.7019, allocations: 18.25 kB / 0.6954 GB, free: 9.258 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004086/0.7023, allocations: 66.08 kB / 0.6955 GB, free: 9.223 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.592e-05/0.7024, allocations: 25.19 kB / 0.6955 GB, free: 9.219 MB / 0.5261 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.0004055/0.7028, allocations: 231.2 kB / 0.6957 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.106e-05/0.7029, allocations: 28.55 kB / 0.6957 GB, free: 9.016 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.7042, allocations: 431 kB / 0.6962 GB, free: 8.832 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.7042, allocations: 6.188 kB / 0.6962 GB, free: 8.832 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.7042, allocations: 0 / 0.6962 GB, free: 8.832 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.7042, allocations: 2.531 kB / 0.6962 GB, free: 8.832 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/0.7066, allocations: 1.139 MB / 0.6973 GB, free: 8.137 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.7067, allocations: 1.922 kB / 0.6973 GB, free: 8.137 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002738/0.7069, allocations: 40.7 kB / 0.6973 GB, free: 8.125 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.268e-06/0.707, allocations: 2.375 kB / 0.6973 GB, free: 8.125 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.055e-05/0.707, allocations: 8.891 kB / 0.6973 GB, free: 8.121 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.707, allocations: 2.75 kB / 0.6973 GB, free: 8.121 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.707, allocations: 3.953 kB / 0.6973 GB, free: 8.117 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.7081, allocations: 0.491 MB / 0.6978 GB, free: 7.848 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.751e-05/0.7082, allocations: 112.3 kB / 0.6979 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.768e-05/0.7083, allocations: 14.95 kB / 0.6979 GB, free: 7.719 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003204/0.7086, allocations: 29.06 kB / 0.698 GB, free: 7.711 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/0.7089, allocations: 68.05 kB / 0.698 GB, free: 7.695 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.707e-05/0.709, allocations: 21.33 kB / 0.698 GB, free: 7.688 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001511/0.7091, allocations: 136.6 kB / 0.6982 GB, free: 7.594 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.5e-07/0.7091, allocations: 0 / 0.6982 GB, free: 7.594 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0006566/0.7098, allocations: 109.3 kB / 0.6983 GB, free: 7.559 MB / 0.5261 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.001407/0.7112, allocations: 1.073 MB / 0.6993 GB, free: 6.75 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001312/0.7126, allocations: 438.5 kB / 0.6997 GB, free: 6.609 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.7126, allocations: 0 / 0.6997 GB, free: 6.609 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005681/0.7132, allocations: 224.5 kB / 0.7 GB, free: 6.523 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.7136, allocations: 42.7 kB / 0.7 GB, free: 6.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005036/0.7187, allocations: 4.278 MB / 0.7042 GB, free: 2.84 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.719, allocations: 0.825 MB / 0.705 GB, free: 2.078 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.000388/0.7194, allocations: 66.84 kB / 0.705 GB, free: 2.051 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003222/0.7198, allocations: 141.9 kB / 0.7052 GB, free: 1.938 MB / 0.5261 GB Notification: Performance of SimCode: time 1.192e-06/0.7198, allocations: 0 / 0.7052 GB, free: 1.938 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0351/0.7549, allocations: 7.109 MB / 0.7121 GB, free: 14.58 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003158/0.7553, allocations: 212.3 kB / 0.7123 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.745/3.5, allocations: 0 / 0.7123 GB, free: 14.34 MB / 0.5417 GB