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.009201/0.009201, allocations: 110.6 kB / 15.05 MB, free: 5.945 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.001163/0.001163, allocations: 180 kB / 15.94 MB, free: 5.898 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.982/1.982, allocations: 194.6 MB / 211.3 MB, free: 11.26 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.254/2.254, allocations: 236.2 MB / 492.6 MB, free: 11.4 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004703/0.0004706, allocations: 16 kB / 0.587 GB, free: 2.172 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.548/0.5485, allocations: 98.71 MB / 0.6833 GB, free: 16.58 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2065/0.755, allocations: 143.3 MB / 0.8233 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000327/0.7554, allocations: 99.92 kB / 0.8234 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1063/0.8617, allocations: 27.3 MB / 0.85 GB, free: 3.184 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.562e-06/0.8617, allocations: 4 kB / 0.8501 GB, free: 3.18 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 4.376e-05/0.8618, allocations: 15.94 kB / 0.8501 GB, free: 3.164 MB / 0.6667 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.002095/0.8639, allocations: 0.8843 MB / 0.8509 GB, free: 2.223 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.8639, allocations: 8.031 kB / 0.8509 GB, free: 2.215 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001247/0.8652, allocations: 151 kB / 0.8511 GB, free: 2.066 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009937/0.8662, allocations: 440.7 kB / 0.8515 GB, free: 1.594 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.554e-05/0.8663, allocations: 40.94 kB / 0.8515 GB, free: 1.555 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.8665, allocations: 51.98 kB / 0.8516 GB, free: 1.504 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.8681, allocations: 0.6848 MB / 0.8523 GB, free: 0.7891 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.8682, allocations: 0 / 0.8523 GB, free: 0.7891 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.527e-05/0.8683, allocations: 19.98 kB / 0.8523 GB, free: 0.7695 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.514e-05/0.8684, allocations: 48.97 kB / 0.8523 GB, free: 0.7188 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.8699, allocations: 0.5777 MB / 0.8529 GB, free: 148 kB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005003/0.8749, allocations: 2.841 MB / 0.8557 GB, free: 13.07 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001574/0.8766, allocations: 0.5916 MB / 0.8562 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005987/0.8772, allocations: 0.5622 MB / 0.8568 GB, free: 11.77 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/0.8782, allocations: 415.6 kB / 0.8572 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 4.232e-06/0.8783, allocations: 0 / 0.8572 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.002162/0.8804, allocations: 0.7641 MB / 0.8579 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.114e-05/0.8806, allocations: 97.47 kB / 0.858 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005219/0.8811, allocations: 300.9 kB / 0.8583 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.8812, allocations: 45.7 kB / 0.8584 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003009/0.8815, allocations: 288.6 kB / 0.8586 GB, free: 9.828 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.8818, allocations: 153.8 kB / 0.8588 GB, free: 9.676 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.8818, allocations: 12 kB / 0.8588 GB, free: 9.664 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002034/0.882, allocations: 354.8 kB / 0.8591 GB, free: 9.309 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006777/0.8827, allocations: 241 kB / 0.8594 GB, free: 9.074 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007894/0.8835, allocations: 366.8 kB / 0.8597 GB, free: 8.668 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007208/0.8843, allocations: 298.3 kB / 0.86 GB, free: 8.371 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.646e-06/0.8843, allocations: 0 / 0.86 GB, free: 8.371 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00181/0.8861, allocations: 0.7132 MB / 0.8607 GB, free: 7.645 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005991/0.8867, allocations: 1.08 MB / 0.8617 GB, free: 6.477 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.8868, allocations: 0 / 0.8617 GB, free: 6.477 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.553e-05/0.8868, allocations: 8 kB / 0.8618 GB, free: 6.469 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007605/0.8876, allocations: 111.8 kB / 0.8619 GB, free: 6.359 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.822e-05/0.8876, allocations: 11.94 kB / 0.8619 GB, free: 6.348 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006721/0.8883, allocations: 75.56 kB / 0.8619 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.3e-05/0.8884, allocations: 23.98 kB / 0.862 GB, free: 6.25 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.8884, allocations: 4 kB / 0.862 GB, free: 6.246 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001605/0.89, allocations: 0.5874 MB / 0.8625 GB, free: 5.652 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.8901, allocations: 4.062 kB / 0.8625 GB, free: 5.648 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.8901, allocations: 8 kB / 0.8626 GB, free: 5.641 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006088/0.8907, allocations: 111.8 kB / 0.8627 GB, free: 5.531 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.514e-05/0.8907, allocations: 8 kB / 0.8627 GB, free: 5.523 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006131/0.8914, allocations: 67.83 kB / 0.8627 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.208e-05/0.8915, allocations: 23.94 kB / 0.8628 GB, free: 5.434 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.0005466/0.892, allocations: 300.9 kB / 0.863 GB, free: 5.133 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.8921, allocations: 47.44 kB / 0.8631 GB, free: 5.086 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/0.8938, allocations: 0.6143 MB / 0.8637 GB, free: 4.465 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.8938, allocations: 7.953 kB / 0.8637 GB, free: 4.457 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.516e-06/0.8938, allocations: 0 / 0.8637 GB, free: 4.457 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.8939, allocations: 8.016 kB / 0.8637 GB, free: 4.449 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.895, allocations: 0.6225 MB / 0.8643 GB, free: 3.777 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.237e-06/0.895, allocations: 0 / 0.8643 GB, free: 3.777 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007198/0.8957, allocations: 99.86 kB / 0.8644 GB, free: 3.68 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.099e-06/0.8958, allocations: 0 / 0.8644 GB, free: 3.68 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.776e-05/0.8958, allocations: 12 kB / 0.8644 GB, free: 3.668 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.742e-06/0.8958, allocations: 7.984 kB / 0.8644 GB, free: 3.66 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.39e-06/0.8959, allocations: 3.953 kB / 0.8644 GB, free: 3.656 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002283/0.8981, allocations: 0.932 MB / 0.8653 GB, free: 2.695 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003893/0.8986, allocations: 180.4 kB / 0.8655 GB, free: 2.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.8987, allocations: 12 kB / 0.8655 GB, free: 2.488 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004687/0.8992, allocations: 47.91 kB / 0.8656 GB, free: 2.441 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.8994, allocations: 48.36 kB / 0.8656 GB, free: 2.395 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.559e-05/0.8995, allocations: 19.98 kB / 0.8656 GB, free: 2.375 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.000408/0.8999, allocations: 243.2 kB / 0.8659 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of sort global known variables: time 7.22e-07/0.8999, allocations: 0 / 0.8659 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001101/0.901, allocations: 275.2 kB / 0.8661 GB, free: 1.871 MB / 0.6823 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.0003025/0.9013, allocations: 155.1 kB / 0.8663 GB, free: 1.711 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002432/0.9038, allocations: 1.003 MB / 0.8673 GB, free: 0.6797 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.099e-06/0.9038, allocations: 0 / 0.8673 GB, free: 0.6797 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0007468/0.9046, allocations: 286.4 kB / 0.8675 GB, free: 412 kB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009913/0.9056, allocations: 161.3 kB / 0.8677 GB, free: 252 kB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002842/0.9085, allocations: 1.26 MB / 0.8689 GB, free: 14.95 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006807/0.9092, allocations: 0.9031 MB / 0.8698 GB, free: 14.02 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008429/0.9101, allocations: 152.5 kB / 0.8699 GB, free: 13.88 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002234/0.9103, allocations: 47.42 kB / 0.87 GB, free: 13.83 MB / 0.698 GB Notification: Performance of SimCode: time 1.96e-06/0.9103, allocations: 0 / 0.87 GB, free: 13.83 MB / 0.698 GB Notification: Performance of Templates: time 0.02139/0.9317, allocations: 7.657 MB / 0.8775 GB, free: 6.27 MB / 0.698 GB