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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.006415/0.006414, allocations: 237 kB / 15.81 MB, free: 6.312 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.001857/0.001858, allocations: 181.9 kB / 16.69 MB, free: 5.469 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 4.025/4.025, allocations: 389.1 MB / 406.5 MB, free: 11.84 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 3.972/3.972, allocations: 472.3 MB / 0.9024 GB, free: 9.227 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0005187/0.0005189, allocations: 15.98 kB / 1.008 GB, free: 138.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1763, allocations: 98.72 MB / 1.105 GB, free: 42.09 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002911/0.1793, allocations: 1.906 MB / 1.106 GB, free: 40.18 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002117/0.1814, allocations: 0.9401 MB / 1.107 GB, free: 39.23 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003364/0.1818, allocations: 14.94 kB / 1.107 GB, free: 39.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.182, allocations: 43.59 kB / 1.107 GB, free: 39.17 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.1823, allocations: 23.78 kB / 1.107 GB, free: 39.15 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006941/0.183, allocations: 187.7 kB / 1.108 GB, free: 38.96 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0007496/0.1838, allocations: 0.5378 MB / 1.108 GB, free: 38.43 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006062/0.1844, allocations: 353.7 kB / 1.109 GB, free: 38.1 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002552/0.1847, allocations: 143.4 kB / 1.109 GB, free: 37.96 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002308/0.185, allocations: 159.2 kB / 1.109 GB, free: 37.8 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.934e-05/0.185, allocations: 20 kB / 1.109 GB, free: 37.79 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.1852, allocations: 28 kB / 1.109 GB, free: 37.76 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.1853, allocations: 91.66 kB / 1.109 GB, free: 37.67 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.549e-05/0.1854, allocations: 93.52 kB / 1.109 GB, free: 37.57 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0006672/0.1861, allocations: 0.5262 MB / 1.11 GB, free: 37.04 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1861, allocations: 0 / 1.11 GB, free: 37.04 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.825e-06/0.1861, allocations: 2.938 kB / 1.11 GB, free: 37.04 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.331e-05/0.1862, allocations: 0 / 1.11 GB, free: 37.04 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001319/0.1875, allocations: 0.6257 MB / 1.11 GB, free: 36.37 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.1876, allocations: 8.031 kB / 1.11 GB, free: 36.36 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.1877, allocations: 47.44 kB / 1.11 GB, free: 36.32 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000461/0.1882, allocations: 336.9 kB / 1.111 GB, free: 35.95 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.379e-05/0.1883, allocations: 43.62 kB / 1.111 GB, free: 35.91 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.1884, allocations: 56 kB / 1.111 GB, free: 35.85 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.1897, allocations: 0.5599 MB / 1.111 GB, free: 35.27 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.1897, allocations: 3.031 kB / 1.111 GB, free: 35.27 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.1898, allocations: 20 kB / 1.111 GB, free: 35.25 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.332e-05/0.1899, allocations: 24.98 kB / 1.111 GB, free: 35.23 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.1911, allocations: 431.6 kB / 1.112 GB, free: 34.8 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003036/0.1941, allocations: 1.908 MB / 1.113 GB, free: 32.84 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008119/0.195, allocations: 355.3 kB / 1.114 GB, free: 32.49 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004272/0.1955, allocations: 187.2 kB / 1.114 GB, free: 32.3 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 7.675e-05/0.1955, allocations: 4 kB / 1.114 GB, free: 32.3 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005286/0.1961, allocations: 232.6 kB / 1.114 GB, free: 32.07 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.878e-06/0.1961, allocations: 0 / 1.114 GB, free: 32.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001279/0.1974, allocations: 480.1 kB / 1.115 GB, free: 31.59 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.1975, allocations: 63.09 kB / 1.115 GB, free: 31.52 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.1977, allocations: 243.8 kB / 1.115 GB, free: 31.27 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.846e-05/0.1979, allocations: 53.2 kB / 1.115 GB, free: 31.22 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.198, allocations: 216.7 kB / 1.115 GB, free: 31 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.1981, allocations: 114.5 kB / 1.115 GB, free: 30.89 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.622e-05/0.1982, allocations: 8 kB / 1.115 GB, free: 30.88 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.977e-05/0.1983, allocations: 338.8 kB / 1.116 GB, free: 30.54 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004531/0.1987, allocations: 165.2 kB / 1.116 GB, free: 30.38 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005019/0.1992, allocations: 290.9 kB / 1.116 GB, free: 30.06 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004382/0.1997, allocations: 174.1 kB / 1.116 GB, free: 29.89 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1997, allocations: 0 / 1.116 GB, free: 29.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00119/0.2009, allocations: 0.5012 MB / 1.117 GB, free: 29.39 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.201, allocations: 8 kB / 1.117 GB, free: 29.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.201, allocations: 4.719 kB / 1.117 GB, free: 29.38 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.201, allocations: 12 kB / 1.117 GB, free: 29.37 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004019/0.2015, allocations: 64.97 kB / 1.117 GB, free: 29.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.662e-05/0.2015, allocations: 11.94 kB / 1.117 GB, free: 29.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000421/0.2019, allocations: 70.42 kB / 1.117 GB, free: 29.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.24e-05/0.202, allocations: 24 kB / 1.117 GB, free: 29.2 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.0003526/0.2024, allocations: 230.5 kB / 1.117 GB, free: 28.98 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.027e-05/0.2024, allocations: 23.72 kB / 1.117 GB, free: 28.96 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.2035, allocations: 431 kB / 1.118 GB, free: 28.54 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.2036, allocations: 0 / 1.118 GB, free: 28.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2036, allocations: 0 / 1.118 GB, free: 28.54 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 7.341e-05/0.2037, allocations: 110.1 kB / 1.118 GB, free: 28.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.012e-05/0.2038, allocations: 19.94 kB / 1.118 GB, free: 28.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.204, allocations: 31.92 kB / 1.118 GB, free: 28.36 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.2042, allocations: 67.22 kB / 1.118 GB, free: 28.29 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00119/0.2054, allocations: 493.8 kB / 1.118 GB, free: 27.81 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0009551/0.2064, allocations: 0.5471 MB / 1.119 GB, free: 27.25 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004275/0.2069, allocations: 204.3 kB / 1.119 GB, free: 27.05 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001396/0.207, allocations: 135.3 kB / 1.119 GB, free: 26.93 MB / 0.6042 GB Notification: Performance of Backend: time 5.61e-07/0.2071, allocations: 1.312 kB / 1.119 GB, free: 26.93 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001187/0.2083, allocations: 376.1 kB / 1.12 GB, free: 26.56 MB / 0.6042 GB Notification: Performance of SimCode: time 0.001464/0.2098, allocations: 1.163 MB / 1.121 GB, free: 25.36 MB / 0.6042 GB Notification: Performance of Templates: time 0.01281/0.2226, allocations: 4.035 MB / 1.125 GB, free: 21.54 MB / 0.6042 GB