Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.338/1.338, allocations: 251.5 MB / 267.4 MB, free: 11.05 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.001093/0.001093, allocations: 183 kB / 326.5 MB, free: 2.676 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.632/1.632, allocations: 205 MB / 0.5766 GB, free: 20.95 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.0007173/0.0007172, allocations: 107.7 kB / 0.6804 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003196/0.0003197, allocations: 8.969 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2227, allocations: 105.4 MB / 0.8967 GB, free: 68.13 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.006193/0.229, allocations: 5.709 MB / 0.9023 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.003264/0.2323, allocations: 2.214 MB / 0.9045 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002908/0.2326, allocations: 11.94 kB / 0.9045 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.2336, allocations: 398.5 kB / 0.9049 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0005918/0.2342, allocations: 310.5 kB / 0.9052 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007351/0.235, allocations: 369.9 kB / 0.9055 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006889/0.2357, allocations: 0.9582 MB / 0.9065 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006773/0.2364, allocations: 0.5184 MB / 0.907 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.2366, allocations: 234.9 kB / 0.9072 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003539/0.237, allocations: 318.5 kB / 0.9075 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.517e-05/0.237, allocations: 28 kB / 0.9075 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004671/0.2375, allocations: 323.4 kB / 0.9078 GB, free: 56.73 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.2377, allocations: 147.4 kB / 0.908 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.2379, allocations: 270.5 kB / 0.9082 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0005531/0.2384, allocations: 0.7402 MB / 0.909 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2384, allocations: 3.938 kB / 0.909 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.234e-06/0.2384, allocations: 0 / 0.909 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.2384, allocations: 0 / 0.909 GB, free: 55.58 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.001358/0.2398, allocations: 0.8171 MB / 0.9098 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2399, allocations: 12.03 kB / 0.9098 GB, free: 54.69 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006043/0.2405, allocations: 136 kB / 0.9099 GB, free: 54.56 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004643/0.2409, allocations: 438.8 kB / 0.9103 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.705e-05/0.241, allocations: 45.36 kB / 0.9104 GB, free: 54.05 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.939e-05/0.2411, allocations: 48.38 kB / 0.9104 GB, free: 54 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009262/0.242, allocations: 0.6929 MB / 0.9111 GB, free: 53.27 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.242, allocations: 0 / 0.9111 GB, free: 53.27 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.341e-05/0.2421, allocations: 31.97 kB / 0.9111 GB, free: 53.24 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.642e-05/0.2421, allocations: 48.98 kB / 0.9112 GB, free: 53.2 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008675/0.243, allocations: 0.5737 MB / 0.9117 GB, free: 52.62 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002591/0.2456, allocations: 2.904 MB / 0.9146 GB, free: 49.47 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008723/0.2465, allocations: 0.5676 MB / 0.9151 GB, free: 48.89 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003579/0.2469, allocations: 261.6 kB / 0.9154 GB, free: 48.62 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003357/0.2472, allocations: 0.5583 MB / 0.9159 GB, free: 47.94 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005676/0.2478, allocations: 412.1 kB / 0.9163 GB, free: 47.52 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 1.663e-06/0.2478, allocations: 0 / 0.9163 GB, free: 47.52 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001259/0.2491, allocations: 0.7433 MB / 0.917 GB, free: 46.77 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.2491, allocations: 85.11 kB / 0.9171 GB, free: 46.66 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002894/0.2494, allocations: 349.5 kB / 0.9174 GB, free: 46.32 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/0.2495, allocations: 45.7 kB / 0.9175 GB, free: 46.27 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.2496, allocations: 280.6 kB / 0.9177 GB, free: 45.98 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.352e-05/0.2497, allocations: 157.8 kB / 0.9179 GB, free: 45.83 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.2498, allocations: 53.69 kB / 0.9179 GB, free: 45.77 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.538e-05/0.2499, allocations: 358.7 kB / 0.9183 GB, free: 45.41 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003764/0.2503, allocations: 237.1 kB / 0.9185 GB, free: 45.18 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004229/0.2507, allocations: 370.5 kB / 0.9189 GB, free: 44.77 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007413/0.2514, allocations: 0.5789 MB / 0.9194 GB, free: 44.14 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2515, allocations: 0 / 0.9194 GB, free: 44.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000988/0.2524, allocations: 0.6908 MB / 0.9201 GB, free: 43.44 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.804e-05/0.2525, allocations: 197 kB / 0.9203 GB, free: 43.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.2526, allocations: 8 kB / 0.9203 GB, free: 43.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.2526, allocations: 4 kB / 0.9203 GB, free: 43.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004544/0.253, allocations: 107.9 kB / 0.9204 GB, free: 43.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.2531, allocations: 7.938 kB / 0.9204 GB, free: 43.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004192/0.2535, allocations: 75.47 kB / 0.9205 GB, free: 43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-05/0.2535, allocations: 20 kB / 0.9205 GB, free: 42.98 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.623e-06/0.2535, allocations: 4 kB / 0.9205 GB, free: 42.98 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008407/0.2544, allocations: 0.5758 MB / 0.9211 GB, free: 42.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.2544, allocations: 4 kB / 0.9211 GB, free: 42.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.911e-06/0.2544, allocations: 12.25 kB / 0.9211 GB, free: 42.38 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003537/0.2548, allocations: 99.81 kB / 0.9212 GB, free: 42.29 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2548, allocations: 4.375 kB / 0.9212 GB, free: 42.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003512/0.2552, allocations: 75.48 kB / 0.9213 GB, free: 42.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.2552, allocations: 20 kB / 0.9213 GB, free: 42.19 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 (bat_ideal.cha.overCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.underCharged,$whenCondition2,bat_loss_acdc.cha.overCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.underCharged,$whenCondition3,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition4,pow.count,$PRE.pow.count,pow.T_start,$PRE.pow.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002574/0.2555, allocations: 307.1 kB / 0.9216 GB, free: 41.88 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.972e-05/0.2555, allocations: 39.58 kB / 0.9216 GB, free: 41.84 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009404/0.2565, allocations: 0.5955 MB / 0.9222 GB, free: 41.23 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.2565, allocations: 8 kB / 0.9222 GB, free: 41.23 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2565, allocations: 4 kB / 0.9222 GB, free: 41.22 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.2565, allocations: 3.984 kB / 0.9222 GB, free: 41.22 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005557/0.2571, allocations: 0.6218 MB / 0.9228 GB, free: 40.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2571, allocations: 0 / 0.9228 GB, free: 40.55 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004709/0.2576, allocations: 99.84 kB / 0.9229 GB, free: 40.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.89e-06/0.2576, allocations: 7.984 kB / 0.9229 GB, free: 40.44 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.113e-05/0.2576, allocations: 12 kB / 0.9229 GB, free: 40.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.2576, allocations: 0 / 0.9229 GB, free: 40.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2576, allocations: 0 / 0.9229 GB, free: 40.43 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.2589, allocations: 0.9018 MB / 0.9238 GB, free: 39.51 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.259, allocations: 172.5 kB / 0.924 GB, free: 39.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.922e-05/0.2591, allocations: 12 kB / 0.924 GB, free: 39.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.2594, allocations: 35.95 kB / 0.924 GB, free: 39.27 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.2596, allocations: 47.88 kB / 0.9241 GB, free: 39.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.031e-05/0.2596, allocations: 19.98 kB / 0.9241 GB, free: 39.21 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001941/0.2598, allocations: 251.1 kB / 0.9243 GB, free: 38.96 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2598, allocations: 0 / 0.9243 GB, free: 38.96 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0006283/0.2604, allocations: 271.1 kB / 0.9246 GB, free: 38.7 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001912/0.2606, allocations: 123.2 kB / 0.9247 GB, free: 38.57 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001341/0.262, allocations: 0.9796 MB / 0.9257 GB, free: 37.56 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.262, allocations: 0 / 0.9257 GB, free: 37.56 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003946/0.2624, allocations: 280.4 kB / 0.9259 GB, free: 37.29 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007336/0.2631, allocations: 157.5 kB / 0.9261 GB, free: 37.14 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.2648, allocations: 1.325 MB / 0.9274 GB, free: 35.78 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.2652, allocations: 0.895 MB / 0.9282 GB, free: 34.86 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001604/0.2653, allocations: 39.44 kB / 0.9283 GB, free: 34.82 MB / 0.6042 GB Notification: Performance of SimCode: time 4.5e-07/0.2653, allocations: 0 / 0.9283 GB, free: 34.82 MB / 0.6042 GB Notification: Performance of Templates: time 0.009288/0.2746, allocations: 7.781 MB / 0.9359 GB, free: 27.1 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)