Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001128/0.001128, allocations: 187.8 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.456/1.456, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001625/0.001626, allocations: 118.4 kB / 248.1 MB, free: 6.328 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.17/0.17, allocations: 37.92 MB / 330.9 MB, free: 7.309 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.642e-05/1.646e-05, allocations: 0 / 390.4 MB, free: 78.25 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0916/0.09163, allocations: 53.24 MB / 443.6 MB, free: 25.11 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3373/0.429, allocations: 105.4 MB / 0.5361 GB, free: 3.07 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.4292, allocations: 90.39 kB / 0.5362 GB, free: 3.027 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06154/0.4908, allocations: 21.65 MB / 0.5573 GB, free: 0.7305 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4908, allocations: 0 / 0.5573 GB, free: 0.7305 MB / 363.1 MB Notification: Performance of Transformations before backend: time 3.724e-05/0.4909, allocations: 16 kB / 0.5573 GB, free: 0.7148 MB / 363.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.001773/0.4927, allocations: 0.9472 MB / 0.5583 GB, free: 15.77 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.4927, allocations: 8.031 kB / 0.5583 GB, free: 15.76 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006608/0.4934, allocations: 130.9 kB / 0.5584 GB, free: 15.63 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002704/0.4961, allocations: 1.132 MB / 0.5595 GB, free: 14.65 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/0.4961, allocations: 23.98 kB / 0.5595 GB, free: 14.62 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.4963, allocations: 40 kB / 0.5596 GB, free: 14.59 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001178/0.4975, allocations: 0.7416 MB / 0.5603 GB, free: 14.08 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.4987, allocations: 0.8947 MB / 0.5612 GB, free: 13.38 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.4988, allocations: 0 / 0.5612 GB, free: 13.38 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.286e-05/0.4989, allocations: 0 / 0.5612 GB, free: 13.38 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001348/0.499, allocations: 69.08 kB / 0.5612 GB, free: 13.31 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004668/0.5037, allocations: 3.152 MB / 0.5643 GB, free: 10.6 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.5047, allocations: 0.6906 MB / 0.565 GB, free: 10.11 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005535/0.5053, allocations: 448.1 kB / 0.5654 GB, free: 9.82 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.061e-05/0.5053, allocations: 11.94 kB / 0.5654 GB, free: 9.812 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.5054, allocations: 42.69 kB / 0.5655 GB, free: 9.762 MB / 379.1 MB Notification: Performance of pre-optimization done (n=77): time 2.715e-06/0.5054, allocations: 0 / 0.5655 GB, free: 9.762 MB / 379.1 MB Notification: Performance of matching and sorting (n=79): time 0.004423/0.5098, allocations: 2.482 MB / 0.5679 GB, free: 7.656 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.5099, allocations: 81.67 kB / 0.568 GB, free: 7.559 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003314/0.5102, allocations: 330.8 kB / 0.5683 GB, free: 7.297 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 4.56e-05/0.5103, allocations: 25.7 kB / 0.5683 GB, free: 7.266 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001965/0.5105, allocations: 355.9 kB / 0.5686 GB, free: 6.992 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.5107, allocations: 262.8 kB / 0.5689 GB, free: 6.762 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.832e-05/0.5107, allocations: 0 / 0.5689 GB, free: 6.762 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5108, allocations: 374.6 kB / 0.5692 GB, free: 6.414 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004561/0.5113, allocations: 350.5 kB / 0.5696 GB, free: 6.188 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005573/0.5119, allocations: 0.5112 MB / 0.5701 GB, free: 5.75 MB / 379.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.009364/0.5212, allocations: 2.907 MB / 0.5729 GB, free: 3.125 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.5213, allocations: 4 kB / 0.5729 GB, free: 3.121 MB / 379.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002055/0.5233, allocations: 1.208 MB / 0.5741 GB, free: 2.141 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.5234, allocations: 8.625 kB / 0.5741 GB, free: 2.133 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.5234, allocations: 4 kB / 0.5741 GB, free: 2.129 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000143/0.5235, allocations: 43.7 kB / 0.5742 GB, free: 2.086 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008189/0.5244, allocations: 194.4 kB / 0.5743 GB, free: 1.902 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.5254, allocations: 1.34 MB / 0.5756 GB, free: 0.5234 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004909/0.5259, allocations: 31.95 kB / 0.5757 GB, free: 0.4922 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.205e-05/0.526, allocations: 26.81 kB / 0.5757 GB, free: 484 kB / 379.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 89 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001729/0.5261, allocations: 128.7 kB / 0.5758 GB, free: 348 kB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.5263, allocations: 55.25 kB / 0.5759 GB, free: 292 kB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001964/0.5282, allocations: 1.137 MB / 0.577 GB, free: 15.39 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.22e-05/0.5283, allocations: 25.61 kB / 0.577 GB, free: 15.37 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.5283, allocations: 0 / 0.577 GB, free: 15.37 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.5283, allocations: 3.984 kB / 0.577 GB, free: 15.37 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003583/0.5319, allocations: 2.077 MB / 0.579 GB, free: 13.56 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.532, allocations: 8 kB / 0.5791 GB, free: 13.55 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007386/0.5327, allocations: 166.6 kB / 0.5792 GB, free: 13.39 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001057/0.5328, allocations: 32.47 kB / 0.5792 GB, free: 13.36 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.029e-05/0.5329, allocations: 22.55 kB / 0.5793 GB, free: 13.34 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.534, allocations: 1.326 MB / 0.5806 GB, free: 11.98 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.534, allocations: 11.92 kB / 0.5806 GB, free: 11.97 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.5363, allocations: 1.905 MB / 0.5824 GB, free: 10.21 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.5365, allocations: 132.3 kB / 0.5826 GB, free: 10.06 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.073e-05/0.5366, allocations: 15.94 kB / 0.5826 GB, free: 10.04 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003781/0.5369, allocations: 28.08 kB / 0.5826 GB, free: 10.02 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.704e-05/0.537, allocations: 68.45 kB / 0.5827 GB, free: 9.949 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.202e-05/0.5371, allocations: 28 kB / 0.5827 GB, free: 9.922 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0002498/0.5373, allocations: 243 kB / 0.5829 GB, free: 9.684 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5374, allocations: 0 / 0.5829 GB, free: 9.684 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0007384/0.5381, allocations: 183.9 kB / 0.5831 GB, free: 9.504 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002875/0.5384, allocations: 144.7 kB / 0.5832 GB, free: 9.355 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.5398, allocations: 0.9599 MB / 0.5842 GB, free: 8.387 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.5398, allocations: 4 kB / 0.5842 GB, free: 8.383 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006797/0.5405, allocations: 0.5312 MB / 0.5847 GB, free: 7.84 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006593/0.5412, allocations: 109.9 kB / 0.5848 GB, free: 7.734 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.5438, allocations: 1.656 MB / 0.5864 GB, free: 5.988 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006401/0.5445, allocations: 1.033 MB / 0.5874 GB, free: 4.93 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0006379/0.5451, allocations: 209.1 kB / 0.5876 GB, free: 4.723 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.5453, allocations: 55.44 kB / 0.5877 GB, free: 4.668 MB / 395.1 MB Notification: Performance of SimCode: time 3.51e-07/0.5453, allocations: 0 / 0.5877 GB, free: 4.668 MB / 395.1 MB Notification: Performance of Templates: time 0.01446/0.5598, allocations: 7.264 MB / 0.5948 GB, free: 13.43 MB / 411.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)