Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.432/2.432, allocations: 251.1 MB / 266.7 MB, free: 11.54 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.001407/0.001407, allocations: 172.8 kB / 326.3 MB, free: 2.855 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.648/2.648, allocations: 205.4 MB / 0.5772 GB, free: 20.85 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.001561/0.001561, allocations: 87.31 kB / 0.6817 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006881/0.0006884, allocations: 11.69 kB / 0.7957 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2323, allocations: 106.3 MB / 0.8995 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.008108/0.2405, allocations: 5.355 MB / 0.9047 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.004425/0.245, allocations: 2.106 MB / 0.9068 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004264/0.2455, allocations: 7.938 kB / 0.9068 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002889/0.2458, allocations: 63.42 kB / 0.9069 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0008934/0.2467, allocations: 258.6 kB / 0.9071 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.2479, allocations: 305.7 kB / 0.9074 GB, free: 57.4 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001144/0.249, allocations: 0.8216 MB / 0.9082 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001761/0.2508, allocations: 0.769 MB / 0.909 GB, free: 55.77 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005174/0.2514, allocations: 235 kB / 0.9092 GB, free: 55.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005941/0.252, allocations: 306.7 kB / 0.9095 GB, free: 55.23 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.2521, allocations: 24 kB / 0.9095 GB, free: 55.21 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005915/0.2527, allocations: 179.8 kB / 0.9097 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001803/0.2529, allocations: 147.5 kB / 0.9098 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.2531, allocations: 137.4 kB / 0.9099 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.001033/0.2542, allocations: 0.7172 MB / 0.9106 GB, free: 54.03 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.2542, allocations: 0 / 0.9106 GB, free: 54.03 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.545e-06/0.2542, allocations: 4 kB / 0.9106 GB, free: 54.03 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.345e-05/0.2542, allocations: 0 / 0.9106 GB, free: 54.03 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.002298/0.2565, allocations: 0.8325 MB / 0.9115 GB, free: 53.14 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.2566, allocations: 8.031 kB / 0.9115 GB, free: 53.13 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/0.2577, allocations: 136 kB / 0.9116 GB, free: 53 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008703/0.2586, allocations: 431.2 kB / 0.912 GB, free: 52.54 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.097e-05/0.2587, allocations: 33.38 kB / 0.912 GB, free: 52.5 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.2588, allocations: 56.36 kB / 0.9121 GB, free: 52.45 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.2606, allocations: 0.6929 MB / 0.9128 GB, free: 51.72 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.2606, allocations: 0 / 0.9128 GB, free: 51.72 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.052e-05/0.2607, allocations: 27.97 kB / 0.9128 GB, free: 51.69 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-05/0.2608, allocations: 48.97 kB / 0.9128 GB, free: 51.64 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.2625, allocations: 0.5738 MB / 0.9134 GB, free: 51.07 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004824/0.2674, allocations: 2.9 MB / 0.9162 GB, free: 47.93 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.2691, allocations: 0.5638 MB / 0.9168 GB, free: 47.34 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006799/0.2698, allocations: 257.4 kB / 0.917 GB, free: 47.09 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005145/0.2703, allocations: 0.5662 MB / 0.9176 GB, free: 46.39 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001023/0.2714, allocations: 404.2 kB / 0.918 GB, free: 45.98 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.116e-06/0.2714, allocations: 0 / 0.918 GB, free: 45.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.002223/0.2736, allocations: 0.7471 MB / 0.9187 GB, free: 45.22 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.2737, allocations: 81.11 kB / 0.9188 GB, free: 45.12 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004637/0.2742, allocations: 353.5 kB / 0.9191 GB, free: 44.77 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.615e-05/0.2743, allocations: 37.7 kB / 0.9191 GB, free: 44.73 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.2745, allocations: 280.6 kB / 0.9194 GB, free: 44.45 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001551/0.2746, allocations: 157.9 kB / 0.9196 GB, free: 44.29 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/0.2747, allocations: 8 kB / 0.9196 GB, free: 44.29 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.443e-05/0.2748, allocations: 354.8 kB / 0.9199 GB, free: 43.93 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007356/0.2756, allocations: 233 kB / 0.9201 GB, free: 43.7 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007773/0.2764, allocations: 366.6 kB / 0.9205 GB, free: 43.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007515/0.2771, allocations: 289.6 kB / 0.9208 GB, free: 43.01 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.2771, allocations: 0 / 0.9208 GB, free: 43.01 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001821/0.279, allocations: 0.6873 MB / 0.9214 GB, free: 42.31 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001408/0.2792, allocations: 193.1 kB / 0.9216 GB, free: 42.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.2792, allocations: 7.984 kB / 0.9216 GB, free: 42.07 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.411e-05/0.2792, allocations: 4 kB / 0.9216 GB, free: 42.07 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009313/0.2802, allocations: 111.8 kB / 0.9217 GB, free: 41.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.2802, allocations: 4 kB / 0.9217 GB, free: 41.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008617/0.2811, allocations: 75.53 kB / 0.9218 GB, free: 41.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.629e-05/0.2811, allocations: 23.94 kB / 0.9218 GB, free: 41.86 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.2812, allocations: 5.406 kB / 0.9218 GB, free: 41.85 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001598/0.2828, allocations: 0.5835 MB / 0.9224 GB, free: 41.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.2828, allocations: 7.938 kB / 0.9224 GB, free: 41.25 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.2828, allocations: 7.984 kB / 0.9224 GB, free: 41.25 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007908/0.2836, allocations: 99.88 kB / 0.9225 GB, free: 41.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.2837, allocations: 11.92 kB / 0.9225 GB, free: 41.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007467/0.2844, allocations: 71.67 kB / 0.9226 GB, free: 41.07 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.218e-05/0.2845, allocations: 24 kB / 0.9226 GB, free: 41.04 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.0004431/0.2849, allocations: 299.2 kB / 0.9229 GB, free: 40.74 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.2851, allocations: 47.47 kB / 0.923 GB, free: 40.7 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/0.2867, allocations: 0.5878 MB / 0.9235 GB, free: 40.1 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.2868, allocations: 3.984 kB / 0.9235 GB, free: 40.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.2868, allocations: 0 / 0.9235 GB, free: 40.1 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003335/0.2871, allocations: 172.5 kB / 0.9237 GB, free: 39.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.2873, allocations: 12 kB / 0.9237 GB, free: 39.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007913/0.2881, allocations: 59.91 kB / 0.9238 GB, free: 39.84 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.2883, allocations: 47.88 kB / 0.9238 GB, free: 39.79 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00218/0.2905, allocations: 0.7496 MB / 0.9245 GB, free: 39.04 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002411/0.2929, allocations: 1.12 MB / 0.9256 GB, free: 37.9 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006898/0.2937, allocations: 263.9 kB / 0.9259 GB, free: 37.64 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000356/0.294, allocations: 247.2 kB / 0.9261 GB, free: 37.4 MB / 0.6042 GB Notification: Performance of Backend: time 6.61e-07/0.2941, allocations: 0 / 0.9261 GB, free: 37.4 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002726/0.2968, allocations: 0.9074 MB / 0.927 GB, free: 36.47 MB / 0.6042 GB Notification: Performance of SimCode: time 0.002897/0.2997, allocations: 1.628 MB / 0.9286 GB, free: 34.79 MB / 0.6042 GB Notification: Performance of Templates: time 0.02635/0.3261, allocations: 10.77 MB / 0.9391 GB, free: 24.09 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)