Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.917/1.917, allocations: 288.4 MB / 304.3 MB, free: 8.109 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.0009398/0.0009403, allocations: 176.5 kB / 372.9 MB, free: 10.16 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.638/1.638, allocations: 205.4 MB / 0.6316 GB, free: 9.926 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.0008701/0.0008701, allocations: 96.19 kB / 0.745 GB, free: 5.82 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003882/0.0003882, allocations: 15.81 kB / 0.8681 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.231, allocations: 115.3 MB / 0.9807 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.003873/0.235, allocations: 3.863 MB / 0.9845 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002761/0.2378, allocations: 2.075 MB / 0.9865 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.238, allocations: 11.94 kB / 0.9866 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.2383, allocations: 63.44 kB / 0.9866 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0006127/0.2389, allocations: 290.6 kB / 0.9869 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007193/0.2396, allocations: 300.1 kB / 0.9872 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006131/0.2402, allocations: 0.8333 MB / 0.988 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001013/0.2413, allocations: 0.7825 MB / 0.9888 GB, free: 19.08 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002426/0.2415, allocations: 231 kB / 0.989 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003502/0.2419, allocations: 314.7 kB / 0.9893 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.056e-05/0.2419, allocations: 20 kB / 0.9893 GB, free: 18.52 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005003/0.2424, allocations: 319.4 kB / 0.9896 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.2426, allocations: 143.5 kB / 0.9897 GB, free: 18.07 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0002067/0.2428, allocations: 288.2 kB / 0.99 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005568/0.2434, allocations: 0.7327 MB / 0.9907 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.2434, allocations: 0 / 0.9907 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.834e-06/0.2434, allocations: 0 / 0.9907 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.2434, allocations: 4 kB / 0.9907 GB, free: 17.04 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.001306/0.2447, allocations: 0.8248 MB / 0.9915 GB, free: 16.16 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.2448, allocations: 12.03 kB / 0.9915 GB, free: 16.15 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005838/0.2454, allocations: 132 kB / 0.9917 GB, free: 16.02 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004499/0.2458, allocations: 438.9 kB / 0.9921 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.545e-05/0.2459, allocations: 33.38 kB / 0.9921 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.109e-05/0.2459, allocations: 56.36 kB / 0.9922 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009498/0.2469, allocations: 0.7007 MB / 0.9929 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.2469, allocations: 0 / 0.9929 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.095e-05/0.247, allocations: 27.98 kB / 0.9929 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.065e-05/0.247, allocations: 44.97 kB / 0.9929 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008801/0.2479, allocations: 0.5776 MB / 0.9935 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002611/0.2506, allocations: 2.904 MB / 0.9963 GB, free: 10.93 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008628/0.2514, allocations: 0.5753 MB / 0.9969 GB, free: 10.34 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003578/0.2518, allocations: 253.7 kB / 0.9971 GB, free: 10.09 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003314/0.2521, allocations: 0.5778 MB / 0.9977 GB, free: 9.379 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000544/0.2527, allocations: 400.2 kB / 0.9981 GB, free: 8.969 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 2.845e-06/0.2527, allocations: 0 / 0.9981 GB, free: 8.969 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001227/0.2539, allocations: 0.7431 MB / 0.9988 GB, free: 8.219 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.036e-05/0.254, allocations: 85.11 kB / 0.9989 GB, free: 8.117 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003058/0.2543, allocations: 349.7 kB / 0.9992 GB, free: 7.773 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.197e-05/0.2544, allocations: 37.7 kB / 0.9993 GB, free: 7.73 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.2545, allocations: 288.4 kB / 0.9995 GB, free: 7.441 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.748e-05/0.2546, allocations: 145.9 kB / 0.9997 GB, free: 7.297 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-05/0.2546, allocations: 8 kB / 0.9997 GB, free: 7.289 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.268e-05/0.2547, allocations: 354.8 kB / 1 GB, free: 6.934 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/0.2551, allocations: 237 kB / 1 GB, free: 6.703 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004178/0.2555, allocations: 366.6 kB / 1.001 GB, free: 6.297 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007198/0.2562, allocations: 0.5742 MB / 1.001 GB, free: 5.68 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2562, allocations: 4 kB / 1.001 GB, free: 5.676 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009543/0.2572, allocations: 0.6754 MB / 1.002 GB, free: 4.988 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.94e-05/0.2573, allocations: 197 kB / 1.002 GB, free: 4.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.2573, allocations: 4.188 kB / 1.002 GB, free: 4.746 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.2573, allocations: 4 kB / 1.002 GB, free: 4.742 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.2578, allocations: 115.8 kB / 1.002 GB, free: 4.629 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.2578, allocations: 4 kB / 1.002 GB, free: 4.625 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004854/0.2583, allocations: 79.47 kB / 1.002 GB, free: 4.547 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.2584, allocations: 23.94 kB / 1.002 GB, free: 4.523 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.112e-06/0.2584, allocations: 4 kB / 1.002 GB, free: 4.52 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008427/0.2592, allocations: 0.5796 MB / 1.003 GB, free: 3.934 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.2593, allocations: 0 / 1.003 GB, free: 3.934 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.041e-06/0.2593, allocations: 11.94 kB / 1.003 GB, free: 3.922 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003609/0.2596, allocations: 95.88 kB / 1.003 GB, free: 3.828 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.2596, allocations: 11.94 kB / 1.003 GB, free: 3.816 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003461/0.26, allocations: 67.55 kB / 1.003 GB, free: 3.75 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.135e-05/0.26, allocations: 28.11 kB / 1.003 GB, free: 3.723 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.0002496/0.2603, allocations: 295.2 kB / 1.003 GB, free: 3.426 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.618e-05/0.2604, allocations: 43.47 kB / 1.003 GB, free: 3.383 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009135/0.2613, allocations: 0.5838 MB / 1.004 GB, free: 2.789 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.2613, allocations: 3.984 kB / 1.004 GB, free: 2.785 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.2613, allocations: 0 / 1.004 GB, free: 2.785 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000168/0.2615, allocations: 172.5 kB / 1.004 GB, free: 2.598 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.934e-05/0.2616, allocations: 12 kB / 1.004 GB, free: 2.586 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003845/0.2619, allocations: 59.91 kB / 1.004 GB, free: 2.527 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.2621, allocations: 55.8 kB / 1.004 GB, free: 2.473 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001126/0.2633, allocations: 0.7536 MB / 1.005 GB, free: 1.711 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001235/0.2645, allocations: 1.124 MB / 1.006 GB, free: 0.5664 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003602/0.2649, allocations: 259.9 kB / 1.006 GB, free: 320 kB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001996/0.2651, allocations: 243.2 kB / 1.006 GB, free: 76 kB / 0.6198 GB Notification: Performance of Backend: time 5.11e-07/0.2651, allocations: 0 / 1.006 GB, free: 76 kB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002078/0.2672, allocations: 0.9734 MB / 1.007 GB, free: 15.07 MB / 0.6355 GB Notification: Performance of SimCode: time 0.002112/0.2693, allocations: 1.619 MB / 1.009 GB, free: 13.4 MB / 0.6355 GB Notification: Performance of Templates: time 0.01984/0.2892, allocations: 10.87 MB / 1.02 GB, free: 2.629 MB / 0.6355 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)