Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.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.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.00427/0.004269, allocations: 237.9 kB / 15.8 MB, free: 6.316 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.001139/0.001138, allocations: 179.9 kB / 16.69 MB, free: 5.473 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.403/4.403, 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 4.037/4.037, allocations: 472.3 MB / 0.9023 GB, free: 18.8 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005041/0.0005043, allocations: 16 kB / 1.008 GB, free: 13.42 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2205, allocations: 98.72 MB / 1.105 GB, free: 10.75 MB / 0.573 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.007258/0.2278, allocations: 3.863 MB / 1.108 GB, free: 6.863 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.005246/0.2331, allocations: 2.066 MB / 1.11 GB, free: 4.793 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004816/0.2337, allocations: 11.94 kB / 1.11 GB, free: 4.781 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.2339, allocations: 55.5 kB / 1.11 GB, free: 4.727 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.001061/0.235, allocations: 260 kB / 1.111 GB, free: 4.477 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.2363, allocations: 306.1 kB / 1.111 GB, free: 4.18 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.001485/0.2378, allocations: 0.8216 MB / 1.112 GB, free: 3.355 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001853/0.2397, allocations: 0.7114 MB / 1.112 GB, free: 2.609 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005455/0.2403, allocations: 231 kB / 1.113 GB, free: 2.383 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006737/0.241, allocations: 307.2 kB / 1.113 GB, free: 2.082 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 9.655e-05/0.2411, allocations: 21.22 kB / 1.113 GB, free: 2.062 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006241/0.2417, allocations: 191.6 kB / 1.113 GB, free: 1.875 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002129/0.242, allocations: 139.5 kB / 1.113 GB, free: 1.738 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002002/0.2422, allocations: 134.6 kB / 1.113 GB, free: 1.602 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.2434, allocations: 0.7249 MB / 1.114 GB, free: 0.875 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.2434, allocations: 4 kB / 1.114 GB, free: 0.8711 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.064e-06/0.2434, allocations: 1.969 kB / 1.114 GB, free: 0.8711 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.093e-05/0.2434, allocations: 0 / 1.114 GB, free: 0.8711 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002549/0.246, allocations: 0.8398 MB / 1.115 GB, free: 15.98 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.2461, allocations: 8.75 kB / 1.115 GB, free: 15.97 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/0.2473, allocations: 139.1 kB / 1.115 GB, free: 15.84 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.2486, allocations: 425.8 kB / 1.116 GB, free: 15.38 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.527e-05/0.2487, allocations: 41 kB / 1.116 GB, free: 15.34 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002008/0.2489, allocations: 51.98 kB / 1.116 GB, free: 15.29 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002539/0.2515, allocations: 0.6926 MB / 1.116 GB, free: 14.57 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.595e-05/0.2516, allocations: 7.984 kB / 1.116 GB, free: 14.56 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000133/0.2517, allocations: 23.98 kB / 1.116 GB, free: 14.54 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/0.2519, allocations: 48.97 kB / 1.116 GB, free: 14.49 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002666/0.2546, allocations: 0.5659 MB / 1.117 GB, free: 13.92 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007403/0.262, allocations: 2.806 MB / 1.12 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002445/0.2645, allocations: 0.567 MB / 1.12 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.2656, allocations: 257.6 kB / 1.12 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008562/0.2665, allocations: 0.5662 MB / 1.121 GB, free: 9.355 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001525/0.268, allocations: 412.1 kB / 1.121 GB, free: 8.934 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=46): time 4.479e-06/0.268, allocations: 4 kB / 1.121 GB, free: 8.93 MB / 0.5886 GB Notification: Performance of matching and sorting (n=46): time 0.003503/0.2716, allocations: 0.7434 MB / 1.122 GB, free: 8.18 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.569e-05/0.2717, allocations: 85.11 kB / 1.122 GB, free: 8.078 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007972/0.2725, allocations: 345.5 kB / 1.123 GB, free: 7.734 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.00015/0.2727, allocations: 49.69 kB / 1.123 GB, free: 7.68 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003933/0.2731, allocations: 276.5 kB / 1.123 GB, free: 7.402 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002836/0.2734, allocations: 149.8 kB / 1.123 GB, free: 7.254 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.708e-05/0.2735, allocations: 8 kB / 1.123 GB, free: 7.246 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002432/0.2737, allocations: 358.8 kB / 1.123 GB, free: 6.887 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/0.2749, allocations: 241 kB / 1.124 GB, free: 6.652 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001281/0.2762, allocations: 362.6 kB / 1.124 GB, free: 6.254 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.2774, allocations: 286.2 kB / 1.124 GB, free: 5.969 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.2774, allocations: 4 kB / 1.124 GB, free: 5.965 MB / 0.5886 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002847/0.2803, allocations: 0.6795 MB / 1.125 GB, free: 5.273 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002152/0.2805, allocations: 200.9 kB / 1.125 GB, free: 5.031 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.2805, allocations: 4 kB / 1.125 GB, free: 5.027 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.869e-05/0.2806, allocations: 8 kB / 1.125 GB, free: 5.02 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/0.2819, allocations: 115.8 kB / 1.125 GB, free: 4.906 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.409e-05/0.282, allocations: 8 kB / 1.125 GB, free: 4.898 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.2831, allocations: 75.47 kB / 1.125 GB, free: 4.824 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.2832, allocations: 24 kB / 1.125 GB, free: 4.801 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2833, allocations: 7.438 kB / 1.125 GB, free: 4.797 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0025/0.2858, allocations: 0.5758 MB / 1.126 GB, free: 4.215 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.2858, allocations: 11.92 kB / 1.126 GB, free: 4.203 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2859, allocations: 8.25 kB / 1.126 GB, free: 4.195 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.287, allocations: 107.8 kB / 1.126 GB, free: 4.09 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.253e-05/0.2871, allocations: 11.94 kB / 1.126 GB, free: 4.078 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.2881, allocations: 63.55 kB / 1.126 GB, free: 4.016 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.2882, allocations: 23.95 kB / 1.126 GB, free: 3.992 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * 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.0007411/0.289, allocations: 306.8 kB / 1.126 GB, free: 3.688 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.2892, allocations: 43.53 kB / 1.126 GB, free: 3.645 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002616/0.2918, allocations: 0.5984 MB / 1.127 GB, free: 3.043 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.2919, allocations: 4 kB / 1.127 GB, free: 3.039 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.2919, allocations: 0 / 1.127 GB, free: 3.039 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005253/0.2924, allocations: 184.4 kB / 1.127 GB, free: 2.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.2926, allocations: 19.94 kB / 1.127 GB, free: 2.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009604/0.2936, allocations: 43.94 kB / 1.127 GB, free: 2.777 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.2939, allocations: 52.36 kB / 1.127 GB, free: 2.727 MB / 0.5886 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003275/0.2972, allocations: 0.7644 MB / 1.128 GB, free: 1.957 MB / 0.5886 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003824/0.301, allocations: 1.145 MB / 1.129 GB, free: 0.793 MB / 0.5886 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001109/0.3022, allocations: 271.4 kB / 1.129 GB, free: 0.5312 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0005827/0.3028, allocations: 247.2 kB / 1.13 GB, free: 296 kB / 0.5886 GB Notification: Performance of Backend: time 8.71e-07/0.3028, allocations: 4 kB / 1.13 GB, free: 292 kB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004248/0.3071, allocations: 0.9016 MB / 1.131 GB, free: 15.36 MB / 0.6042 GB Notification: Performance of SimCode: time 0.004414/0.3115, allocations: 1.633 MB / 1.132 GB, free: 13.68 MB / 0.6042 GB Notification: Performance of Templates: time 0.03549/0.3471, allocations: 10.86 MB / 1.143 GB, free: 2.906 MB / 0.6042 GB