Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 4.099/4.099, allocations: 432.7 MB / 445.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.237e-05/3.264e-05, allocations: 5.062 kB / 0.5383 GB, free: 10.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1799/0.1799, allocations: 98.72 MB / 0.6347 GB, free: 1.91 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2183/0.3983, allocations: 143.2 MB / 0.7746 GB, free: 2.488 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/0.3987, allocations: 91.94 kB / 0.7747 GB, free: 2.398 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6001/0.9987, allocations: 27.18 MB / 0.8012 GB, free: 137 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.059e-06/0.9988, allocations: 0 / 0.8012 GB, free: 137 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.287e-05/0.9989, allocations: 11.41 kB / 0.8012 GB, free: 137 MB / 0.6511 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.001714/1.001, allocations: 0.8158 MB / 0.802 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/1.001, allocations: 7.531 kB / 0.802 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/1.002, allocations: 151 kB / 0.8022 GB, free: 136.2 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007891/1.003, allocations: 438.7 kB / 0.8026 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.06e-05/1.003, allocations: 47.61 kB / 0.8026 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/1.003, allocations: 49.28 kB / 0.8027 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/1.004, allocations: 0.6556 MB / 0.8033 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/1.004, allocations: 3.938 kB / 0.8033 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.353e-05/1.004, allocations: 26.88 kB / 0.8034 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.179e-05/1.004, allocations: 37.3 kB / 0.8034 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/1.006, allocations: 0.5242 MB / 0.8039 GB, free: 135.1 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004232/1.01, allocations: 2.841 MB / 0.8067 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/1.011, allocations: 0.5547 MB / 0.8072 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004746/1.012, allocations: 247.5 kB / 0.8075 GB, free: 132.1 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003805/1.012, allocations: 0.5622 MB / 0.808 GB, free: 131.5 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007052/1.013, allocations: 387.7 kB / 0.8084 GB, free: 131.2 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 4.205e-06/1.013, allocations: 0 / 0.8084 GB, free: 131.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001197/1.014, allocations: 0.5087 MB / 0.8089 GB, free: 130.9 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.705e-05/1.014, allocations: 85.55 kB / 0.809 GB, free: 130.8 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004185/1.015, allocations: 299.7 kB / 0.8092 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.608e-05/1.015, allocations: 45.69 kB / 0.8093 GB, free: 130.4 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002035/1.015, allocations: 280.4 kB / 0.8096 GB, free: 130.2 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/1.015, allocations: 157.8 kB / 0.8097 GB, free: 130 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.405e-05/1.015, allocations: 12 kB / 0.8097 GB, free: 130 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.284e-05/1.015, allocations: 350.8 kB / 0.81 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004558/1.016, allocations: 221.1 kB / 0.8103 GB, free: 129.4 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005276/1.016, allocations: 346.4 kB / 0.8106 GB, free: 129 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005004/1.017, allocations: 274.2 kB / 0.8109 GB, free: 128.8 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.764e-06/1.017, allocations: 3.953 kB / 0.8109 GB, free: 128.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001364/1.018, allocations: 0.6626 MB / 0.8115 GB, free: 128.1 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002439/1.018, allocations: 1.072 MB / 0.8125 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.765e-06/1.018, allocations: 0 / 0.8125 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/1.018, allocations: 8 kB / 0.8126 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006984/1.019, allocations: 115.8 kB / 0.8127 GB, free: 126.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/1.019, allocations: 8 kB / 0.8127 GB, free: 126.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006574/1.02, allocations: 67.64 kB / 0.8127 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-05/1.02, allocations: 23.98 kB / 0.8128 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/1.02, allocations: 4 kB / 0.8128 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0011/1.021, allocations: 0.5486 MB / 0.8133 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.817e-06/1.021, allocations: 4.312 kB / 0.8133 GB, free: 126.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/1.021, allocations: 16 kB / 0.8133 GB, free: 126.1 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/1.022, allocations: 115.7 kB / 0.8134 GB, free: 126 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/1.022, allocations: 11.98 kB / 0.8134 GB, free: 126 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000595/1.022, allocations: 63.55 kB / 0.8135 GB, free: 125.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.707e-05/1.022, allocations: 20 kB / 0.8135 GB, free: 125.9 MB / 0.6511 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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.0001972/1.023, allocations: 151 kB / 0.8137 GB, free: 125.8 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/1.023, allocations: 47.52 kB / 0.8137 GB, free: 125.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/1.024, allocations: 0.5556 MB / 0.8143 GB, free: 125.2 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.471e-06/1.024, allocations: 15.89 kB / 0.8143 GB, free: 125.1 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/1.024, allocations: 0 / 0.8143 GB, free: 125.1 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.641e-06/1.024, allocations: 3.984 kB / 0.8143 GB, free: 125.1 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009055/1.025, allocations: 0.6264 MB / 0.8149 GB, free: 124.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.482e-06/1.025, allocations: 0 / 0.8149 GB, free: 124.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006788/1.026, allocations: 95.86 kB / 0.815 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.161e-05/1.026, allocations: 4 kB / 0.815 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.168e-05/1.026, allocations: 12 kB / 0.815 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.331e-06/1.026, allocations: 0 / 0.815 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.121e-06/1.026, allocations: 7.953 kB / 0.815 GB, free: 124.3 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/1.027, allocations: 0.8696 MB / 0.8158 GB, free: 123.4 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003072/1.028, allocations: 176.4 kB / 0.816 GB, free: 123.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/1.028, allocations: 12 kB / 0.816 GB, free: 123.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004469/1.028, allocations: 47.89 kB / 0.8161 GB, free: 123.2 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/1.028, allocations: 48.36 kB / 0.8161 GB, free: 123.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.971e-05/1.029, allocations: 20 kB / 0.8161 GB, free: 123.1 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003157/1.029, allocations: 238.1 kB / 0.8164 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.29e-07/1.029, allocations: 0 / 0.8164 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001025/1.03, allocations: 283.1 kB / 0.8166 GB, free: 122.6 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002394/1.03, allocations: 147.1 kB / 0.8168 GB, free: 122.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001683/1.032, allocations: 0.9375 MB / 0.8177 GB, free: 121.5 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.407e-06/1.032, allocations: 4.25 kB / 0.8177 GB, free: 121.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005073/1.032, allocations: 266.4 kB / 0.8179 GB, free: 121.2 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000918/1.033, allocations: 149.5 kB / 0.8181 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/1.035, allocations: 0.815 MB / 0.8189 GB, free: 120.3 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/1.036, allocations: 0.9075 MB / 0.8198 GB, free: 119.3 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000856/1.037, allocations: 168.4 kB / 0.8199 GB, free: 119.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/1.037, allocations: 39.42 kB / 0.82 GB, free: 119.1 MB / 0.6511 GB Notification: Performance of SimCode: time 1.832e-06/1.037, allocations: 4 kB / 0.82 GB, free: 119.1 MB / 0.6511 GB Notification: Performance of Templates: time 0.01956/1.056, allocations: 8.248 MB / 0.828 GB, free: 111 MB / 0.6511 GB