Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.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.008828/0.008828, allocations: 111.1 kB / 15.05 MB, free: 6.031 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: 188.5 kB / 15.95 MB, free: 5.965 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 2.054/2.054, allocations: 194.6 MB / 211.3 MB, free: 11.3 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.13/2.13, allocations: 236.2 MB / 492.6 MB, free: 11.33 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007832/0.0007835, allocations: 12 kB / 0.5869 GB, free: 2.164 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.555/0.5558, allocations: 98.71 MB / 0.6833 GB, free: 16.77 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2069/0.7628, allocations: 144.8 MB / 0.8247 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/0.7632, allocations: 91.94 kB / 0.8248 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1094/0.8726, allocations: 29.23 MB / 0.8534 GB, free: 15.88 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.398e-06/0.8727, allocations: 0 / 0.8534 GB, free: 15.88 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.112e-05/0.8727, allocations: 16 kB / 0.8534 GB, free: 15.86 MB / 0.6823 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.001949/0.8747, allocations: 0.8804 MB / 0.8542 GB, free: 14.93 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.8747, allocations: 16.03 kB / 0.8543 GB, free: 14.91 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001138/0.8759, allocations: 147 kB / 0.8544 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008298/0.8767, allocations: 436.8 kB / 0.8548 GB, free: 14.3 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.39e-05/0.8768, allocations: 37 kB / 0.8548 GB, free: 14.26 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.8769, allocations: 59.98 kB / 0.8549 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.8786, allocations: 0.6809 MB / 0.8556 GB, free: 13.49 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.8786, allocations: 0 / 0.8556 GB, free: 13.49 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.68e-05/0.8787, allocations: 23.98 kB / 0.8556 GB, free: 13.47 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-05/0.8788, allocations: 44.91 kB / 0.8556 GB, free: 13.42 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.8803, allocations: 0.5777 MB / 0.8562 GB, free: 12.85 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004648/0.885, allocations: 2.841 MB / 0.859 GB, free: 9.777 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.8866, allocations: 0.5918 MB / 0.8595 GB, free: 9.164 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005719/0.8872, allocations: 0.5661 MB / 0.8601 GB, free: 8.469 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009432/0.8881, allocations: 415.6 kB / 0.8605 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.696e-06/0.8882, allocations: 0 / 0.8605 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.002097/0.8903, allocations: 0.7679 MB / 0.8612 GB, free: 7.27 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.8904, allocations: 81.55 kB / 0.8613 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005063/0.8909, allocations: 308.8 kB / 0.8616 GB, free: 6.867 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.627e-05/0.891, allocations: 41.7 kB / 0.8617 GB, free: 6.82 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002782/0.8913, allocations: 280.4 kB / 0.8619 GB, free: 6.543 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.8915, allocations: 162 kB / 0.8621 GB, free: 6.383 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.735e-05/0.8915, allocations: 8 kB / 0.8621 GB, free: 6.375 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001993/0.8917, allocations: 358.8 kB / 0.8624 GB, free: 6.016 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006626/0.8924, allocations: 245 kB / 0.8627 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007713/0.8932, allocations: 370.8 kB / 0.863 GB, free: 5.367 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007139/0.8939, allocations: 294.3 kB / 0.8633 GB, free: 5.074 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.394e-06/0.894, allocations: 3.938 kB / 0.8633 GB, free: 5.07 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001798/0.8958, allocations: 0.7091 MB / 0.864 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000582/0.8964, allocations: 1.081 MB / 0.8651 GB, free: 3.18 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.893e-06/0.8964, allocations: 0 / 0.8651 GB, free: 3.18 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/0.8964, allocations: 8 kB / 0.8651 GB, free: 3.172 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007104/0.8971, allocations: 120 kB / 0.8652 GB, free: 3.055 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.8972, allocations: 8 kB / 0.8652 GB, free: 3.047 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006279/0.8978, allocations: 79.56 kB / 0.8653 GB, free: 2.969 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.684e-05/0.8979, allocations: 20 kB / 0.8653 GB, free: 2.949 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.8979, allocations: 4 kB / 0.8653 GB, free: 2.945 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001559/0.8995, allocations: 0.591 MB / 0.8659 GB, free: 2.348 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.8995, allocations: 4 kB / 0.8659 GB, free: 2.344 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.8995, allocations: 8 kB / 0.8659 GB, free: 2.336 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005729/0.9001, allocations: 107.8 kB / 0.866 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.9002, allocations: 4 kB / 0.866 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005571/0.9007, allocations: 63.64 kB / 0.866 GB, free: 2.164 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-05/0.9008, allocations: 28.14 kB / 0.8661 GB, free: 2.137 MB / 0.6823 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 (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.0005251/0.9013, allocations: 303.2 kB / 0.8664 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.9015, allocations: 43.44 kB / 0.8664 GB, free: 1.789 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001595/0.9031, allocations: 0.6066 MB / 0.867 GB, free: 1.172 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/0.9031, allocations: 11.95 kB / 0.867 GB, free: 1.16 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.873e-06/0.9031, allocations: 0 / 0.867 GB, free: 1.16 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.9031, allocations: 3.984 kB / 0.867 GB, free: 1.156 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.9042, allocations: 0.6224 MB / 0.8676 GB, free: 496 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.962e-06/0.9042, allocations: 3.938 kB / 0.8676 GB, free: 492 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006734/0.9049, allocations: 99.84 kB / 0.8677 GB, free: 392 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.5e-06/0.9049, allocations: 0 / 0.8677 GB, free: 392 kB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.257e-05/0.905, allocations: 16 kB / 0.8677 GB, free: 376 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.509e-06/0.905, allocations: 4 kB / 0.8677 GB, free: 372 kB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.424e-06/0.905, allocations: 3.953 kB / 0.8677 GB, free: 368 kB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/0.9072, allocations: 0.9285 MB / 0.8686 GB, free: 15.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003311/0.9076, allocations: 176.4 kB / 0.8688 GB, free: 15.21 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.9077, allocations: 19.98 kB / 0.8688 GB, free: 15.19 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004426/0.9082, allocations: 43.73 kB / 0.8689 GB, free: 15.15 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.9084, allocations: 60.3 kB / 0.8689 GB, free: 15.09 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.804e-05/0.9084, allocations: 16 kB / 0.8689 GB, free: 15.07 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003878/0.9088, allocations: 239.2 kB / 0.8692 GB, free: 14.84 MB / 0.698 GB Notification: Performance of sort global known variables: time 7.75e-07/0.9088, allocations: 0 / 0.8692 GB, free: 14.84 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00111/0.91, allocations: 287.1 kB / 0.8694 GB, free: 14.56 MB / 0.698 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) * Number of clocked states: 0 () * 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.0003038/0.9103, allocations: 143.8 kB / 0.8696 GB, free: 14.41 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002538/0.9128, allocations: 1.003 MB / 0.8706 GB, free: 13.38 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.791e-06/0.9129, allocations: 4 kB / 0.8706 GB, free: 13.38 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007731/0.9137, allocations: 298.2 kB / 0.8708 GB, free: 13.09 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009898/0.9147, allocations: 152.7 kB / 0.871 GB, free: 12.94 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002865/0.9176, allocations: 1.264 MB / 0.8722 GB, free: 11.64 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006738/0.9183, allocations: 0.9069 MB / 0.8731 GB, free: 10.71 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008569/0.9192, allocations: 140.3 kB / 0.8732 GB, free: 10.57 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.9194, allocations: 39.44 kB / 0.8733 GB, free: 10.54 MB / 0.698 GB Notification: Performance of SimCode: time 1.929e-06/0.9194, allocations: 4 kB / 0.8733 GB, free: 10.53 MB / 0.698 GB Notification: Performance of Templates: time 0.02121/0.9406, allocations: 7.666 MB / 0.8808 GB, free: 2.973 MB / 0.698 GB