Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.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.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.006274/0.00628, allocations: 238.8 kB / 15.8 MB, free: 6.281 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.001747/0.001747, allocations: 183.3 kB / 16.69 MB, free: 5.449 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.109/4.109, allocations: 389.1 MB / 406.5 MB, free: 11.86 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 4.292/4.292, allocations: 472.3 MB / 0.9024 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.00067/0.0006704, allocations: 19.45 kB / 1.008 GB, free: 138.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.1875, allocations: 98.71 MB / 1.105 GB, free: 42.01 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.00544/0.193, allocations: 3.679 MB / 1.108 GB, free: 38.32 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.004132/0.1972, allocations: 1.897 MB / 1.11 GB, free: 36.41 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000485/0.1977, allocations: 11.94 kB / 1.11 GB, free: 36.4 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002904/0.198, allocations: 79.3 kB / 1.11 GB, free: 36.32 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0006165/0.1987, allocations: 173.9 kB / 1.11 GB, free: 36.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001258/0.1999, allocations: 326.4 kB / 1.111 GB, free: 35.84 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001549/0.2015, allocations: 0.9048 MB / 1.111 GB, free: 34.93 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.2027, allocations: 0.7835 MB / 1.112 GB, free: 34.14 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003695/0.2031, allocations: 249.6 kB / 1.112 GB, free: 33.9 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005563/0.2037, allocations: 310.6 kB / 1.113 GB, free: 33.6 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 9.885e-05/0.2038, allocations: 32 kB / 1.113 GB, free: 33.57 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003613/0.2042, allocations: 91.83 kB / 1.113 GB, free: 33.48 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.2044, allocations: 163.4 kB / 1.113 GB, free: 33.32 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.2046, allocations: 140.7 kB / 1.113 GB, free: 33.18 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0008813/0.2055, allocations: 0.6315 MB / 1.114 GB, free: 32.54 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.2055, allocations: 0 / 1.114 GB, free: 32.54 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.526e-06/0.2055, allocations: 4 kB / 1.114 GB, free: 32.54 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.463e-05/0.2056, allocations: 0 / 1.114 GB, free: 32.54 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: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.001759/0.2073, allocations: 0.7962 MB / 1.115 GB, free: 31.69 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.2074, allocations: 12.02 kB / 1.115 GB, free: 31.68 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007351/0.2081, allocations: 123 kB / 1.115 GB, free: 31.56 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007742/0.2089, allocations: 419.8 kB / 1.115 GB, free: 31.11 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.969e-05/0.209, allocations: 61.98 kB / 1.115 GB, free: 31.05 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001433/0.2092, allocations: 76.84 kB / 1.115 GB, free: 30.98 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.211, allocations: 0.861 MB / 1.116 GB, free: 30.07 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.055e-05/0.211, allocations: 7.938 kB / 1.116 GB, free: 30.06 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.189e-05/0.2111, allocations: 32 kB / 1.116 GB, free: 30.03 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.26e-05/0.2112, allocations: 45.3 kB / 1.116 GB, free: 29.98 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.2126, allocations: 0.5671 MB / 1.117 GB, free: 29.41 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004865/0.2175, allocations: 3.684 MB / 1.12 GB, free: 25.54 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008564/0.2184, allocations: 312.9 kB / 1.121 GB, free: 25.23 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005465/0.219, allocations: 205.5 kB / 1.121 GB, free: 25.03 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 5.377e-05/0.219, allocations: 12.36 kB / 1.121 GB, free: 25.02 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005364/0.2196, allocations: 250.4 kB / 1.121 GB, free: 24.76 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=47): time 3.517e-06/0.2196, allocations: 0 / 1.121 GB, free: 24.76 MB / 0.6042 GB Notification: Performance of matching and sorting (n=47): time 0.001167/0.2208, allocations: 460.3 kB / 1.122 GB, free: 24.31 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.2208, allocations: 85.11 kB / 1.122 GB, free: 24.21 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005091/0.2214, allocations: 417.1 kB / 1.122 GB, free: 23.8 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.039e-05/0.2214, allocations: 49.69 kB / 1.122 GB, free: 23.75 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.2217, allocations: 339.5 kB / 1.122 GB, free: 23.41 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.2218, allocations: 130.3 kB / 1.122 GB, free: 23.28 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.683e-05/0.2218, allocations: 12 kB / 1.123 GB, free: 23.27 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.222, allocations: 365.7 kB / 1.123 GB, free: 22.91 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000385/0.2224, allocations: 153.9 kB / 1.123 GB, free: 22.76 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005041/0.2229, allocations: 395.2 kB / 1.123 GB, free: 22.28 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004399/0.2233, allocations: 187 kB / 1.124 GB, free: 22.11 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.2234, allocations: 4 kB / 1.124 GB, free: 22.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001231/0.2246, allocations: 0.5824 MB / 1.124 GB, free: 21.53 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001498/0.2248, allocations: 311.6 kB / 1.124 GB, free: 21.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.2248, allocations: 8 kB / 1.124 GB, free: 21.13 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.454e-05/0.2248, allocations: 12 kB / 1.124 GB, free: 21.12 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005864/0.2254, allocations: 103.8 kB / 1.125 GB, free: 21.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.98e-05/0.2255, allocations: 15.94 kB / 1.125 GB, free: 21 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005573/0.226, allocations: 81.06 kB / 1.125 GB, free: 20.92 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-05/0.2261, allocations: 36 kB / 1.125 GB, free: 20.89 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.767e-06/0.2262, allocations: 4 kB / 1.125 GB, free: 20.88 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001087/0.2272, allocations: 0.5182 MB / 1.125 GB, free: 20.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.2273, allocations: 13.31 kB / 1.125 GB, free: 20.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2273, allocations: 12 kB / 1.125 GB, free: 20.35 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005478/0.2279, allocations: 99.77 kB / 1.125 GB, free: 20.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.735e-05/0.2279, allocations: 19.39 kB / 1.125 GB, free: 20.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004889/0.2284, allocations: 71.28 kB / 1.125 GB, free: 20.17 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.32e-05/0.2285, allocations: 35.98 kB / 1.125 GB, free: 20.13 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,off.active,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,toOn.condition,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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.0004433/0.2289, allocations: 314.8 kB / 1.126 GB, free: 19.82 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.535e-05/0.229, allocations: 52.17 kB / 1.126 GB, free: 19.77 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009769/0.23, allocations: 389.9 kB / 1.126 GB, free: 19.38 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.23, allocations: 0 / 1.126 GB, free: 19.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2301, allocations: 3.375 kB / 1.126 GB, free: 19.38 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002137/0.2303, allocations: 156.4 kB / 1.126 GB, free: 19.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.532e-05/0.2304, allocations: 15.98 kB / 1.126 GB, free: 19.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.2307, allocations: 12 kB / 1.126 GB, free: 19.18 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.2308, allocations: 49.44 kB / 1.126 GB, free: 19.14 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001042/0.2319, allocations: 0.5172 MB / 1.127 GB, free: 18.62 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001197/0.2331, allocations: 0.7619 MB / 1.128 GB, free: 17.84 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003334/0.2334, allocations: 167.4 kB / 1.128 GB, free: 17.68 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.00032/0.2338, allocations: 251.1 kB / 1.128 GB, free: 17.44 MB / 0.6042 GB Notification: Performance of Backend: time 9.42e-07/0.2338, allocations: 3.938 kB / 1.128 GB, free: 17.44 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002015/0.2358, allocations: 0.7104 MB / 1.129 GB, free: 16.73 MB / 0.6042 GB Notification: Performance of SimCode: time 0.002412/0.2383, allocations: 1.587 MB / 1.13 GB, free: 15.11 MB / 0.6042 GB Notification: Performance of Templates: time 0.02006/0.2584, allocations: 7.24 MB / 1.137 GB, free: 8.305 MB / 0.6042 GB