Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.767/1.767, allocations: 287.5 MB / 302.6 MB, free: 8.188 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.0009675/0.0009674, allocations: 182.7 kB / 371.2 MB, free: 10.74 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.621/1.621, allocations: 205.4 MB / 0.6298 GB, free: 10.55 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.0007932/0.0007932, allocations: 96.8 kB / 0.7432 GB, free: 6.535 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004566/0.0004567, allocations: 14.92 kB / 0.8661 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2911, allocations: 115.3 MB / 0.9787 GB, free: 28.15 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.005978/0.2972, allocations: 5.348 MB / 0.9839 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003559/0.3008, allocations: 2.099 MB / 0.986 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002991/0.3011, allocations: 11.94 kB / 0.986 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002758/0.3014, allocations: 63.42 kB / 0.986 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.00069/0.3021, allocations: 254.6 kB / 0.9863 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008763/0.303, allocations: 297.6 kB / 0.9866 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0007105/0.3037, allocations: 0.8293 MB / 0.9874 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001164/0.3049, allocations: 0.7882 MB / 0.9881 GB, free: 18.4 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002939/0.3052, allocations: 235 kB / 0.9884 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004148/0.3056, allocations: 310.7 kB / 0.9887 GB, free: 17.87 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.772e-05/0.3057, allocations: 20 kB / 0.9887 GB, free: 17.85 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000368/0.3061, allocations: 183.8 kB / 0.9889 GB, free: 17.67 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.3062, allocations: 143.5 kB / 0.989 GB, free: 17.53 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.3063, allocations: 133.4 kB / 0.9891 GB, free: 17.39 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005857/0.3069, allocations: 0.7327 MB / 0.9898 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.307, allocations: 4 kB / 0.9898 GB, free: 16.65 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.024e-06/0.307, allocations: 0 / 0.9898 GB, free: 16.65 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.307, allocations: 4 kB / 0.9898 GB, free: 16.65 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.00149/0.3085, allocations: 0.8249 MB / 0.9907 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.3085, allocations: 8.031 kB / 0.9907 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005767/0.3091, allocations: 128.1 kB / 0.9908 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005563/0.3097, allocations: 438.9 kB / 0.9912 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.773e-05/0.3097, allocations: 33.38 kB / 0.9912 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-05/0.3098, allocations: 52.28 kB / 0.9913 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.3109, allocations: 0.7007 MB / 0.992 GB, free: 14.35 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.3109, allocations: 3.938 kB / 0.992 GB, free: 14.35 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.678e-05/0.311, allocations: 27.97 kB / 0.992 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.072e-05/0.3111, allocations: 48.97 kB / 0.992 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009319/0.312, allocations: 0.566 MB / 0.9926 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002871/0.3149, allocations: 2.916 MB / 0.9954 GB, free: 10.54 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009566/0.3159, allocations: 0.56 MB / 0.996 GB, free: 9.965 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003562/0.3162, allocations: 261.4 kB / 0.9962 GB, free: 9.703 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003837/0.3166, allocations: 0.5662 MB / 0.9968 GB, free: 9.008 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005661/0.3172, allocations: 392.3 kB / 0.9972 GB, free: 8.605 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.827e-06/0.3172, allocations: 4 kB / 0.9972 GB, free: 8.602 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001248/0.3185, allocations: 0.7458 MB / 0.9979 GB, free: 7.848 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.3185, allocations: 93.17 kB / 0.998 GB, free: 7.738 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.3188, allocations: 345.6 kB / 0.9983 GB, free: 7.398 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.749e-05/0.3189, allocations: 41.7 kB / 0.9984 GB, free: 7.352 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.3191, allocations: 284.4 kB / 0.9986 GB, free: 7.066 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.3192, allocations: 145.9 kB / 0.9988 GB, free: 6.922 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.3192, allocations: 12.11 kB / 0.9988 GB, free: 6.91 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.485e-05/0.3193, allocations: 362.7 kB / 0.9991 GB, free: 6.547 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.3197, allocations: 237 kB / 0.9994 GB, free: 6.316 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004281/0.3201, allocations: 358.7 kB / 0.9997 GB, free: 5.922 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007586/0.3209, allocations: 0.575 MB / 1 GB, free: 5.305 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3209, allocations: 0 / 1 GB, free: 5.305 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009978/0.3219, allocations: 0.6794 MB / 1.001 GB, free: 4.613 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.322, allocations: 200.8 kB / 1.001 GB, free: 4.371 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.3221, allocations: 4 kB / 1.001 GB, free: 4.367 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.3221, allocations: 7.984 kB / 1.001 GB, free: 4.359 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004638/0.3226, allocations: 107.8 kB / 1.001 GB, free: 4.254 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.3226, allocations: 8 kB / 1.001 GB, free: 4.246 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004187/0.323, allocations: 83.41 kB / 1.001 GB, free: 4.164 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.135e-05/0.3231, allocations: 23.98 kB / 1.001 GB, free: 4.141 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.881e-06/0.3231, allocations: 4 kB / 1.001 GB, free: 4.137 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008728/0.324, allocations: 0.5797 MB / 1.002 GB, free: 3.551 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/0.324, allocations: 4 kB / 1.002 GB, free: 3.547 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.859e-06/0.324, allocations: 4 kB / 1.002 GB, free: 3.543 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.3243, allocations: 107.8 kB / 1.002 GB, free: 3.438 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.3244, allocations: 4 kB / 1.002 GB, free: 3.434 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.3247, allocations: 71.83 kB / 1.002 GB, free: 3.363 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.3247, allocations: 20 kB / 1.002 GB, free: 3.344 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.0002632/0.325, allocations: 299.1 kB / 1.002 GB, free: 3.043 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.414e-05/0.3251, allocations: 47.44 kB / 1.002 GB, free: 2.996 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009119/0.326, allocations: 0.5814 MB / 1.003 GB, free: 2.406 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.326, allocations: 4 kB / 1.003 GB, free: 2.402 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.326, allocations: 0 / 1.003 GB, free: 2.402 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.326, allocations: 3.984 kB / 1.003 GB, free: 2.398 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005383/0.3266, allocations: 0.6218 MB / 1.004 GB, free: 1.727 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3266, allocations: 0 / 1.004 GB, free: 1.727 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004644/0.327, allocations: 99.84 kB / 1.004 GB, free: 1.629 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.327, allocations: 4 kB / 1.004 GB, free: 1.625 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.3271, allocations: 19.98 kB / 1.004 GB, free: 1.605 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.019e-05/0.3271, allocations: 0 / 1.004 GB, free: 1.605 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3271, allocations: 0 / 1.004 GB, free: 1.605 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.3284, allocations: 0.89 MB / 1.005 GB, free: 0.6914 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/0.3285, allocations: 180.4 kB / 1.005 GB, free: 0.4961 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.436e-05/0.3286, allocations: 15.94 kB / 1.005 GB, free: 492 kB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.3289, allocations: 40.09 kB / 1.005 GB, free: 452 kB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.329, allocations: 51.84 kB / 1.005 GB, free: 400 kB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.3291, allocations: 20 kB / 1.005 GB, free: 380 kB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001906/0.3293, allocations: 247.1 kB / 1.005 GB, free: 132 kB / 0.6198 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3293, allocations: 0 / 1.005 GB, free: 132 kB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000673/0.33, allocations: 259.2 kB / 1.005 GB, free: 15.87 MB / 0.6355 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.0002312/0.3302, allocations: 131.1 kB / 1.006 GB, free: 15.73 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001618/0.3318, allocations: 0.9718 MB / 1.006 GB, free: 14.74 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 7.824e-06/0.3318, allocations: 4.125 kB / 1.006 GB, free: 14.73 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0004907/0.3323, allocations: 275.8 kB / 1.007 GB, free: 14.46 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000784/0.3331, allocations: 165.9 kB / 1.007 GB, free: 14.3 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.3352, allocations: 1.245 MB / 1.008 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005209/0.3357, allocations: 0.895 MB / 1.009 GB, free: 12.11 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0005371/0.3363, allocations: 140.2 kB / 1.009 GB, free: 11.97 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.3364, allocations: 43.42 kB / 1.009 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of SimCode: time 2.21e-07/0.3364, allocations: 4 kB / 1.009 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of Templates: time 0.01345/0.3499, allocations: 7.567 MB / 1.017 GB, free: 4.43 MB / 0.6355 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)