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.877/1.877, allocations: 287.4 MB / 303.2 MB, free: 8.16 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.00113/0.00113, allocations: 187.2 kB / 371.8 MB, free: 10.82 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.714/1.714, allocations: 205.4 MB / 0.6304 GB, free: 10.59 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.0007879/0.0007881, allocations: 94.53 kB / 0.7438 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004218/0.0004219, allocations: 10.61 kB / 0.8667 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2677, allocations: 115.3 MB / 0.9793 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.005198/0.273, allocations: 5.352 MB / 0.9845 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002938/0.2759, allocations: 2.106 MB / 0.9866 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002513/0.2762, allocations: 8 kB / 0.9866 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002341/0.2765, allocations: 63.36 kB / 0.9866 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0005727/0.277, allocations: 250.6 kB / 0.9869 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007609/0.2778, allocations: 300.3 kB / 0.9872 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006237/0.2784, allocations: 0.8293 MB / 0.988 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001042/0.2795, allocations: 0.7894 MB / 0.9887 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002795/0.2798, allocations: 243 kB / 0.989 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003732/0.2802, allocations: 294.8 kB / 0.9893 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.87e-05/0.2802, allocations: 24 kB / 0.9893 GB, free: 17.89 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003234/0.2806, allocations: 187.7 kB / 0.9895 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.2807, allocations: 143.5 kB / 0.9896 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.637e-05/0.2808, allocations: 125.4 kB / 0.9897 GB, free: 17.44 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005195/0.2813, allocations: 0.7327 MB / 0.9904 GB, free: 16.71 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.2813, allocations: 3.938 kB / 0.9904 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2813, allocations: 0 / 0.9904 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.636e-06/0.2814, allocations: 8 kB / 0.9904 GB, free: 16.7 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.001342/0.2827, allocations: 0.8209 MB / 0.9912 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.2828, allocations: 12.03 kB / 0.9913 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000566/0.2833, allocations: 128.1 kB / 0.9914 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004557/0.2838, allocations: 430.9 kB / 0.9918 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/0.2839, allocations: 45.36 kB / 0.9918 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.351e-05/0.2839, allocations: 52.28 kB / 0.9919 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009579/0.2849, allocations: 0.7084 MB / 0.9926 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.2849, allocations: 3.938 kB / 0.9926 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.912e-05/0.285, allocations: 20 kB / 0.9926 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.704e-05/0.285, allocations: 52.97 kB / 0.9926 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008887/0.2859, allocations: 0.566 MB / 0.9932 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002596/0.2885, allocations: 2.912 MB / 0.996 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008547/0.2894, allocations: 0.5625 MB / 0.9966 GB, free: 10.01 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003858/0.2898, allocations: 261.4 kB / 0.9968 GB, free: 9.746 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003585/0.2902, allocations: 0.5622 MB / 0.9974 GB, free: 9.055 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000565/0.2908, allocations: 404.3 kB / 0.9978 GB, free: 8.641 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 2.685e-06/0.2908, allocations: 0 / 0.9978 GB, free: 8.641 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001225/0.292, allocations: 0.7458 MB / 0.9985 GB, free: 7.887 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.292, allocations: 85.05 kB / 0.9986 GB, free: 7.785 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002824/0.2923, allocations: 349.7 kB / 0.9989 GB, free: 7.441 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.2924, allocations: 41.7 kB / 0.999 GB, free: 7.395 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.2925, allocations: 284.4 kB / 0.9992 GB, free: 7.109 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.247e-05/0.2926, allocations: 146 kB / 0.9994 GB, free: 6.965 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.57e-05/0.2927, allocations: 12 kB / 0.9994 GB, free: 6.953 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.086e-05/0.2928, allocations: 346.8 kB / 0.9997 GB, free: 6.605 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.2932, allocations: 241.1 kB / 0.9999 GB, free: 6.371 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/0.2936, allocations: 366.6 kB / 1 GB, free: 5.969 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007363/0.2943, allocations: 0.571 MB / 1.001 GB, free: 5.355 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2944, allocations: 0 / 1.001 GB, free: 5.355 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009554/0.2953, allocations: 0.6873 MB / 1.002 GB, free: 4.656 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 8.799e-05/0.2954, allocations: 197 kB / 1.002 GB, free: 4.418 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.2954, allocations: 4 kB / 1.002 GB, free: 4.414 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.2955, allocations: 8 kB / 1.002 GB, free: 4.406 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004681/0.2959, allocations: 107.8 kB / 1.002 GB, free: 4.301 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.296, allocations: 4 kB / 1.002 GB, free: 4.297 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004153/0.2964, allocations: 83.47 kB / 1.002 GB, free: 4.215 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.2964, allocations: 27.88 kB / 1.002 GB, free: 4.188 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.404e-06/0.2964, allocations: 5.562 kB / 1.002 GB, free: 4.184 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008418/0.2973, allocations: 0.5832 MB / 1.003 GB, free: 3.594 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2973, allocations: 4 kB / 1.003 GB, free: 3.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.47e-06/0.2973, allocations: 4 kB / 1.003 GB, free: 3.586 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003685/0.2977, allocations: 103.8 kB / 1.003 GB, free: 3.484 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.2977, allocations: 4 kB / 1.003 GB, free: 3.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.298, allocations: 59.83 kB / 1.003 GB, free: 3.422 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.07e-05/0.2981, allocations: 24 kB / 1.003 GB, free: 3.398 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.0002601/0.2983, allocations: 311.5 kB / 1.003 GB, free: 3.086 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.092e-05/0.2984, allocations: 51.38 kB / 1.003 GB, free: 3.035 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009499/0.2994, allocations: 0.5775 MB / 1.004 GB, free: 2.449 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.2994, allocations: 7.922 kB / 1.004 GB, free: 2.441 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2994, allocations: 8 kB / 1.004 GB, free: 2.434 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.2996, allocations: 172.4 kB / 1.004 GB, free: 2.246 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.386e-05/0.2997, allocations: 12 kB / 1.004 GB, free: 2.234 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/0.3001, allocations: 55.91 kB / 1.004 GB, free: 2.18 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.3002, allocations: 47.88 kB / 1.004 GB, free: 2.133 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00118/0.3014, allocations: 0.7533 MB / 1.005 GB, free: 1.371 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001361/0.3028, allocations: 1.12 MB / 1.006 GB, free: 236 kB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004184/0.3032, allocations: 263.9 kB / 1.006 GB, free: 15.97 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0003068/0.3035, allocations: 243.2 kB / 1.006 GB, free: 15.73 MB / 0.6355 GB Notification: Performance of Backend: time 6.02e-07/0.3035, allocations: 0 / 1.006 GB, free: 15.73 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.002044/0.3056, allocations: 0.9021 MB / 1.007 GB, free: 14.8 MB / 0.6355 GB Notification: Performance of SimCode: time 0.00245/0.308, allocations: 1.62 MB / 1.009 GB, free: 13.13 MB / 0.6355 GB Notification: Performance of Templates: time 0.01861/0.3267, allocations: 10.78 MB / 1.019 GB, free: 2.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)