Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.271/2.271, allocations: 251.1 MB / 266.7 MB, free: 11.64 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.001323/0.001322, allocations: 176.3 kB / 326.3 MB, free: 2.883 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.617/2.617, allocations: 205.4 MB / 0.5772 GB, free: 20.77 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.0009217/0.0009215, allocations: 83.73 kB / 0.6817 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007493/0.0007495, allocations: 12.75 kB / 0.7957 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2245, allocations: 106.3 MB / 0.8995 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005601/0.2301, allocations: 3.867 MB / 0.9033 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.004358/0.2346, allocations: 2.106 MB / 0.9053 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004664/0.2351, allocations: 7.938 kB / 0.9054 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003549/0.2355, allocations: 71.36 kB / 0.9054 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0009652/0.2364, allocations: 250.6 kB / 0.9057 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001132/0.2376, allocations: 299.4 kB / 0.9059 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001078/0.2387, allocations: 0.8294 MB / 0.9068 GB, free: 58.1 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001638/0.2403, allocations: 0.7652 MB / 0.9075 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004609/0.2408, allocations: 239 kB / 0.9077 GB, free: 57.06 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005483/0.2414, allocations: 302.7 kB / 0.908 GB, free: 56.76 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.741e-05/0.2415, allocations: 24 kB / 0.908 GB, free: 56.74 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005192/0.242, allocations: 183.8 kB / 0.9082 GB, free: 56.56 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.2422, allocations: 151.4 kB / 0.9084 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.2423, allocations: 129.4 kB / 0.9085 GB, free: 56.28 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0008646/0.2432, allocations: 0.7249 MB / 0.9092 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2432, allocations: 4 kB / 0.9092 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.274e-06/0.2433, allocations: 0 / 0.9092 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.869e-06/0.2433, allocations: 0 / 0.9092 GB, free: 55.55 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.002238/0.2455, allocations: 0.8287 MB / 0.91 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.2456, allocations: 8.031 kB / 0.91 GB, free: 54.65 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009999/0.2466, allocations: 132.1 kB / 0.9101 GB, free: 54.52 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007795/0.2474, allocations: 427.2 kB / 0.9105 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.01e-05/0.2475, allocations: 41.36 kB / 0.9106 GB, free: 54.03 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.2476, allocations: 48.38 kB / 0.9106 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.2492, allocations: 0.6929 MB / 0.9113 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.2492, allocations: 7.922 kB / 0.9113 GB, free: 53.24 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-05/0.2493, allocations: 27.98 kB / 0.9113 GB, free: 53.21 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.008e-05/0.2494, allocations: 44.97 kB / 0.9114 GB, free: 53.17 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001608/0.2511, allocations: 0.5699 MB / 0.9119 GB, free: 52.6 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004397/0.2555, allocations: 2.904 MB / 0.9148 GB, free: 49.45 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001553/0.2571, allocations: 0.5677 MB / 0.9153 GB, free: 48.87 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000659/0.2578, allocations: 261.4 kB / 0.9156 GB, free: 48.61 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004978/0.2583, allocations: 0.5583 MB / 0.9161 GB, free: 47.92 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009222/0.2592, allocations: 413.4 kB / 0.9165 GB, free: 47.5 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.987e-06/0.2592, allocations: 0 / 0.9165 GB, free: 47.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.002205/0.2615, allocations: 0.7435 MB / 0.9172 GB, free: 46.75 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.2615, allocations: 89.03 kB / 0.9173 GB, free: 46.64 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004365/0.262, allocations: 349.6 kB / 0.9177 GB, free: 46.29 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.347e-05/0.2621, allocations: 45.58 kB / 0.9177 GB, free: 46.24 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.2623, allocations: 284.6 kB / 0.918 GB, free: 45.96 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.2624, allocations: 153.8 kB / 0.9181 GB, free: 45.8 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.937e-05/0.2625, allocations: 12 kB / 0.9181 GB, free: 45.79 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.263e-05/0.2626, allocations: 350.8 kB / 0.9185 GB, free: 45.44 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007071/0.2633, allocations: 233 kB / 0.9187 GB, free: 45.21 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007488/0.2641, allocations: 362.7 kB / 0.919 GB, free: 44.82 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007355/0.2648, allocations: 289.6 kB / 0.9193 GB, free: 44.53 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.2649, allocations: 4 kB / 0.9193 GB, free: 44.52 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001832/0.2667, allocations: 0.6833 MB / 0.92 GB, free: 43.83 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.2669, allocations: 197 kB / 0.9202 GB, free: 43.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.2669, allocations: 4 kB / 0.9202 GB, free: 43.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.723e-05/0.2669, allocations: 4 kB / 0.9202 GB, free: 43.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009602/0.2679, allocations: 111.8 kB / 0.9203 GB, free: 43.47 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.2679, allocations: 7.938 kB / 0.9203 GB, free: 43.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008489/0.2688, allocations: 71.62 kB / 0.9204 GB, free: 43.39 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/0.2689, allocations: 23.94 kB / 0.9204 GB, free: 43.37 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.2689, allocations: 4 kB / 0.9204 GB, free: 43.37 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001575/0.2705, allocations: 0.5796 MB / 0.921 GB, free: 42.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-06/0.2705, allocations: 3.984 kB / 0.921 GB, free: 42.78 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.2705, allocations: 8.062 kB / 0.921 GB, free: 42.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007832/0.2713, allocations: 103.8 kB / 0.9211 GB, free: 42.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.2714, allocations: 8 kB / 0.9211 GB, free: 42.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000736/0.2721, allocations: 67.67 kB / 0.9211 GB, free: 42.59 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.386e-05/0.2722, allocations: 28 kB / 0.9212 GB, free: 42.57 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.0004466/0.2726, allocations: 295.2 kB / 0.9215 GB, free: 42.27 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.2728, allocations: 47.38 kB / 0.9215 GB, free: 42.22 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.2744, allocations: 0.5917 MB / 0.9221 GB, free: 41.62 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.2744, allocations: 3.984 kB / 0.9221 GB, free: 41.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2744, allocations: 0 / 0.9221 GB, free: 41.62 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000285/0.2747, allocations: 176.4 kB / 0.9222 GB, free: 41.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.2749, allocations: 12 kB / 0.9223 GB, free: 41.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007688/0.2756, allocations: 59.91 kB / 0.9223 GB, free: 41.36 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.2758, allocations: 47.88 kB / 0.9224 GB, free: 41.31 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002113/0.2779, allocations: 0.7497 MB / 0.9231 GB, free: 40.55 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.00306/0.2811, allocations: 1.12 MB / 0.9242 GB, free: 39.42 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001226/0.2823, allocations: 267.8 kB / 0.9244 GB, free: 39.16 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0005951/0.283, allocations: 243.2 kB / 0.9247 GB, free: 38.92 MB / 0.6042 GB Notification: Performance of Backend: time 1.703e-06/0.283, allocations: 0 / 0.9247 GB, free: 38.92 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.005243/0.2883, allocations: 0.8956 MB / 0.9255 GB, free: 38 MB / 0.6042 GB Notification: Performance of SimCode: time 0.004511/0.2929, allocations: 1.628 MB / 0.9271 GB, free: 36.32 MB / 0.6042 GB Notification: Performance of Templates: time 0.02784/0.3208, allocations: 10.76 MB / 0.9376 GB, free: 25.64 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)