Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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.8.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.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.767/1.767, allocations: 288.3 MB / 303.2 MB, free: 8.18 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001213/0.001213, allocations: 179.7 kB / 371.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.855/1.855, allocations: 205.4 MB / 0.6306 GB, free: 9.91 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009225/0.0009225, allocations: 109.9 kB / 0.7439 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004708/0.000471, allocations: 15.33 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.2372, allocations: 115.3 MB / 0.9794 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004293/0.2415, allocations: 3.786 MB / 0.9831 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002742/0.2443, allocations: 2.052 MB / 0.9851 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.2446, allocations: 7.938 kB / 0.9851 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002379/0.2448, allocations: 63.53 kB / 0.9852 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0006939/0.2455, allocations: 243.2 kB / 0.9854 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007476/0.2463, allocations: 293.7 kB / 0.9857 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004871/0.2468, allocations: 475 kB / 0.9862 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009609/0.2478, allocations: 0.7181 MB / 0.9869 GB, free: 20 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/0.248, allocations: 215.2 kB / 0.9871 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003407/0.2484, allocations: 246.8 kB / 0.9873 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.834e-05/0.2484, allocations: 31.94 kB / 0.9873 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003124/0.2487, allocations: 175.8 kB / 0.9875 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.2488, allocations: 135.6 kB / 0.9876 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.27e-05/0.2489, allocations: 129.4 kB / 0.9878 GB, free: 19.08 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005274/0.2495, allocations: 0.7366 MB / 0.9885 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.2495, allocations: 0 / 0.9885 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.783e-06/0.2495, allocations: 0 / 0.9885 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.2495, allocations: 0 / 0.9885 GB, free: 18.34 MB / 0.6198 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.001356/0.2509, allocations: 0.8286 MB / 0.9893 GB, free: 17.46 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.2509, allocations: 8.031 kB / 0.9893 GB, free: 17.45 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006152/0.2515, allocations: 143 kB / 0.9894 GB, free: 17.31 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004946/0.252, allocations: 421.9 kB / 0.9898 GB, free: 16.86 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.815e-05/0.2521, allocations: 44.98 kB / 0.9899 GB, free: 16.81 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.555e-05/0.2522, allocations: 51.98 kB / 0.9899 GB, free: 16.76 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009276/0.2531, allocations: 0.6848 MB / 0.9906 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.2531, allocations: 0 / 0.9906 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.363e-05/0.2532, allocations: 23.98 kB / 0.9906 GB, free: 16.02 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.274e-05/0.2533, allocations: 52.97 kB / 0.9907 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008629/0.2541, allocations: 0.5659 MB / 0.9912 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002656/0.2568, allocations: 2.908 MB / 0.9941 GB, free: 12.25 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008588/0.2577, allocations: 0.5636 MB / 0.9946 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003495/0.258, allocations: 0.57 MB / 0.9952 GB, free: 10.97 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005468/0.2586, allocations: 400.5 kB / 0.9956 GB, free: 10.56 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 2.154e-06/0.2586, allocations: 0 / 0.9956 GB, free: 10.56 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001203/0.2598, allocations: 0.742 MB / 0.9963 GB, free: 9.809 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.2599, allocations: 89.09 kB / 0.9964 GB, free: 9.703 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.2602, allocations: 337.6 kB / 0.9967 GB, free: 9.371 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/0.2602, allocations: 49.69 kB / 0.9967 GB, free: 9.316 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.2604, allocations: 284.5 kB / 0.997 GB, free: 9.031 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.87e-05/0.2605, allocations: 142 kB / 0.9971 GB, free: 8.891 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.697e-05/0.2605, allocations: 12 kB / 0.9972 GB, free: 8.879 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.433e-05/0.2606, allocations: 358.8 kB / 0.9975 GB, free: 8.52 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000366/0.261, allocations: 241 kB / 0.9977 GB, free: 8.285 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.2614, allocations: 362.6 kB / 0.9981 GB, free: 7.883 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004024/0.2618, allocations: 286.6 kB / 0.9983 GB, free: 7.598 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2618, allocations: 4 kB / 0.9983 GB, free: 7.594 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009537/0.2628, allocations: 0.6839 MB / 0.999 GB, free: 6.898 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002446/0.263, allocations: 1.075 MB / 1 GB, free: 5.738 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/0.263, allocations: 0 / 1 GB, free: 5.738 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.2631, allocations: 15.92 kB / 1 GB, free: 5.723 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004577/0.2635, allocations: 111.8 kB / 1 GB, free: 5.613 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.2636, allocations: 8 kB / 1 GB, free: 5.605 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004326/0.264, allocations: 75.47 kB / 1 GB, free: 5.531 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.2641, allocations: 23.95 kB / 1 GB, free: 5.508 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.745e-06/0.2641, allocations: 4 kB / 1 GB, free: 5.504 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008537/0.2649, allocations: 0.568 MB / 1.001 GB, free: 4.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2649, allocations: 4 kB / 1.001 GB, free: 4.926 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.751e-06/0.265, allocations: 7.938 kB / 1.001 GB, free: 4.918 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.2653, allocations: 108.5 kB / 1.001 GB, free: 4.812 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2653, allocations: 7.938 kB / 1.001 GB, free: 4.805 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.2657, allocations: 67.55 kB / 1.001 GB, free: 4.738 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.2657, allocations: 20 kB / 1.001 GB, free: 4.719 MB / 0.6198 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 (66): * Single equations (assignments): 65 * 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.0002755/0.266, allocations: 304 kB / 1.001 GB, free: 4.414 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.228e-05/0.2661, allocations: 51.48 kB / 1.001 GB, free: 4.363 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000942/0.267, allocations: 0.5813 MB / 1.002 GB, free: 3.773 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.267, allocations: 8 kB / 1.002 GB, free: 3.766 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2671, allocations: 0 / 1.002 GB, free: 3.766 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.2671, allocations: 7.984 kB / 1.002 GB, free: 3.758 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005509/0.2676, allocations: 0.6103 MB / 1.003 GB, free: 3.098 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2676, allocations: 0 / 1.003 GB, free: 3.098 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004629/0.2681, allocations: 99.84 kB / 1.003 GB, free: 3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.2681, allocations: 7.953 kB / 1.003 GB, free: 2.992 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.228e-05/0.2681, allocations: 11.98 kB / 1.003 GB, free: 2.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.2682, allocations: 0 / 1.003 GB, free: 2.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2682, allocations: 3.938 kB / 1.003 GB, free: 2.977 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.2694, allocations: 0.9074 MB / 1.004 GB, free: 2.039 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.2696, allocations: 184.3 kB / 1.004 GB, free: 1.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.027e-05/0.2696, allocations: 12 kB / 1.004 GB, free: 1.828 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/0.2699, allocations: 39.89 kB / 1.004 GB, free: 1.789 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.2701, allocations: 47.92 kB / 1.004 GB, free: 1.742 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.2701, allocations: 16 kB / 1.004 GB, free: 1.727 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001927/0.2703, allocations: 243.2 kB / 1.004 GB, free: 1.488 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2703, allocations: 0 / 1.004 GB, free: 1.488 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006356/0.2709, allocations: 263.1 kB / 1.004 GB, free: 1.23 MB / 0.6198 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 (47): * Single equations (assignments): 45 * 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.0002001/0.2711, allocations: 132.8 kB / 1.004 GB, free: 1.09 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001429/0.2726, allocations: 0.9707 MB / 1.005 GB, free: 96 kB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.2726, allocations: 4 kB / 1.005 GB, free: 92 kB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004746/0.2731, allocations: 276.3 kB / 1.006 GB, free: 15.82 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007184/0.2738, allocations: 149.3 kB / 1.006 GB, free: 15.67 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.2758, allocations: 1.248 MB / 1.007 GB, free: 14.4 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005055/0.2763, allocations: 0.9106 MB / 1.008 GB, free: 13.46 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0005268/0.2768, allocations: 141.1 kB / 1.008 GB, free: 13.32 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.277, allocations: 43.42 kB / 1.008 GB, free: 13.28 MB / 0.6355 GB Notification: Performance of SimCode: time 5.91e-07/0.277, allocations: 0 / 1.008 GB, free: 13.28 MB / 0.6355 GB Notification: Performance of Templates: time 0.01327/0.2903, allocations: 7.558 MB / 1.015 GB, free: 5.812 MB / 0.6355 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)