Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.677/2.677, allocations: 287.3 MB / 302.3 MB, free: 8.344 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.00152/0.00152, allocations: 184.9 kB / 370.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.256/2.256, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001143/0.001143, allocations: 90.81 kB / 0.7428 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004986/0.0004988, allocations: 12.59 kB / 0.8656 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2655, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.009639/0.2752, allocations: 3.786 MB / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.007353/0.2826, allocations: 2.087 MB / 0.9839 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006516/0.2833, allocations: 7.938 kB / 0.9839 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0004677/0.2839, allocations: 59.55 kB / 0.984 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.001702/0.2856, allocations: 243.2 kB / 0.9842 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.002113/0.2878, allocations: 305.4 kB / 0.9845 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001747/0.2895, allocations: 471 kB / 0.985 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002615/0.2922, allocations: 0.7222 MB / 0.9857 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007874/0.2931, allocations: 215.1 kB / 0.9859 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008067/0.2939, allocations: 243 kB / 0.9861 GB, free: 20.22 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001722/0.2941, allocations: 20 kB / 0.9861 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009035/0.295, allocations: 179.7 kB / 0.9863 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0003123/0.2954, allocations: 139.5 kB / 0.9864 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0002833/0.2957, allocations: 133.4 kB / 0.9866 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.001767/0.2975, allocations: 0.7249 MB / 0.9873 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2976, allocations: 0 / 0.9873 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.496e-06/0.2976, allocations: 0 / 0.9873 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.055e-05/0.2976, allocations: 0 / 0.9873 GB, free: 19.03 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.003314/0.301, allocations: 0.8325 MB / 0.9881 GB, free: 18.14 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.301, allocations: 12.03 kB / 0.9881 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001813/0.3029, allocations: 143 kB / 0.9882 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.3043, allocations: 413.9 kB / 0.9886 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.912e-05/0.3045, allocations: 44.98 kB / 0.9887 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000221/0.3047, allocations: 51.94 kB / 0.9887 GB, free: 17.45 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002827/0.3076, allocations: 0.6887 MB / 0.9894 GB, free: 16.73 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.675e-05/0.3077, allocations: 4 kB / 0.9894 GB, free: 16.72 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/0.3078, allocations: 20 kB / 0.9894 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001592/0.308, allocations: 52.97 kB / 0.9895 GB, free: 16.65 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002996/0.311, allocations: 0.5737 MB / 0.99 GB, free: 16.08 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008178/0.3193, allocations: 2.908 MB / 0.9929 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002728/0.3221, allocations: 0.5561 MB / 0.9934 GB, free: 12.35 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000773/0.3229, allocations: 0.5746 MB / 0.994 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001608/0.3245, allocations: 392.5 kB / 0.9943 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 6.262e-06/0.3246, allocations: 0 / 0.9943 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.003644/0.3283, allocations: 0.7497 MB / 0.9951 GB, free: 10.48 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/0.3284, allocations: 81.11 kB / 0.9952 GB, free: 10.39 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007572/0.3292, allocations: 349.7 kB / 0.9955 GB, free: 10.04 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0002108/0.3294, allocations: 41.7 kB / 0.9955 GB, free: 9.996 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003534/0.3298, allocations: 280.4 kB / 0.9958 GB, free: 9.715 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002645/0.3301, allocations: 146 kB / 0.9959 GB, free: 9.57 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.852e-05/0.3302, allocations: 12 kB / 0.9959 GB, free: 9.559 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3303, allocations: 358.7 kB / 0.9963 GB, free: 9.199 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.3315, allocations: 240.9 kB / 0.9965 GB, free: 8.965 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.3329, allocations: 362.7 kB / 0.9969 GB, free: 8.566 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.3343, allocations: 282.4 kB / 0.9971 GB, free: 8.285 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.3343, allocations: 3.938 kB / 0.9971 GB, free: 8.281 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003082/0.3374, allocations: 0.695 MB / 0.9978 GB, free: 7.574 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003873/0.3379, allocations: 1.07 MB / 0.9989 GB, free: 6.418 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.3379, allocations: 4 kB / 0.9989 GB, free: 6.414 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.474e-05/0.338, allocations: 4 kB / 0.9989 GB, free: 6.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.3396, allocations: 111.8 kB / 0.999 GB, free: 6.301 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.588e-05/0.3396, allocations: 8 kB / 0.999 GB, free: 6.293 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.341, allocations: 83.42 kB / 0.9991 GB, free: 6.211 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.3412, allocations: 20 kB / 0.9991 GB, free: 6.191 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.3412, allocations: 4 kB / 0.9991 GB, free: 6.188 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002672/0.3439, allocations: 0.5794 MB / 0.9996 GB, free: 5.602 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.344, allocations: 0 / 0.9996 GB, free: 5.602 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.344, allocations: 8 kB / 0.9997 GB, free: 5.594 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.3454, allocations: 103.8 kB / 0.9998 GB, free: 5.492 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.567e-05/0.3455, allocations: 4 kB / 0.9998 GB, free: 5.488 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.3469, allocations: 68.17 kB / 0.9998 GB, free: 5.422 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001858/0.3471, allocations: 27.98 kB / 0.9999 GB, free: 5.395 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.0008699/0.348, allocations: 295.4 kB / 1 GB, free: 5.098 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002292/0.3483, allocations: 51.42 kB / 1 GB, free: 5.047 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002942/0.3513, allocations: 0.593 MB / 1.001 GB, free: 4.445 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.946e-05/0.3513, allocations: 4 kB / 1.001 GB, free: 4.441 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.405e-05/0.3514, allocations: 4 kB / 1.001 GB, free: 4.438 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.3514, allocations: 0 / 1.001 GB, free: 4.438 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001678/0.3531, allocations: 0.6103 MB / 1.001 GB, free: 3.777 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/0.3532, allocations: 0 / 1.001 GB, free: 3.777 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/0.355, allocations: 115.7 kB / 1.001 GB, free: 3.664 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-05/0.355, allocations: 0 / 1.001 GB, free: 3.664 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/0.3552, allocations: 8 kB / 1.001 GB, free: 3.656 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-05/0.3552, allocations: 4 kB / 1.001 GB, free: 3.652 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3552, allocations: 0 / 1.001 GB, free: 3.652 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003862/0.3591, allocations: 0.9038 MB / 1.002 GB, free: 2.719 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000542/0.3597, allocations: 176.4 kB / 1.003 GB, free: 2.527 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001761/0.3599, allocations: 12 kB / 1.003 GB, free: 2.516 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009113/0.3609, allocations: 43.95 kB / 1.003 GB, free: 2.473 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002961/0.3612, allocations: 47.92 kB / 1.003 GB, free: 2.426 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.188e-05/0.3613, allocations: 16 kB / 1.003 GB, free: 2.41 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0005578/0.3619, allocations: 251.1 kB / 1.003 GB, free: 2.164 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9.72e-07/0.3619, allocations: 0 / 1.003 GB, free: 2.164 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001623/0.3636, allocations: 259.1 kB / 1.003 GB, free: 1.91 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003863/0.364, allocations: 127.2 kB / 1.003 GB, free: 1.773 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.003899/0.3679, allocations: 0.9708 MB / 1.004 GB, free: 0.7773 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.368, allocations: 0 / 1.004 GB, free: 0.7773 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.3693, allocations: 283.6 kB / 1.004 GB, free: 0.5 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/0.3713, allocations: 157.5 kB / 1.005 GB, free: 356 kB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004716/0.3761, allocations: 1.252 MB / 1.006 GB, free: 15.07 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000993/0.3771, allocations: 0.8989 MB / 1.007 GB, free: 14.14 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.001527/0.3787, allocations: 153 kB / 1.007 GB, free: 13.99 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003882/0.3791, allocations: 35.44 kB / 1.007 GB, free: 13.96 MB / 0.6355 GB Notification: Performance of SimCode: time 1.443e-06/0.3792, allocations: 0 / 1.007 GB, free: 13.96 MB / 0.6355 GB Notification: Performance of Templates: time 0.03503/0.4142, allocations: 7.548 MB / 1.014 GB, free: 6.477 MB / 0.6355 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)