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.692/1.692, allocations: 288.4 MB / 303.4 MB, free: 8.062 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.001104/0.001105, allocations: 182.1 kB / 372 MB, free: 10.27 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.811/1.811, allocations: 205.4 MB / 0.6307 GB, free: 9.895 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.000976/0.000976, allocations: 92.88 kB / 0.7441 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004608/0.0004608, allocations: 11.62 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2966, allocations: 115.3 MB / 0.9796 GB, free: 27.64 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004719/0.3014, allocations: 3.863 MB / 0.9834 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003067/0.3045, allocations: 2.067 MB / 0.9854 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/0.3047, allocations: 8 kB / 0.9854 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000234/0.3049, allocations: 67.36 kB / 0.9855 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0005341/0.3055, allocations: 254.6 kB / 0.9857 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006468/0.3061, allocations: 297.2 kB / 0.986 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0005741/0.3067, allocations: 0.8294 MB / 0.9868 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009691/0.3077, allocations: 0.722 MB / 0.9875 GB, free: 19.48 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002571/0.308, allocations: 227 kB / 0.9877 GB, free: 19.26 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000363/0.3083, allocations: 302.7 kB / 0.988 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.531e-05/0.3084, allocations: 20 kB / 0.988 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000304/0.3087, allocations: 191.8 kB / 0.9882 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.3088, allocations: 147.5 kB / 0.9883 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.777e-05/0.309, allocations: 125.4 kB / 0.9885 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005542/0.3095, allocations: 0.7365 MB / 0.9892 GB, free: 17.74 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3095, allocations: 0 / 0.9892 GB, free: 17.74 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3095, allocations: 0 / 0.9892 GB, free: 17.74 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.3096, allocations: 3.938 kB / 0.9892 GB, free: 17.74 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.001506/0.3111, allocations: 0.8248 MB / 0.99 GB, free: 16.86 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.3111, allocations: 12.03 kB / 0.99 GB, free: 16.84 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006139/0.3117, allocations: 142.9 kB / 0.9901 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005634/0.3123, allocations: 417.9 kB / 0.9905 GB, free: 16.25 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.067e-05/0.3124, allocations: 41 kB / 0.9906 GB, free: 16.21 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.202e-05/0.3125, allocations: 55.98 kB / 0.9906 GB, free: 16.16 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.3136, allocations: 0.6848 MB / 0.9913 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.3136, allocations: 8 kB / 0.9913 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-05/0.3137, allocations: 23.98 kB / 0.9913 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.85e-05/0.3137, allocations: 52.97 kB / 0.9914 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000951/0.3147, allocations: 0.562 MB / 0.9919 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002761/0.3175, allocations: 2.916 MB / 0.9948 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000931/0.3184, allocations: 0.5608 MB / 0.9953 GB, free: 11.06 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003593/0.3188, allocations: 261.6 kB / 0.9956 GB, free: 10.8 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004568/0.3192, allocations: 0.5583 MB / 0.9961 GB, free: 10.11 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006174/0.3199, allocations: 400.6 kB / 0.9965 GB, free: 9.699 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 2.024e-06/0.3199, allocations: 3.938 kB / 0.9965 GB, free: 9.695 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001337/0.3212, allocations: 0.7497 MB / 0.9972 GB, free: 8.938 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.3213, allocations: 81.11 kB / 0.9973 GB, free: 8.84 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003172/0.3216, allocations: 345.6 kB / 0.9976 GB, free: 8.5 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.3217, allocations: 41.7 kB / 0.9977 GB, free: 8.453 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.3218, allocations: 288.4 kB / 0.998 GB, free: 8.164 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.322, allocations: 146 kB / 0.9981 GB, free: 8.02 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.322, allocations: 16.12 kB / 0.9981 GB, free: 8.004 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.3221, allocations: 350.8 kB / 0.9984 GB, free: 7.652 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003832/0.3225, allocations: 241 kB / 0.9987 GB, free: 7.418 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004494/0.323, allocations: 364.7 kB / 0.999 GB, free: 7.016 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004158/0.3234, allocations: 286.6 kB / 0.9993 GB, free: 6.73 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3234, allocations: 0 / 0.9993 GB, free: 6.73 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009859/0.3244, allocations: 0.6946 MB / 1 GB, free: 6.023 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.957e-05/0.3245, allocations: 197 kB / 1 GB, free: 5.785 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.3245, allocations: 0 / 1 GB, free: 5.785 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.3246, allocations: 8 kB / 1 GB, free: 5.777 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004615/0.325, allocations: 107.8 kB / 1 GB, free: 5.672 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.3251, allocations: 7.953 kB / 1 GB, free: 5.664 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.3255, allocations: 83.47 kB / 1 GB, free: 5.582 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.3255, allocations: 20 kB / 1 GB, free: 5.562 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.033e-06/0.3255, allocations: 9.719 kB / 1 GB, free: 5.555 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008976/0.3264, allocations: 0.576 MB / 1.001 GB, free: 4.973 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3265, allocations: 8.031 kB / 1.001 GB, free: 4.965 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.14e-06/0.3265, allocations: 4 kB / 1.001 GB, free: 4.961 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.3268, allocations: 107.9 kB / 1.001 GB, free: 4.855 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.3269, allocations: 7.938 kB / 1.001 GB, free: 4.848 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000336/0.3272, allocations: 67.55 kB / 1.001 GB, free: 4.781 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/0.3272, allocations: 16 kB / 1.001 GB, free: 4.766 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.0002764/0.3275, allocations: 307.2 kB / 1.001 GB, free: 4.457 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.102e-05/0.3276, allocations: 43.53 kB / 1.001 GB, free: 4.414 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009546/0.3286, allocations: 0.5891 MB / 1.002 GB, free: 3.816 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.3286, allocations: 8 kB / 1.002 GB, free: 3.809 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.3286, allocations: 0 / 1.002 GB, free: 3.809 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3286, allocations: 3.984 kB / 1.002 GB, free: 3.805 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005762/0.3292, allocations: 0.6103 MB / 1.003 GB, free: 3.145 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3292, allocations: 7.891 kB / 1.003 GB, free: 3.137 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.3297, allocations: 99.84 kB / 1.003 GB, free: 3.039 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/0.3297, allocations: 7.984 kB / 1.003 GB, free: 3.031 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.3297, allocations: 12 kB / 1.003 GB, free: 3.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3298, allocations: 0 / 1.003 GB, free: 3.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.3298, allocations: 7.938 kB / 1.003 GB, free: 3.012 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.3311, allocations: 0.8862 MB / 1.004 GB, free: 2.102 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001754/0.3313, allocations: 188.4 kB / 1.004 GB, free: 1.898 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.214e-05/0.3314, allocations: 12 kB / 1.004 GB, free: 1.887 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.3317, allocations: 31.95 kB / 1.004 GB, free: 1.855 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.3318, allocations: 47.92 kB / 1.004 GB, free: 1.809 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.329e-05/0.3318, allocations: 20 kB / 1.004 GB, free: 1.789 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002169/0.3321, allocations: 243.2 kB / 1.004 GB, free: 1.551 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.3e-07/0.3321, allocations: 0 / 1.004 GB, free: 1.551 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006212/0.3327, allocations: 267.1 kB / 1.004 GB, free: 1.289 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.0002106/0.3329, allocations: 126.3 kB / 1.005 GB, free: 1.156 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001378/0.3343, allocations: 0.9714 MB / 1.006 GB, free: 164 kB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3343, allocations: 0.8125 kB / 1.006 GB, free: 164 kB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004565/0.3348, allocations: 279.6 kB / 1.006 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007966/0.3356, allocations: 166.6 kB / 1.006 GB, free: 15.73 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002044/0.3376, allocations: 1.252 MB / 1.007 GB, free: 14.45 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005302/0.3382, allocations: 0.8951 MB / 1.008 GB, free: 13.53 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0005065/0.3387, allocations: 144.4 kB / 1.008 GB, free: 13.38 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.3389, allocations: 39.44 kB / 1.008 GB, free: 13.34 MB / 0.6355 GB Notification: Performance of SimCode: time 4.21e-07/0.3389, allocations: 3.938 kB / 1.008 GB, free: 13.34 MB / 0.6355 GB Notification: Performance of Templates: time 0.01373/0.3526, allocations: 7.572 MB / 1.016 GB, free: 5.855 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)