Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.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.447/1.447, allocations: 252 MB / 267.6 MB, free: 10.93 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.0014/0.0014, allocations: 176.4 kB / 327.3 MB, free: 2.215 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.877/1.877, allocations: 205.4 MB / 0.5783 GB, free: 20.22 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.0009582/0.0009581, allocations: 96.22 kB / 0.6829 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003618, allocations: 12.25 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2694, allocations: 106.3 MB / 0.9008 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.005979/0.2754, allocations: 5.352 MB / 0.9061 GB, free: 58.53 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.003338/0.2788, allocations: 2.083 MB / 0.9081 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005185/0.2793, allocations: 15.88 kB / 0.9081 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000361/0.2797, allocations: 63.42 kB / 0.9082 GB, free: 56.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0009264/0.2807, allocations: 254.6 kB / 0.9084 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009737/0.2817, allocations: 289.4 kB / 0.9087 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0009978/0.2827, allocations: 0.8332 MB / 0.9095 GB, free: 54.99 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001276/0.2839, allocations: 0.7106 MB / 0.9102 GB, free: 54.24 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004611/0.2844, allocations: 235 kB / 0.9104 GB, free: 54.01 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005977/0.285, allocations: 302.7 kB / 0.9107 GB, free: 53.71 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.2852, allocations: 24 kB / 0.9107 GB, free: 53.69 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005258/0.2857, allocations: 187.8 kB / 0.9109 GB, free: 53.5 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.2859, allocations: 143.5 kB / 0.911 GB, free: 53.36 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.2861, allocations: 133.4 kB / 0.9112 GB, free: 53.23 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0007647/0.2869, allocations: 0.725 MB / 0.9119 GB, free: 52.5 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.2869, allocations: 0 / 0.9119 GB, free: 52.5 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.813e-06/0.2869, allocations: 0 / 0.9119 GB, free: 52.5 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.469e-05/0.287, allocations: 0 / 0.9119 GB, free: 52.5 MB / 0.6042 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.001987/0.289, allocations: 0.8364 MB / 0.9127 GB, free: 51.61 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.289, allocations: 11.97 kB / 0.9127 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007693/0.2898, allocations: 139 kB / 0.9128 GB, free: 51.46 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006797/0.2905, allocations: 425.9 kB / 0.9133 GB, free: 51 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.357e-05/0.2905, allocations: 40.98 kB / 0.9133 GB, free: 50.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.2906, allocations: 52 kB / 0.9133 GB, free: 50.91 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.2918, allocations: 0.6965 MB / 0.914 GB, free: 50.18 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.2919, allocations: 3.938 kB / 0.914 GB, free: 50.18 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.621e-05/0.2919, allocations: 24 kB / 0.914 GB, free: 50.15 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.105e-05/0.292, allocations: 44.97 kB / 0.9141 GB, free: 50.11 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.2931, allocations: 0.5699 MB / 0.9146 GB, free: 49.54 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003368/0.2965, allocations: 2.908 MB / 0.9175 GB, free: 46.39 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009545/0.2974, allocations: 0.5636 MB / 0.918 GB, free: 45.8 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000384/0.2978, allocations: 261.6 kB / 0.9183 GB, free: 45.54 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003946/0.2982, allocations: 0.5583 MB / 0.9188 GB, free: 44.86 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006086/0.2989, allocations: 408.3 kB / 0.9192 GB, free: 44.44 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.316e-06/0.2989, allocations: 3.938 kB / 0.9192 GB, free: 44.43 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001327/0.3002, allocations: 0.7394 MB / 0.9199 GB, free: 43.69 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.3003, allocations: 93.05 kB / 0.92 GB, free: 43.58 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/0.3006, allocations: 349.5 kB / 0.9204 GB, free: 43.23 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.939e-05/0.3007, allocations: 41.7 kB / 0.9204 GB, free: 43.18 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.3008, allocations: 284.4 kB / 0.9207 GB, free: 42.9 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.301, allocations: 150.1 kB / 0.9208 GB, free: 42.75 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.301, allocations: 8 kB / 0.9208 GB, free: 42.74 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.682e-05/0.3011, allocations: 354.8 kB / 0.9212 GB, free: 42.39 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004253/0.3015, allocations: 237 kB / 0.9214 GB, free: 42.16 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004487/0.302, allocations: 358.7 kB / 0.9217 GB, free: 41.76 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004586/0.3025, allocations: 282.4 kB / 0.922 GB, free: 41.48 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.3025, allocations: 0 / 0.922 GB, free: 41.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001053/0.3035, allocations: 0.6911 MB / 0.9227 GB, free: 40.78 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.3037, allocations: 201 kB / 0.9229 GB, free: 40.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.3037, allocations: 4 kB / 0.9229 GB, free: 40.53 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/0.3037, allocations: 4 kB / 0.9229 GB, free: 40.53 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/0.3042, allocations: 115.8 kB / 0.923 GB, free: 40.41 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.3042, allocations: 7.938 kB / 0.923 GB, free: 40.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/0.3047, allocations: 71.53 kB / 0.9231 GB, free: 40.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.575e-05/0.3048, allocations: 24 kB / 0.9231 GB, free: 40.31 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/0.3048, allocations: 4 kB / 0.9231 GB, free: 40.31 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000961/0.3058, allocations: 0.5757 MB / 0.9237 GB, free: 39.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.3058, allocations: 4 kB / 0.9237 GB, free: 39.72 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.3058, allocations: 8.109 kB / 0.9237 GB, free: 39.71 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003818/0.3062, allocations: 103.8 kB / 0.9238 GB, free: 39.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3062, allocations: 8 kB / 0.9238 GB, free: 39.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004124/0.3066, allocations: 67.48 kB / 0.9238 GB, free: 39.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.769e-05/0.3067, allocations: 20 kB / 0.9239 GB, free: 39.52 MB / 0.6042 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.0003356/0.307, allocations: 307.2 kB / 0.9242 GB, free: 39.21 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.647e-05/0.3071, allocations: 39.53 kB / 0.9242 GB, free: 39.17 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.3081, allocations: 0.5917 MB / 0.9248 GB, free: 38.57 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.3082, allocations: 4 kB / 0.9248 GB, free: 38.57 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3082, allocations: 0 / 0.9248 GB, free: 38.57 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.3082, allocations: 7.984 kB / 0.9248 GB, free: 38.56 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006219/0.3088, allocations: 0.6141 MB / 0.9254 GB, free: 37.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.3088, allocations: 4 kB / 0.9254 GB, free: 37.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005288/0.3094, allocations: 104 kB / 0.9255 GB, free: 37.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.478e-06/0.3094, allocations: 3.984 kB / 0.9255 GB, free: 37.79 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.3094, allocations: 12 kB / 0.9255 GB, free: 37.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.501e-06/0.3094, allocations: 8 kB / 0.9255 GB, free: 37.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3095, allocations: 0 / 0.9255 GB, free: 37.77 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.3108, allocations: 0.8939 MB / 0.9264 GB, free: 36.86 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.311, allocations: 176.4 kB / 0.9265 GB, free: 36.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.728e-05/0.3111, allocations: 12 kB / 0.9266 GB, free: 36.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000334/0.3114, allocations: 39.95 kB / 0.9266 GB, free: 36.61 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.3116, allocations: 47.92 kB / 0.9266 GB, free: 36.57 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.211e-05/0.3116, allocations: 12 kB / 0.9267 GB, free: 36.55 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002401/0.3118, allocations: 247.2 kB / 0.9269 GB, free: 36.31 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.6e-07/0.3118, allocations: 0 / 0.9269 GB, free: 36.31 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0006761/0.3125, allocations: 263 kB / 0.9271 GB, free: 36.05 MB / 0.6042 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.0002146/0.3128, allocations: 135.3 kB / 0.9273 GB, free: 35.91 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001442/0.3142, allocations: 0.9724 MB / 0.9282 GB, free: 34.91 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3142, allocations: 0 / 0.9282 GB, free: 34.91 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004122/0.3146, allocations: 276.1 kB / 0.9285 GB, free: 34.64 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007693/0.3154, allocations: 160.6 kB / 0.9286 GB, free: 34.49 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/0.3171, allocations: 1.294 MB / 0.9299 GB, free: 33.16 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.3175, allocations: 0.8951 MB / 0.9308 GB, free: 32.24 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.3177, allocations: 51.36 kB / 0.9308 GB, free: 32.19 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.3177, allocations: 0 / 0.9308 GB, free: 32.19 MB / 0.6042 GB Notification: Performance of Templates: time 0.009224/0.3269, allocations: 7.794 MB / 0.9384 GB, free: 24.46 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)