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 2.724/2.724, allocations: 287.3 MB / 302.3 MB, free: 8.293 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.001691/0.001691, allocations: 186.9 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.365/2.365, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001174/0.001174, allocations: 93.53 kB / 0.7428 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005032/0.0005033, allocations: 15.56 kB / 0.8656 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2492, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.01287/0.2621, allocations: 5.247 MB / 0.9833 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.007279/0.2695, allocations: 2.083 MB / 0.9854 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006624/0.2702, allocations: 7.938 kB / 0.9854 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0004284/0.2707, allocations: 59.53 kB / 0.9854 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.001566/0.2723, allocations: 247.2 kB / 0.9857 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001965/0.2743, allocations: 297.4 kB / 0.9859 GB, free: 20.42 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001642/0.276, allocations: 475 kB / 0.9864 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002446/0.2785, allocations: 0.7144 MB / 0.9871 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007251/0.2793, allocations: 215.1 kB / 0.9873 GB, free: 19 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007635/0.28, allocations: 250.9 kB / 0.9875 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001478/0.2802, allocations: 20 kB / 0.9876 GB, free: 18.73 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008127/0.2811, allocations: 179.8 kB / 0.9877 GB, free: 18.56 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0002644/0.2814, allocations: 135.5 kB / 0.9879 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0002562/0.2816, allocations: 129.4 kB / 0.988 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.001568/0.2832, allocations: 0.7327 MB / 0.9887 GB, free: 17.56 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2833, allocations: 0 / 0.9887 GB, free: 17.56 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.607e-06/0.2833, allocations: 0 / 0.9887 GB, free: 17.56 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.231e-05/0.2834, allocations: 4 kB / 0.9887 GB, free: 17.55 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.003352/0.2867, allocations: 0.8286 MB / 0.9895 GB, free: 16.67 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.2868, allocations: 12.03 kB / 0.9895 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001767/0.2886, allocations: 139.1 kB / 0.9897 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.29, allocations: 417.9 kB / 0.9901 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.716e-05/0.2901, allocations: 44.94 kB / 0.9901 GB, free: 16.03 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002031/0.2903, allocations: 51.98 kB / 0.9901 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002528/0.2929, allocations: 0.6848 MB / 0.9908 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.609e-05/0.293, allocations: 4 kB / 0.9908 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/0.2931, allocations: 23.98 kB / 0.9908 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001606/0.2933, allocations: 52.97 kB / 0.9909 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002602/0.2959, allocations: 0.5698 MB / 0.9914 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007338/0.3033, allocations: 2.908 MB / 0.9943 GB, free: 11.46 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002607/0.306, allocations: 0.56 MB / 0.9948 GB, free: 10.88 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007376/0.3068, allocations: 0.5708 MB / 0.9954 GB, free: 10.18 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001548/0.3084, allocations: 396.5 kB / 0.9958 GB, free: 9.773 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 6.492e-06/0.3084, allocations: 0 / 0.9958 GB, free: 9.773 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.003601/0.312, allocations: 0.7458 MB / 0.9965 GB, free: 9.02 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.3122, allocations: 81.11 kB / 0.9966 GB, free: 8.922 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007573/0.313, allocations: 341.7 kB / 0.9969 GB, free: 8.586 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001693/0.3132, allocations: 45.69 kB / 0.9969 GB, free: 8.535 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003215/0.3135, allocations: 284.3 kB / 0.9972 GB, free: 8.25 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002945/0.3138, allocations: 150.2 kB / 0.9974 GB, free: 8.102 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.448e-05/0.3139, allocations: 15.94 kB / 0.9974 GB, free: 8.086 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.3141, allocations: 350.8 kB / 0.9977 GB, free: 7.734 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.3153, allocations: 241 kB / 0.9979 GB, free: 7.5 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001247/0.3165, allocations: 362.6 kB / 0.9983 GB, free: 7.102 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.3178, allocations: 290.3 kB / 0.9986 GB, free: 6.812 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.3179, allocations: 0 / 0.9986 GB, free: 6.812 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002918/0.3208, allocations: 0.6871 MB / 0.9992 GB, free: 6.113 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003465/0.3212, allocations: 1.073 MB / 1 GB, free: 4.953 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/0.3213, allocations: 4 kB / 1 GB, free: 4.949 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.415e-05/0.3213, allocations: 4 kB / 1 GB, free: 4.945 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.3229, allocations: 115.8 kB / 1 GB, free: 4.832 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.318e-05/0.3229, allocations: 4 kB / 1 GB, free: 4.828 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/0.3242, allocations: 83.44 kB / 1 GB, free: 4.746 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.3244, allocations: 23.98 kB / 1.001 GB, free: 4.723 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.3244, allocations: 4 kB / 1.001 GB, free: 4.719 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002586/0.327, allocations: 0.5756 MB / 1.001 GB, free: 4.137 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.3271, allocations: 384 / 1.001 GB, free: 4.137 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.3271, allocations: 8 kB / 1.001 GB, free: 4.129 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.3284, allocations: 103.9 kB / 1.001 GB, free: 4.027 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.038e-05/0.3285, allocations: 11.94 kB / 1.001 GB, free: 4.016 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.3297, allocations: 59.64 kB / 1.001 GB, free: 3.957 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.3298, allocations: 28.06 kB / 1.001 GB, free: 3.93 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.0007279/0.3306, allocations: 295.2 kB / 1.002 GB, free: 3.633 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001957/0.3308, allocations: 55.38 kB / 1.002 GB, free: 3.578 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00262/0.3334, allocations: 0.5814 MB / 1.002 GB, free: 2.988 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/0.3335, allocations: 4 kB / 1.002 GB, free: 2.984 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.3335, allocations: 4 kB / 1.002 GB, free: 2.98 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.3336, allocations: 3.984 kB / 1.002 GB, free: 2.977 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.3351, allocations: 0.6142 MB / 1.003 GB, free: 2.312 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.3351, allocations: 0 / 1.003 GB, free: 2.312 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001594/0.3367, allocations: 103.8 kB / 1.003 GB, free: 2.211 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.636e-05/0.3368, allocations: 0 / 1.003 GB, free: 2.211 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.3369, allocations: 11.98 kB / 1.003 GB, free: 2.199 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.14e-05/0.337, allocations: 11.94 kB / 1.003 GB, free: 2.188 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.337, allocations: 0 / 1.003 GB, free: 2.188 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003669/0.3407, allocations: 0.8999 MB / 1.004 GB, free: 1.258 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004961/0.3412, allocations: 176.4 kB / 1.004 GB, free: 1.066 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.3414, allocations: 15.98 kB / 1.004 GB, free: 1.051 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009213/0.3424, allocations: 39.95 kB / 1.004 GB, free: 1.012 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002952/0.3427, allocations: 48.06 kB / 1.004 GB, free: 0.9648 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.513e-05/0.3428, allocations: 20 kB / 1.004 GB, free: 0.9453 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.00054/0.3434, allocations: 243.2 kB / 1.004 GB, free: 0.707 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.41e-07/0.3434, allocations: 0 / 1.004 GB, free: 0.707 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001556/0.3449, allocations: 259.1 kB / 1.005 GB, free: 464 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.0003567/0.3453, allocations: 135.1 kB / 1.005 GB, free: 316 kB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00414/0.3495, allocations: 0.9708 MB / 1.006 GB, free: 15.31 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/0.3496, allocations: 4.125 kB / 1.006 GB, free: 15.31 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.351, allocations: 275.7 kB / 1.006 GB, free: 15.04 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/0.353, allocations: 160.3 kB / 1.006 GB, free: 14.89 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004861/0.3579, allocations: 1.248 MB / 1.007 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.359, allocations: 0.9106 MB / 1.008 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.001411/0.3605, allocations: 140.2 kB / 1.008 GB, free: 12.54 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003791/0.3609, allocations: 43.42 kB / 1.008 GB, free: 12.49 MB / 0.6355 GB Notification: Performance of SimCode: time 1.283e-06/0.3609, allocations: 4 kB / 1.008 GB, free: 12.49 MB / 0.6355 GB Notification: Performance of Templates: time 0.03477/0.3957, allocations: 7.537 MB / 1.016 GB, free: 5.02 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)