Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.666/2.666, allocations: 287.5 MB / 302.4 MB, free: 8.305 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.001453/0.001453, allocations: 186 kB / 371 MB, free: 10.88 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.324/2.324, allocations: 205.4 MB / 0.6297 GB, free: 10.62 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.0009634/0.000963, allocations: 105.5 kB / 0.743 GB, free: 6.613 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005004/0.0005006, allocations: 11.42 kB / 0.8658 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2272, allocations: 115.3 MB / 0.9784 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.006437/0.2337, allocations: 3.855 MB / 0.9821 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.004929/0.2387, allocations: 2.103 MB / 0.9842 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005614/0.2393, allocations: 11.94 kB / 0.9842 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0003327/0.2397, allocations: 67.42 kB / 0.9843 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000996/0.2407, allocations: 246.6 kB / 0.9845 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.2419, allocations: 308.2 kB / 0.9848 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001622/0.2436, allocations: 0.8216 MB / 0.9856 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.2455, allocations: 0.72 MB / 0.9863 GB, free: 20.17 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005383/0.246, allocations: 231 kB / 0.9865 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006659/0.2467, allocations: 294.8 kB / 0.9868 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.2469, allocations: 23.94 kB / 0.9868 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006345/0.2475, allocations: 191.7 kB / 0.987 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.2477, allocations: 143.5 kB / 0.9871 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0002169/0.248, allocations: 133.4 kB / 0.9873 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0009938/0.249, allocations: 0.7366 MB / 0.988 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.249, allocations: 0 / 0.988 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.685e-06/0.249, allocations: 0 / 0.988 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.08e-05/0.249, allocations: 0 / 0.988 GB, free: 18.43 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.002274/0.2513, allocations: 0.8287 MB / 0.9888 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.2514, allocations: 8.031 kB / 0.9888 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001018/0.2524, allocations: 142.9 kB / 0.9889 GB, free: 17.39 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008692/0.2533, allocations: 417.9 kB / 0.9893 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.809e-05/0.2534, allocations: 44.97 kB / 0.9894 GB, free: 16.9 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.2535, allocations: 44 kB / 0.9894 GB, free: 16.86 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001765/0.2553, allocations: 0.6965 MB / 0.9901 GB, free: 16.13 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/0.2554, allocations: 0 / 0.9901 GB, free: 16.13 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.242e-05/0.2555, allocations: 27.94 kB / 0.9901 GB, free: 16.11 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.2556, allocations: 56.97 kB / 0.9902 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.2572, allocations: 0.5659 MB / 0.9907 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004979/0.2623, allocations: 2.912 MB / 0.9936 GB, free: 12.32 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001674/0.264, allocations: 0.5637 MB / 0.9941 GB, free: 11.74 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007166/0.2648, allocations: 265.4 kB / 0.9944 GB, free: 11.48 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005766/0.2654, allocations: 0.5622 MB / 0.9949 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00108/0.2665, allocations: 404.5 kB / 0.9953 GB, free: 10.37 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 4.669e-06/0.2665, allocations: 4 kB / 0.9953 GB, free: 10.37 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.002279/0.2688, allocations: 0.7459 MB / 0.9961 GB, free: 9.613 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.2689, allocations: 85.11 kB / 0.9961 GB, free: 9.512 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004976/0.2694, allocations: 345.5 kB / 0.9965 GB, free: 9.172 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001309/0.2696, allocations: 49.69 kB / 0.9965 GB, free: 9.117 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000222/0.2698, allocations: 280.4 kB / 0.9968 GB, free: 8.836 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.27, allocations: 138 kB / 0.9969 GB, free: 8.699 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.061e-05/0.27, allocations: 12 kB / 0.9969 GB, free: 8.688 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.63e-05/0.2702, allocations: 362.8 kB / 0.9973 GB, free: 8.324 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007156/0.2709, allocations: 233 kB / 0.9975 GB, free: 8.098 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007789/0.2717, allocations: 358.6 kB / 0.9978 GB, free: 7.703 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007599/0.2725, allocations: 290.4 kB / 0.9981 GB, free: 7.414 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.2725, allocations: 0 / 0.9981 GB, free: 7.414 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001847/0.2744, allocations: 0.6794 MB / 0.9988 GB, free: 6.723 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.2745, allocations: 197 kB / 0.999 GB, free: 6.484 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.2745, allocations: 0 / 0.999 GB, free: 6.484 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.2746, allocations: 12 kB / 0.999 GB, free: 6.473 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009203/0.2755, allocations: 111.8 kB / 0.9991 GB, free: 6.363 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.2755, allocations: 8 kB / 0.9991 GB, free: 6.355 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008292/0.2764, allocations: 75.66 kB / 0.9992 GB, free: 6.281 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-05/0.2765, allocations: 20 kB / 0.9992 GB, free: 6.262 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.2765, allocations: 4 kB / 0.9992 GB, free: 6.258 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001581/0.2781, allocations: 0.5832 MB / 0.9998 GB, free: 5.668 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.2781, allocations: 4 kB / 0.9998 GB, free: 5.664 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.2781, allocations: 4.25 kB / 0.9998 GB, free: 5.66 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007899/0.2789, allocations: 107.8 kB / 0.9999 GB, free: 5.555 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.279, allocations: 7.938 kB / 0.9999 GB, free: 5.547 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007278/0.2797, allocations: 71.55 kB / 0.9999 GB, free: 5.477 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.244e-05/0.2798, allocations: 23.98 kB / 1 GB, free: 5.453 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.0004717/0.2803, allocations: 299.2 kB / 1 GB, free: 5.152 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.2804, allocations: 43.53 kB / 1 GB, free: 5.109 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.2821, allocations: 0.5892 MB / 1.001 GB, free: 4.512 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.2821, allocations: 7.938 kB / 1.001 GB, free: 4.504 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-05/0.2822, allocations: 4 kB / 1.001 GB, free: 4.5 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.2822, allocations: 0 / 1.001 GB, free: 4.5 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009779/0.2832, allocations: 0.6142 MB / 1.001 GB, free: 3.836 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.2832, allocations: 3.938 kB / 1.001 GB, free: 3.832 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.2842, allocations: 103.8 kB / 1.002 GB, free: 3.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.839e-06/0.2843, allocations: 4 kB / 1.002 GB, free: 3.727 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.137e-05/0.2844, allocations: 12 kB / 1.002 GB, free: 3.715 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.2844, allocations: 0 / 1.002 GB, free: 3.715 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.2844, allocations: 3.938 kB / 1.002 GB, free: 3.711 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/0.2867, allocations: 0.8943 MB / 1.002 GB, free: 2.793 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003501/0.2871, allocations: 180.4 kB / 1.003 GB, free: 2.598 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.2873, allocations: 12 kB / 1.003 GB, free: 2.586 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000582/0.2879, allocations: 40.14 kB / 1.003 GB, free: 2.547 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/0.2881, allocations: 47.92 kB / 1.003 GB, free: 2.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.425e-05/0.2881, allocations: 16 kB / 1.003 GB, free: 2.484 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003633/0.2885, allocations: 247.2 kB / 1.003 GB, free: 2.242 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.6e-07/0.2885, allocations: 0 / 1.003 GB, free: 2.242 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001011/0.2895, allocations: 263.1 kB / 1.003 GB, free: 1.984 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.0002656/0.2898, allocations: 131.1 kB / 1.003 GB, free: 1.844 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002541/0.2924, allocations: 0.9703 MB / 1.004 GB, free: 0.8477 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.2925, allocations: 0 / 1.004 GB, free: 0.8477 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0007801/0.2932, allocations: 276.4 kB / 1.005 GB, free: 0.5781 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001419/0.2947, allocations: 161.2 kB / 1.005 GB, free: 436 kB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.2978, allocations: 1.26 MB / 1.006 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006883/0.2985, allocations: 0.8911 MB / 1.007 GB, free: 14.22 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.000975/0.2995, allocations: 140.2 kB / 1.007 GB, free: 14.08 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002644/0.2998, allocations: 47.42 kB / 1.007 GB, free: 14.04 MB / 0.6355 GB Notification: Performance of SimCode: time 9.82e-07/0.2998, allocations: 0 / 1.007 GB, free: 14.04 MB / 0.6355 GB Notification: Performance of Templates: time 0.02335/0.3232, allocations: 7.57 MB / 1.014 GB, free: 6.531 MB / 0.6355 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)