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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.085/4.085, allocations: 433.4 MB / 440.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.937e-05/1.949e-05, allocations: 4 kB / 0.5325 GB, free: 1.844 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5/0.5, allocations: 98.7 MB / 0.6289 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2658/0.7659, allocations: 142.6 MB / 0.7681 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.7662, allocations: 91.94 kB / 0.7682 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.1051/0.8714, allocations: 27.05 MB / 0.7946 GB, free: 5.535 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.903e-06/0.8714, allocations: 0 / 0.7946 GB, free: 5.535 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 4.256e-05/0.8715, allocations: 12 kB / 0.7947 GB, free: 5.523 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.001978/0.8735, allocations: 0.8107 MB / 0.7954 GB, free: 4.66 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.8735, allocations: 16.02 kB / 0.7955 GB, free: 4.645 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001288/0.8748, allocations: 155 kB / 0.7956 GB, free: 4.492 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.8759, allocations: 439.2 kB / 0.796 GB, free: 4.023 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.469e-05/0.8759, allocations: 16 kB / 0.796 GB, free: 4.008 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.8761, allocations: 31.94 kB / 0.7961 GB, free: 3.977 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001177/0.8773, allocations: 454.5 kB / 0.7965 GB, free: 3.531 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.8786, allocations: 0.5871 MB / 0.7971 GB, free: 2.914 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.8787, allocations: 4 kB / 0.7971 GB, free: 2.91 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-05/0.8788, allocations: 11.97 kB / 0.7971 GB, free: 2.898 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.511e-05/0.8789, allocations: 37.3 kB / 0.7971 GB, free: 2.859 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4426/1.321, allocations: 2.73 MB / 0.7998 GB, free: 154.3 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/1.323, allocations: 0.5234 MB / 0.8003 GB, free: 154.2 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005356/1.324, allocations: 230.8 kB / 0.8005 GB, free: 154.2 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004159/1.324, allocations: 0.5652 MB / 0.8011 GB, free: 153.5 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008249/1.325, allocations: 376.7 kB / 0.8014 GB, free: 153.5 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=49): time 5.091e-06/1.325, allocations: 0 / 0.8014 GB, free: 153.5 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49): time 0.001415/1.326, allocations: 0.4889 MB / 0.8019 GB, free: 153.4 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/1.326, allocations: 84.31 kB / 0.802 GB, free: 153.3 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004957/1.327, allocations: 279.3 kB / 0.8023 GB, free: 153.2 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 8.32e-05/1.327, allocations: 36.28 kB / 0.8023 GB, free: 153.2 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002364/1.327, allocations: 280.2 kB / 0.8026 GB, free: 153.1 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/1.327, allocations: 148.3 kB / 0.8027 GB, free: 153 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-05/1.327, allocations: 2.125 kB / 0.8027 GB, free: 153 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001178/1.328, allocations: 356.7 kB / 0.803 GB, free: 152.7 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005293/1.328, allocations: 212.9 kB / 0.8033 GB, free: 152.7 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/1.329, allocations: 323 kB / 0.8036 GB, free: 152.6 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006249/1.329, allocations: 248.2 kB / 0.8038 GB, free: 152.6 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/1.329, allocations: 1.062 kB / 0.8038 GB, free: 152.6 MB / 0.6667 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001485/1.331, allocations: 0.5946 MB / 0.8044 GB, free: 152.5 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002522/1.331, allocations: 1.074 MB / 0.8054 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/1.331, allocations: 3.594 kB / 0.8054 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.842e-05/1.331, allocations: 5.406 kB / 0.8054 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007299/1.332, allocations: 120.5 kB / 0.8056 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/1.332, allocations: 6.25 kB / 0.8056 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006787/1.333, allocations: 63.47 kB / 0.8056 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.927e-05/1.333, allocations: 23.56 kB / 0.8056 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/1.333, allocations: 3.719 kB / 0.8056 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001171/1.334, allocations: 477 kB / 0.8061 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.682e-06/1.334, allocations: 5.922 kB / 0.8061 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/1.334, allocations: 8.812 kB / 0.8061 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005829/1.335, allocations: 114.9 kB / 0.8062 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/1.335, allocations: 7.984 kB / 0.8062 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006125/1.335, allocations: 48.67 kB / 0.8063 GB, free: 151.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.5e-05/1.335, allocations: 22.86 kB / 0.8063 GB, free: 151.4 MB / 0.6667 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.0002156/1.336, allocations: 127.9 kB / 0.8064 GB, free: 151.3 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/1.336, allocations: 48.27 kB / 0.8065 GB, free: 151.2 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/1.337, allocations: 0.5278 MB / 0.807 GB, free: 151.2 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/1.337, allocations: 8.516 kB / 0.807 GB, free: 151.2 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/1.337, allocations: 5.391 kB / 0.807 GB, free: 151.2 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/1.337, allocations: 5.203 kB / 0.807 GB, free: 151.2 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009277/1.338, allocations: 0.5378 MB / 0.8075 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.714e-06/1.338, allocations: 0 / 0.8075 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007808/1.339, allocations: 96.19 kB / 0.8076 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.118e-05/1.339, allocations: 2.594 kB / 0.8076 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.065e-05/1.339, allocations: 6.5 kB / 0.8076 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.427e-06/1.339, allocations: 6 kB / 0.8076 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/1.339, allocations: 0 / 0.8076 GB, free: 151 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/1.341, allocations: 0.8347 MB / 0.8084 GB, free: 150.9 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003174/1.341, allocations: 184.4 kB / 0.8086 GB, free: 150.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/1.341, allocations: 5.812 kB / 0.8086 GB, free: 150.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005319/1.342, allocations: 35.91 kB / 0.8087 GB, free: 150.8 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/1.342, allocations: 53.78 kB / 0.8087 GB, free: 150.8 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.434e-05/1.342, allocations: 14.52 kB / 0.8087 GB, free: 150.8 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0003108/1.342, allocations: 220.3 kB / 0.8089 GB, free: 150.7 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.553e-06/1.342, allocations: 1.312 kB / 0.8089 GB, free: 150.7 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001071/1.343, allocations: 254.5 kB / 0.8092 GB, free: 150.7 MB / 0.6667 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.0002479/1.344, allocations: 138.3 kB / 0.8093 GB, free: 150.6 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001739/1.346, allocations: 0.8888 MB / 0.8102 GB, free: 150.5 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.414e-06/1.346, allocations: 8.469 kB / 0.8102 GB, free: 150.5 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005324/1.346, allocations: 253.5 kB / 0.8104 GB, free: 150.5 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009745/1.347, allocations: 146.4 kB / 0.8106 GB, free: 150.5 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/1.349, allocations: 0.7813 MB / 0.8113 GB, free: 150.2 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/1.35, allocations: 0.9094 MB / 0.8122 GB, free: 149.5 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0009739/1.351, allocations: 161.8 kB / 0.8124 GB, free: 149.5 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/1.351, allocations: 41.81 kB / 0.8124 GB, free: 149.5 MB / 0.6667 GB Notification: Performance of SimCode: time 1.73e-06/1.351, allocations: 1.281 kB / 0.8124 GB, free: 149.5 MB / 0.6667 GB Notification: Performance of Templates: time 0.01965/1.371, allocations: 7.885 MB / 0.8201 GB, free: 149.2 MB / 0.6667 GB