Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000921/0.0009215, allocations: 86.41 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009147/0.0009147, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.575/1.575, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.696/1.696, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005167/0.0005168, allocations: 15.44 kB / 0.6737 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2688, allocations: 116.3 MB / 0.7873 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004502/0.2733, allocations: 3.867 MB / 0.7911 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003316/0.2767, allocations: 2.067 MB / 0.7931 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/0.2769, allocations: 11.94 kB / 0.7931 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002341/0.2772, allocations: 63.42 kB / 0.7932 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0006118/0.2778, allocations: 258.6 kB / 0.7934 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007188/0.2785, allocations: 298.7 kB / 0.7937 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007802/0.2793, allocations: 0.8255 MB / 0.7945 GB, free: 4.52 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001191/0.2805, allocations: 0.7181 MB / 0.7952 GB, free: 3.758 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003427/0.2808, allocations: 231 kB / 0.7954 GB, free: 3.531 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004519/0.2813, allocations: 306.7 kB / 0.7957 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.915e-05/0.2814, allocations: 24 kB / 0.7957 GB, free: 3.207 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000379/0.2818, allocations: 187.8 kB / 0.7959 GB, free: 3.023 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.2819, allocations: 147.5 kB / 0.7961 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.2821, allocations: 133.4 kB / 0.7962 GB, free: 2.742 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006912/0.2828, allocations: 0.7288 MB / 0.7969 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2828, allocations: 0 / 0.7969 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.906e-06/0.2828, allocations: 0 / 0.7969 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.794e-06/0.2828, allocations: 3.938 kB / 0.7969 GB, free: 2.008 MB / 0.6075 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.00153/0.2843, allocations: 0.8325 MB / 0.7977 GB, free: 1.121 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.2844, allocations: 12.02 kB / 0.7977 GB, free: 1.109 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005964/0.285, allocations: 135 kB / 0.7978 GB, free: 0.9766 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005405/0.2855, allocations: 421.9 kB / 0.7983 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.448e-05/0.2856, allocations: 40.98 kB / 0.7983 GB, free: 492 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.432e-05/0.2857, allocations: 44 kB / 0.7983 GB, free: 448 kB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.2868, allocations: 0.6965 MB / 0.799 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.2868, allocations: 0 / 0.799 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.549e-05/0.2869, allocations: 27.98 kB / 0.799 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.731e-05/0.2869, allocations: 48.97 kB / 0.7991 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009846/0.2879, allocations: 0.5698 MB / 0.7996 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00314/0.2911, allocations: 2.916 MB / 0.8025 GB, free: 11.9 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009593/0.2921, allocations: 0.5522 MB / 0.803 GB, free: 11.33 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004124/0.2925, allocations: 261.6 kB / 0.8033 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005168/0.293, allocations: 0.57 MB / 0.8038 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006264/0.2936, allocations: 396.5 kB / 0.8042 GB, free: 9.965 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=46): time 1.984e-06/0.2937, allocations: 0 / 0.8042 GB, free: 9.965 MB / 0.6231 GB Notification: Performance of matching and sorting (n=46): time 0.001318/0.295, allocations: 0.7498 MB / 0.8049 GB, free: 9.207 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.295, allocations: 85.11 kB / 0.805 GB, free: 9.105 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003454/0.2954, allocations: 341.6 kB / 0.8054 GB, free: 8.766 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.418e-05/0.2955, allocations: 49.69 kB / 0.8054 GB, free: 8.711 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.2957, allocations: 280.4 kB / 0.8057 GB, free: 8.43 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.2958, allocations: 138 kB / 0.8058 GB, free: 8.293 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.2958, allocations: 12 kB / 0.8058 GB, free: 8.281 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001734/0.296, allocations: 362.8 kB / 0.8062 GB, free: 7.918 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004277/0.2964, allocations: 240.9 kB / 0.8064 GB, free: 7.68 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004699/0.2969, allocations: 354.7 kB / 0.8067 GB, free: 7.293 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004472/0.2974, allocations: 294.2 kB / 0.807 GB, free: 7 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2974, allocations: 3.938 kB / 0.807 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001118/0.2985, allocations: 0.6835 MB / 0.8077 GB, free: 6.301 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.2986, allocations: 201 kB / 0.8079 GB, free: 6.059 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.2987, allocations: 0 / 0.8079 GB, free: 6.059 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.2987, allocations: 12 kB / 0.8079 GB, free: 6.047 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004621/0.2992, allocations: 107.8 kB / 0.808 GB, free: 5.941 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.2992, allocations: 11.95 kB / 0.808 GB, free: 5.93 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003849/0.2996, allocations: 75.47 kB / 0.8081 GB, free: 5.855 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.929e-05/0.2997, allocations: 20 kB / 0.8081 GB, free: 5.836 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 6.873e-06/0.2997, allocations: 4 kB / 0.8081 GB, free: 5.832 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009119/0.3006, allocations: 0.5794 MB / 0.8087 GB, free: 5.246 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3006, allocations: 4 kB / 0.8087 GB, free: 5.242 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.49e-06/0.3006, allocations: 4.25 kB / 0.8087 GB, free: 5.238 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003751/0.301, allocations: 107.8 kB / 0.8088 GB, free: 5.133 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.301, allocations: 4 kB / 0.8088 GB, free: 5.129 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.3014, allocations: 71.55 kB / 0.8088 GB, free: 5.059 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.3014, allocations: 23.98 kB / 0.8089 GB, free: 5.035 MB / 0.6231 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.0003057/0.3017, allocations: 299.2 kB / 0.8091 GB, free: 4.73 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.342e-05/0.3018, allocations: 43.53 kB / 0.8092 GB, free: 4.688 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.3028, allocations: 0.5852 MB / 0.8098 GB, free: 4.094 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.3029, allocations: 7.984 kB / 0.8098 GB, free: 4.086 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3029, allocations: 4 kB / 0.8098 GB, free: 4.082 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.3029, allocations: 0 / 0.8098 GB, free: 4.082 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006977/0.3036, allocations: 0.6106 MB / 0.8104 GB, free: 3.422 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3036, allocations: 3.953 kB / 0.8104 GB, free: 3.418 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004909/0.3041, allocations: 111.8 kB / 0.8105 GB, free: 3.309 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.3041, allocations: 4 kB / 0.8105 GB, free: 3.305 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.3042, allocations: 12 kB / 0.8105 GB, free: 3.293 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.3042, allocations: 0 / 0.8105 GB, free: 3.293 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3042, allocations: 0 / 0.8105 GB, free: 3.293 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.3055, allocations: 0.894 MB / 0.8114 GB, free: 2.383 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000184/0.3057, allocations: 180.4 kB / 0.8115 GB, free: 2.188 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.633e-05/0.3058, allocations: 12 kB / 0.8115 GB, free: 2.176 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.3061, allocations: 39.95 kB / 0.8116 GB, free: 2.137 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.3062, allocations: 43.92 kB / 0.8116 GB, free: 2.094 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.3062, allocations: 16 kB / 0.8116 GB, free: 2.078 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002295/0.3065, allocations: 255 kB / 0.8119 GB, free: 1.832 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3065, allocations: 0 / 0.8119 GB, free: 1.832 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000634/0.3071, allocations: 263.1 kB / 0.8121 GB, free: 1.574 MB / 0.6231 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.0001955/0.3073, allocations: 133.6 kB / 0.8123 GB, free: 1.438 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001529/0.3089, allocations: 0.9638 MB / 0.8132 GB, free: 456 kB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3089, allocations: 4 kB / 0.8132 GB, free: 452 kB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004325/0.3093, allocations: 284.1 kB / 0.8135 GB, free: 168 kB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006916/0.31, allocations: 161.4 kB / 0.8136 GB, free: 4 kB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.3118, allocations: 1.248 MB / 0.8149 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00043/0.3122, allocations: 0.8911 MB / 0.8157 GB, free: 13.8 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0004749/0.3127, allocations: 144.2 kB / 0.8159 GB, free: 13.66 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.3129, allocations: 47.42 kB / 0.8159 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of SimCode: time 2.7e-07/0.3129, allocations: 0 / 0.8159 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of Templates: time 0.01179/0.3247, allocations: 7.556 MB / 0.8233 GB, free: 6.156 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) Environment - environmentSimulation: