Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.312/1.312, allocations: 252 MB / 267.9 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009199/0.0009198, allocations: 176.6 kB / 327.6 MB, free: 2.156 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.4 MB / 0.5785 GB, free: 20.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008984/0.0008984, allocations: 86.5 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004064/0.0004065, allocations: 15.88 kB / 0.7974 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1989, allocations: 106.3 MB / 0.9012 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1787/0.3776, allocations: 150.5 MB / 1.048 GB, free: 9.031 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/0.378, allocations: 95.94 kB / 1.048 GB, free: 8.938 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.5543/0.9323, allocations: 27.65 MB / 1.075 GB, free: 149 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9324, allocations: 0 / 1.075 GB, free: 149 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.941e-05/0.9324, allocations: 12.81 kB / 1.075 GB, free: 149 MB / 0.698 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.002293/0.9347, allocations: 0.8739 MB / 1.076 GB, free: 148.3 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.9348, allocations: 10.16 kB / 1.076 GB, free: 148.3 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001209/0.936, allocations: 148.8 kB / 1.076 GB, free: 148.2 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009155/0.937, allocations: 450.2 kB / 1.077 GB, free: 147.9 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.906e-05/0.937, allocations: 51.55 kB / 1.077 GB, free: 147.9 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/0.9372, allocations: 48.09 kB / 1.077 GB, free: 147.9 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.9387, allocations: 0.6956 MB / 1.077 GB, free: 147.6 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.014e-05/0.9387, allocations: 1.312 kB / 1.077 GB, free: 147.6 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.539e-05/0.9388, allocations: 25.47 kB / 1.078 GB, free: 147.6 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.218e-05/0.9389, allocations: 42.5 kB / 1.078 GB, free: 147.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.9401, allocations: 0.5731 MB / 1.078 GB, free: 147.5 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003734/0.9439, allocations: 2.836 MB / 1.081 GB, free: 145.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.945, allocations: 0.5823 MB / 1.081 GB, free: 145.3 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004471/0.9455, allocations: 265.8 kB / 1.082 GB, free: 145.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003453/0.9459, allocations: 0.5687 MB / 1.082 GB, free: 144.6 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007236/0.9466, allocations: 413.4 kB / 1.083 GB, free: 144.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.277e-06/0.9466, allocations: 7.922 kB / 1.083 GB, free: 144.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.0017/0.9483, allocations: 0.7692 MB / 1.083 GB, free: 144.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.9484, allocations: 87.02 kB / 1.084 GB, free: 144.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004227/0.9488, allocations: 344.6 kB / 1.084 GB, free: 144 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.937e-05/0.9489, allocations: 41.3 kB / 1.084 GB, free: 143.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.9491, allocations: 283 kB / 1.084 GB, free: 143.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.9492, allocations: 163.9 kB / 1.084 GB, free: 143.6 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/0.9493, allocations: 8.375 kB / 1.084 GB, free: 143.6 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.357e-05/0.9494, allocations: 353.5 kB / 1.085 GB, free: 143.3 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005621/0.9499, allocations: 245.2 kB / 1.085 GB, free: 143.3 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005368/0.9505, allocations: 368.1 kB / 1.085 GB, free: 143.1 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.9515, allocations: 0.6014 MB / 1.086 GB, free: 142.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.9515, allocations: 1.156 kB / 1.086 GB, free: 142.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001617/0.9532, allocations: 0.7085 MB / 1.087 GB, free: 142.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.9533, allocations: 193.1 kB / 1.087 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.9533, allocations: 10.86 kB / 1.087 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.333e-05/0.9533, allocations: 5.688 kB / 1.087 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000622/0.954, allocations: 116.9 kB / 1.087 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.574e-05/0.954, allocations: 5.781 kB / 1.087 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005771/0.9546, allocations: 77.03 kB / 1.087 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.717e-05/0.9547, allocations: 22.41 kB / 1.087 GB, free: 142.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.9547, allocations: 7.75 kB / 1.087 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001159/0.9559, allocations: 0.5832 MB / 1.087 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.9559, allocations: 5.406 kB / 1.087 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.477e-06/0.9559, allocations: 11.88 kB / 1.088 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004361/0.9564, allocations: 107.6 kB / 1.088 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.9564, allocations: 3.688 kB / 1.088 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004429/0.9568, allocations: 66.67 kB / 1.088 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.369e-05/0.9569, allocations: 23.64 kB / 1.088 GB, free: 142.1 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 () * 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.0003829/0.9573, allocations: 301.3 kB / 1.088 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.918e-05/0.9574, allocations: 50.03 kB / 1.088 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.9584, allocations: 0.6082 MB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.9584, allocations: 7.719 kB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.9584, allocations: 3.688 kB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.9584, allocations: 3.984 kB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007307/0.9592, allocations: 0.6209 MB / 1.089 GB, free: 141 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.9592, allocations: 0 / 1.089 GB, free: 141 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004283/0.9596, allocations: 99.16 kB / 1.089 GB, free: 141 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.9597, allocations: 3.938 kB / 1.089 GB, free: 141 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.713e-05/0.9597, allocations: 11.91 kB / 1.089 GB, free: 141 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.9597, allocations: 3.125 kB / 1.089 GB, free: 141 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.9597, allocations: 0 / 1.089 GB, free: 141 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.961, allocations: 0.9228 MB / 1.09 GB, free: 140.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002281/0.9612, allocations: 179.6 kB / 1.09 GB, free: 140.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.123e-05/0.9613, allocations: 22.02 kB / 1.09 GB, free: 140.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003256/0.9617, allocations: 40.55 kB / 1.09 GB, free: 140.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.9618, allocations: 46.58 kB / 1.091 GB, free: 140.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.39e-05/0.9619, allocations: 14.38 kB / 1.091 GB, free: 140.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002267/0.9621, allocations: 244.7 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9621, allocations: 7.938 kB / 1.091 GB, free: 140 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000802/0.9629, allocations: 271.9 kB / 1.091 GB, free: 140 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.0002312/0.9631, allocations: 147.4 kB / 1.091 GB, free: 139.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00151/0.9647, allocations: 1.007 MB / 1.092 GB, free: 139.3 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.9647, allocations: 0 / 1.092 GB, free: 139.3 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004149/0.9651, allocations: 293.4 kB / 1.092 GB, free: 139.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007815/0.9659, allocations: 164.3 kB / 1.093 GB, free: 139.1 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.9679, allocations: 1.3 MB / 1.094 GB, free: 138.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.9683, allocations: 0.8922 MB / 1.095 GB, free: 137.4 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0005506/0.9689, allocations: 151.7 kB / 1.095 GB, free: 137.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.969, allocations: 41.5 kB / 1.095 GB, free: 137.3 MB / 0.698 GB Notification: Performance of SimCode: time 3.71e-07/0.969, allocations: 0 / 1.095 GB, free: 137.3 MB / 0.698 GB Notification: Performance of Templates: time 0.01296/0.982, allocations: 7.768 MB / 1.103 GB, free: 130.3 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)