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.655/1.655, allocations: 288.4 MB / 303.7 MB, free: 8.145 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.001155/0.001155, allocations: 174.8 kB / 372.3 MB, free: 10.12 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.469/1.469, allocations: 205.4 MB / 0.631 GB, free: 9.875 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.0007172/0.0007173, allocations: 92.62 kB / 0.7444 GB, free: 5.773 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004197/0.00042, allocations: 11.59 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2597, allocations: 115.3 MB / 0.9801 GB, free: 27.32 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004664/0.2645, allocations: 3.859 MB / 0.9839 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002879/0.2674, allocations: 2.067 MB / 0.9859 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002434/0.2676, allocations: 11.94 kB / 0.9859 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002571/0.2679, allocations: 67.36 kB / 0.986 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0006269/0.2686, allocations: 294.6 kB / 0.9863 GB, free: 21 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007665/0.2693, allocations: 303.4 kB / 0.9866 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006922/0.27, allocations: 0.8294 MB / 0.9874 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001172/0.2712, allocations: 0.789 MB / 0.9882 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003375/0.2716, allocations: 231 kB / 0.9884 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004513/0.272, allocations: 306.8 kB / 0.9887 GB, free: 18.52 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.216e-05/0.2721, allocations: 20 kB / 0.9887 GB, free: 18.5 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005266/0.2726, allocations: 323.4 kB / 0.989 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.2728, allocations: 139.5 kB / 0.9891 GB, free: 18.05 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0002398/0.273, allocations: 284.3 kB / 0.9894 GB, free: 17.76 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0006042/0.2736, allocations: 0.7405 MB / 0.9901 GB, free: 17.02 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.2736, allocations: 0 / 0.9901 GB, free: 17.02 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.874e-06/0.2737, allocations: 0 / 0.9901 GB, free: 17.02 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.002e-05/0.2737, allocations: 0 / 0.9901 GB, free: 17.02 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.001418/0.2751, allocations: 0.8249 MB / 0.9909 GB, free: 16.14 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.2751, allocations: 16.03 kB / 0.9909 GB, free: 16.12 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005807/0.2757, allocations: 132 kB / 0.9911 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005209/0.2763, allocations: 438.9 kB / 0.9915 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.046e-05/0.2763, allocations: 33.38 kB / 0.9915 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.958e-05/0.2764, allocations: 60.3 kB / 0.9916 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009431/0.2774, allocations: 0.6929 MB / 0.9923 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.2774, allocations: 0 / 0.9923 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.264e-05/0.2774, allocations: 27.97 kB / 0.9923 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.621e-05/0.2775, allocations: 56.95 kB / 0.9923 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008983/0.2784, allocations: 0.5699 MB / 0.9929 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002872/0.2813, allocations: 2.904 MB / 0.9957 GB, free: 10.91 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008803/0.2822, allocations: 0.5637 MB / 0.9963 GB, free: 10.32 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003637/0.2826, allocations: 249.7 kB / 0.9965 GB, free: 10.07 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003889/0.283, allocations: 0.5701 MB / 0.9971 GB, free: 9.375 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005576/0.2835, allocations: 408.1 kB / 0.9975 GB, free: 8.957 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 2.224e-06/0.2836, allocations: 0 / 0.9975 GB, free: 8.957 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001297/0.2849, allocations: 0.747 MB / 0.9982 GB, free: 8.203 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.2849, allocations: 81.11 kB / 0.9983 GB, free: 8.105 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.2852, allocations: 349.7 kB / 0.9986 GB, free: 7.762 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.888e-05/0.2853, allocations: 41.7 kB / 0.9986 GB, free: 7.715 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.2855, allocations: 280.4 kB / 0.9989 GB, free: 7.434 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.238e-05/0.2856, allocations: 153.9 kB / 0.9991 GB, free: 7.281 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.673e-05/0.2856, allocations: 12 kB / 0.9991 GB, free: 7.27 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.677e-05/0.2857, allocations: 358.7 kB / 0.9994 GB, free: 6.91 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003823/0.2861, allocations: 233 kB / 0.9996 GB, free: 6.684 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004216/0.2865, allocations: 366.6 kB / 1 GB, free: 6.277 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007309/0.2873, allocations: 0.5704 MB / 1.001 GB, free: 5.664 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.2873, allocations: 0 / 1.001 GB, free: 5.664 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009792/0.2883, allocations: 0.6871 MB / 1.001 GB, free: 4.965 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.2884, allocations: 197 kB / 1.001 GB, free: 4.727 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2884, allocations: 4 kB / 1.001 GB, free: 4.723 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/0.2884, allocations: 7.984 kB / 1.001 GB, free: 4.715 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004615/0.2889, allocations: 111.8 kB / 1.002 GB, free: 4.605 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.2889, allocations: 4 kB / 1.002 GB, free: 4.602 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004229/0.2893, allocations: 83.41 kB / 1.002 GB, free: 4.52 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.2894, allocations: 24 kB / 1.002 GB, free: 4.496 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 8.896e-06/0.2894, allocations: 5.562 kB / 1.002 GB, free: 4.492 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008369/0.2902, allocations: 0.5718 MB / 1.002 GB, free: 3.914 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-06/0.2903, allocations: 0 / 1.002 GB, free: 3.914 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.378e-06/0.2903, allocations: 8 kB / 1.002 GB, free: 3.906 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000358/0.2906, allocations: 103.8 kB / 1.002 GB, free: 3.805 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.2906, allocations: 15.92 kB / 1.002 GB, free: 3.789 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.291, allocations: 67.91 kB / 1.002 GB, free: 3.723 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.939e-05/0.291, allocations: 28.03 kB / 1.002 GB, free: 3.695 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.0002493/0.2913, allocations: 303.1 kB / 1.003 GB, free: 3.391 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.803e-05/0.2913, allocations: 51.47 kB / 1.003 GB, free: 3.34 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000941/0.2923, allocations: 0.5799 MB / 1.003 GB, free: 2.75 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.2923, allocations: 4 kB / 1.003 GB, free: 2.746 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2923, allocations: 4 kB / 1.003 GB, free: 2.742 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.2923, allocations: 3.984 kB / 1.003 GB, free: 2.738 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005159/0.2929, allocations: 0.6218 MB / 1.004 GB, free: 2.066 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2929, allocations: 0 / 1.004 GB, free: 2.066 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/0.2933, allocations: 99.84 kB / 1.004 GB, free: 1.969 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2933, allocations: 0 / 1.004 GB, free: 1.969 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.2934, allocations: 11.98 kB / 1.004 GB, free: 1.957 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.2934, allocations: 8 kB / 1.004 GB, free: 1.949 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2934, allocations: 0 / 1.004 GB, free: 1.949 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.2946, allocations: 0.8901 MB / 1.005 GB, free: 1.035 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.2948, allocations: 180.4 kB / 1.005 GB, free: 0.8398 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.494e-05/0.2948, allocations: 12 kB / 1.005 GB, free: 0.8281 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002799/0.2951, allocations: 39.95 kB / 1.005 GB, free: 0.7891 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.2953, allocations: 47.92 kB / 1.005 GB, free: 0.7422 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.2953, allocations: 16 kB / 1.005 GB, free: 0.7266 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002061/0.2955, allocations: 247.2 kB / 1.005 GB, free: 496 kB / 0.6198 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2955, allocations: 0 / 1.005 GB, free: 496 kB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006092/0.2961, allocations: 259.1 kB / 1.006 GB, free: 236 kB / 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.0001796/0.2963, allocations: 123.2 kB / 1.006 GB, free: 100 kB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001581/0.2979, allocations: 0.975 MB / 1.007 GB, free: 15.1 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2979, allocations: 0 / 1.007 GB, free: 15.1 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0004825/0.2984, allocations: 280.3 kB / 1.007 GB, free: 14.82 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008039/0.2992, allocations: 164 kB / 1.007 GB, free: 14.66 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.3012, allocations: 1.248 MB / 1.008 GB, free: 13.39 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005113/0.3017, allocations: 0.8989 MB / 1.009 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0005393/0.3023, allocations: 141 kB / 1.009 GB, free: 12.32 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.3024, allocations: 43.36 kB / 1.009 GB, free: 12.29 MB / 0.6355 GB Notification: Performance of SimCode: time 9.02e-07/0.3024, allocations: 4 kB / 1.009 GB, free: 12.28 MB / 0.6355 GB Notification: Performance of Templates: time 0.01356/0.316, allocations: 7.662 MB / 1.017 GB, free: 4.707 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)