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.009057/0.009062, allocations: 111.6 kB / 15.06 MB, free: 5.562 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.001117/0.001117, allocations: 180 kB / 15.95 MB, free: 5.523 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 1.928/1.928, allocations: 194.6 MB / 211.3 MB, free: 11.27 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.269/2.269, allocations: 236.2 MB / 492.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004715/0.0004717, allocations: 12 kB / 0.5869 GB, free: 2.207 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5974/0.5979, allocations: 98.71 MB / 0.6833 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.004886/0.6029, allocations: 3.631 MB / 0.6869 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.003596/0.6065, allocations: 1.875 MB / 0.6887 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005239/0.607, allocations: 18.81 kB / 0.6887 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0003646/0.6074, allocations: 85.53 kB / 0.6888 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0008322/0.6083, allocations: 160.9 kB / 0.689 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001221/0.6095, allocations: 324.6 kB / 0.6893 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0009191/0.6105, allocations: 0.5374 MB / 0.6898 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001098/0.6116, allocations: 0.7876 MB / 0.6906 GB, free: 11.87 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.6119, allocations: 238.5 kB / 0.6908 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004199/0.6124, allocations: 260.8 kB / 0.691 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 9.064e-05/0.6125, allocations: 30.38 kB / 0.6911 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003023/0.6128, allocations: 92.72 kB / 0.6912 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001826/0.613, allocations: 157 kB / 0.6913 GB, free: 11.55 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.6131, allocations: 136.1 kB / 0.6914 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.000928/0.6141, allocations: 0.6299 MB / 0.6921 GB, free: 11.31 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.89e-06/0.6141, allocations: 0 / 0.6921 GB, free: 11.31 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.118e-06/0.6141, allocations: 0 / 0.6921 GB, free: 11.31 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2e-05/0.6141, allocations: 1.031 kB / 0.6921 GB, free: 11.31 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: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.001434/0.6156, allocations: 0.8062 MB / 0.6928 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.6157, allocations: 9.031 kB / 0.6929 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006748/0.6163, allocations: 121.6 kB / 0.693 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006577/0.617, allocations: 422.6 kB / 0.6934 GB, free: 10.33 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.261e-05/0.6171, allocations: 64.53 kB / 0.6934 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.6173, allocations: 80.56 kB / 0.6935 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.619, allocations: 0.8481 MB / 0.6943 GB, free: 9.812 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.6191, allocations: 5.016 kB / 0.6943 GB, free: 9.809 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.625e-05/0.6192, allocations: 33.14 kB / 0.6944 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.678e-05/0.6193, allocations: 46.19 kB / 0.6944 GB, free: 9.781 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001405/0.6207, allocations: 0.5716 MB / 0.695 GB, free: 9.574 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004544/0.6252, allocations: 3.688 MB / 0.6986 GB, free: 6.602 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007629/0.626, allocations: 308.1 kB / 0.6989 GB, free: 6.449 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 4.203e-05/0.6261, allocations: 12.86 kB / 0.6989 GB, free: 6.441 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004841/0.6266, allocations: 218.6 kB / 0.6991 GB, free: 6.293 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=47): time 3.879e-06/0.6266, allocations: 0 / 0.6991 GB, free: 6.293 MB / 0.5261 GB Notification: Performance of matching and sorting (n=47): time 0.00108/0.6277, allocations: 460.3 kB / 0.6995 GB, free: 6.062 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.6277, allocations: 61.33 kB / 0.6996 GB, free: 5.996 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004978/0.6282, allocations: 416 kB / 0.7 GB, free: 5.719 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.578e-05/0.6283, allocations: 50.17 kB / 0.7 GB, free: 5.672 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/0.6286, allocations: 334.6 kB / 0.7004 GB, free: 5.379 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.6287, allocations: 137.9 kB / 0.7005 GB, free: 5.262 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.462e-05/0.6287, allocations: 14.22 kB / 0.7005 GB, free: 5.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.242e-05/0.6288, allocations: 362.5 kB / 0.7008 GB, free: 4.898 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003855/0.6292, allocations: 153.5 kB / 0.701 GB, free: 4.824 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005348/0.6298, allocations: 389.5 kB / 0.7014 GB, free: 4.449 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004447/0.6302, allocations: 186.5 kB / 0.7015 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.997e-06/0.6303, allocations: 3.219 kB / 0.7015 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00124/0.6315, allocations: 0.5939 MB / 0.7021 GB, free: 4.055 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000526/0.6321, allocations: 2.702 MB / 0.7048 GB, free: 1.164 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.6321, allocations: 6.406 kB / 0.7048 GB, free: 1.164 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.927e-05/0.6321, allocations: 11.09 kB / 0.7048 GB, free: 1.164 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004618/0.6326, allocations: 107.4 kB / 0.7049 GB, free: 1.129 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.365e-05/0.6326, allocations: 14.84 kB / 0.7049 GB, free: 1.125 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004791/0.6331, allocations: 84.08 kB / 0.705 GB, free: 1.066 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.18e-05/0.6332, allocations: 33.7 kB / 0.705 GB, free: 1.059 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.6332, allocations: 3 kB / 0.705 GB, free: 1.059 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001115/0.6344, allocations: 0.524 MB / 0.7055 GB, free: 0.8008 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.6344, allocations: 6.75 kB / 0.7055 GB, free: 0.8008 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.6344, allocations: 12.12 kB / 0.7055 GB, free: 0.8008 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004144/0.6348, allocations: 102.6 kB / 0.7056 GB, free: 0.7695 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/0.6349, allocations: 15.17 kB / 0.7057 GB, free: 0.7656 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004472/0.6353, allocations: 69.03 kB / 0.7057 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-05/0.6354, allocations: 38.39 kB / 0.7058 GB, free: 0.707 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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.000434/0.6359, allocations: 316.4 kB / 0.7061 GB, free: 448 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.061e-05/0.636, allocations: 49.17 kB / 0.7061 GB, free: 420 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008736/0.6369, allocations: 406 kB / 0.7065 GB, free: 184 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.6369, allocations: 9.562 kB / 0.7065 GB, free: 180 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.764e-06/0.6369, allocations: 0 / 0.7065 GB, free: 180 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.6369, allocations: 3.984 kB / 0.7065 GB, free: 176 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/0.6391, allocations: 1.059 MB / 0.7075 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.499e-06/0.6391, allocations: 1.656 kB / 0.7075 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002962/0.6394, allocations: 48.47 kB / 0.7076 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.209e-06/0.6394, allocations: 5.844 kB / 0.7076 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.005e-05/0.6395, allocations: 11.59 kB / 0.7076 GB, free: 15.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.211e-06/0.6395, allocations: 5.719 kB / 0.7076 GB, free: 15.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.367e-06/0.6395, allocations: 5.719 kB / 0.7076 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.6409, allocations: 0.6628 MB / 0.7083 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002476/0.6411, allocations: 153.2 kB / 0.7084 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.725e-05/0.6412, allocations: 15.81 kB / 0.7084 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002759/0.6415, allocations: 13.89 kB / 0.7084 GB, free: 14.76 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.6417, allocations: 53.06 kB / 0.7085 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.48e-05/0.6417, allocations: 15.62 kB / 0.7085 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000384/0.6421, allocations: 252.1 kB / 0.7087 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.102e-06/0.6422, allocations: 0 / 0.7087 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001174/0.6434, allocations: 277.5 kB / 0.709 GB, free: 14.47 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,off.active,off.newActive,off.oldActive,toOn.condition,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,hold.newActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002134/0.6436, allocations: 134.6 kB / 0.7091 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001683/0.6453, allocations: 0.7127 MB / 0.7098 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.544e-06/0.6453, allocations: 5.062 kB / 0.7098 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004275/0.6457, allocations: 179.9 kB / 0.71 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006717/0.6464, allocations: 98 kB / 0.7101 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002324/0.6488, allocations: 1.164 MB / 0.7112 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006957/0.6495, allocations: 0.9233 MB / 0.7121 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.000608/0.6501, allocations: 114.2 kB / 0.7122 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.6503, allocations: 50.77 kB / 0.7123 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of SimCode: time 1.626e-06/0.6503, allocations: 0 / 0.7123 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of Templates: time 0.01625/0.6666, allocations: 5.335 MB / 0.7175 GB, free: 9.648 MB / 0.5417 GB