Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.312/2.312, allocations: 252.6 MB / 265.2 MB, free: 5.707 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001458/0.001458, allocations: 179.9 kB / 324.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.227/2.227, allocations: 205.4 MB / 0.5753 GB, free: 10.52 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001131/0.00113, allocations: 102.3 kB / 0.6797 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 5.563e-05/5.58e-05, allocations: 7.938 kB / 0.7911 GB, free: 96.63 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2136/0.2137, allocations: 106.2 MB / 0.8949 GB, free: 6.293 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9961/1.21, allocations: 150.3 MB / 1.042 GB, free: 1.691 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003708/1.21, allocations: 92.31 kB / 1.042 GB, free: 1.641 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1159/1.326, allocations: 27.21 MB / 1.068 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.933e-06/1.326, allocations: 0 / 1.068 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.544e-05/1.326, allocations: 12 kB / 1.068 GB, free: 10.87 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.002376/1.329, allocations: 0.8156 MB / 1.069 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/1.329, allocations: 8.031 kB / 1.069 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001456/1.33, allocations: 155 kB / 1.069 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/1.331, allocations: 441.1 kB / 1.07 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.828e-05/1.331, allocations: 39.92 kB / 1.07 GB, free: 9.449 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/1.331, allocations: 50.81 kB / 1.07 GB, free: 9.414 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/1.333, allocations: 0.6549 MB / 1.07 GB, free: 8.922 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/1.333, allocations: 3.938 kB / 1.07 GB, free: 8.918 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/1.333, allocations: 23.81 kB / 1.07 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-05/1.333, allocations: 40.16 kB / 1.071 GB, free: 8.875 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001458/1.335, allocations: 0.5231 MB / 1.071 GB, free: 8.531 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00621/1.341, allocations: 2.837 MB / 1.074 GB, free: 5.906 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002511/1.344, allocations: 0.5505 MB / 1.074 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/1.345, allocations: 243.5 kB / 1.075 GB, free: 5.359 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001035/1.346, allocations: 0.5584 MB / 1.075 GB, free: 4.672 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001902/1.348, allocations: 390.7 kB / 1.075 GB, free: 4.367 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 6.883e-06/1.348, allocations: 0 / 1.075 GB, free: 4.367 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.002454/1.35, allocations: 0.5187 MB / 1.076 GB, free: 3.988 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/1.351, allocations: 85.53 kB / 1.076 GB, free: 3.887 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/1.352, allocations: 291.1 kB / 1.076 GB, free: 3.648 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002386/1.352, allocations: 46.95 kB / 1.076 GB, free: 3.609 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004394/1.353, allocations: 281.3 kB / 1.077 GB, free: 3.395 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003137/1.353, allocations: 155.8 kB / 1.077 GB, free: 3.262 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.137e-05/1.353, allocations: 7.375 kB / 1.077 GB, free: 3.262 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000279/1.353, allocations: 360.7 kB / 1.077 GB, free: 2.922 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009185/1.354, allocations: 220.3 kB / 1.077 GB, free: 2.793 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007446/1.355, allocations: 342.5 kB / 1.078 GB, free: 2.516 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006928/1.356, allocations: 280.3 kB / 1.078 GB, free: 2.32 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/1.356, allocations: 0 / 1.078 GB, free: 2.32 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001822/1.358, allocations: 0.6518 MB / 1.079 GB, free: 1.84 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006215/1.358, allocations: 1.076 MB / 1.08 GB, free: 0.6953 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/1.358, allocations: 4 kB / 1.08 GB, free: 0.6914 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.241e-05/1.358, allocations: 4 kB / 1.08 GB, free: 0.6875 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/1.359, allocations: 119.1 kB / 1.08 GB, free: 0.5742 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.764e-05/1.359, allocations: 4 kB / 1.08 GB, free: 0.5703 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009296/1.36, allocations: 73.88 kB / 1.08 GB, free: 0.5078 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.423e-05/1.361, allocations: 23.31 kB / 1.08 GB, free: 500 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/1.361, allocations: 4 kB / 1.08 GB, free: 496 kB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001542/1.362, allocations: 0.5433 MB / 1.08 GB, free: 108 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/1.362, allocations: 4 kB / 1.08 GB, free: 104 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/1.362, allocations: 7.953 kB / 1.08 GB, free: 96 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009918/1.363, allocations: 111.3 kB / 1.081 GB, free: 15.98 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/1.363, allocations: 8 kB / 1.081 GB, free: 15.98 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008889/1.364, allocations: 72.69 kB / 1.081 GB, free: 15.92 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.565e-05/1.364, allocations: 20.19 kB / 1.081 GB, free: 15.9 MB / 0.698 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.0003215/1.365, allocations: 157.3 kB / 1.081 GB, free: 15.77 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/1.365, allocations: 39.53 kB / 1.081 GB, free: 15.73 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/1.366, allocations: 0.5705 MB / 1.081 GB, free: 15.33 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/1.367, allocations: 7.953 kB / 1.081 GB, free: 15.32 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/1.367, allocations: 4 kB / 1.081 GB, free: 15.32 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/1.367, allocations: 3.984 kB / 1.081 GB, free: 15.31 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/1.368, allocations: 0.6261 MB / 1.082 GB, free: 14.75 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/1.368, allocations: 0 / 1.082 GB, free: 14.75 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/1.369, allocations: 95.86 kB / 1.082 GB, free: 14.65 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/1.369, allocations: 0 / 1.082 GB, free: 14.65 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/1.369, allocations: 12 kB / 1.082 GB, free: 14.64 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.061e-05/1.369, allocations: 8 kB / 1.082 GB, free: 14.63 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.369, allocations: 3.953 kB / 1.082 GB, free: 14.63 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/1.372, allocations: 0.8657 MB / 1.083 GB, free: 13.73 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004959/1.372, allocations: 180.3 kB / 1.083 GB, free: 13.54 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/1.372, allocations: 15.98 kB / 1.083 GB, free: 13.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007226/1.373, allocations: 47.91 kB / 1.083 GB, free: 13.48 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002782/1.374, allocations: 48.36 kB / 1.083 GB, free: 13.43 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.596e-05/1.374, allocations: 20 kB / 1.083 GB, free: 13.41 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004496/1.374, allocations: 234.2 kB / 1.083 GB, free: 13.19 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.41e-07/1.374, allocations: 0 / 1.083 GB, free: 13.19 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001214/1.375, allocations: 279.1 kB / 1.084 GB, free: 12.91 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) * 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.0003526/1.376, allocations: 146.3 kB / 1.084 GB, free: 12.77 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002477/1.378, allocations: 0.9362 MB / 1.085 GB, free: 11.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/1.378, allocations: 0 / 1.085 GB, free: 11.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007632/1.379, allocations: 267.4 kB / 1.085 GB, free: 11.54 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/1.38, allocations: 156 kB / 1.085 GB, free: 11.39 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/1.383, allocations: 0.8039 MB / 1.086 GB, free: 10.56 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007/1.384, allocations: 0.9113 MB / 1.087 GB, free: 9.625 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001162/1.385, allocations: 160.4 kB / 1.087 GB, free: 9.465 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/1.385, allocations: 35.44 kB / 1.087 GB, free: 9.43 MB / 0.698 GB Notification: Performance of SimCode: time 1.002e-06/1.385, allocations: 0 / 1.087 GB, free: 9.43 MB / 0.698 GB Notification: Performance of Templates: time 0.02722/1.412, allocations: 8.248 MB / 1.095 GB, free: 1.246 MB / 0.698 GB