Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 89.59 kB / 16.65 MB, free: 6.535 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.0009287/0.0009291, allocations: 174.1 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1698/0.1698, allocations: 38.04 MB / 310.1 MB, free: 5.926 MB / 254.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.0005788/0.0005788, allocations: 12 kB / 377.2 MB, free: 2.734 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2835, allocations: 56.33 MB / 433.5 MB, free: 18.69 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.006346/0.2899, allocations: 7.349 MB / 440.8 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003804/0.2938, allocations: 2.066 MB / 442.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007618/0.2946, allocations: 47.69 kB / 443 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000504/0.2951, allocations: 131.1 kB / 443.1 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008341/0.2959, allocations: 410.2 kB / 443.5 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005962/0.2965, allocations: 319.6 kB / 443.8 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.2978, allocations: 2.011 MB / 445.8 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003718/0.2982, allocations: 324.2 kB / 446.1 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005951/0.2988, allocations: 486 kB / 446.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000686/0.2995, allocations: 0.6385 MB / 447.2 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.311e-05/0.2996, allocations: 44 kB / 447.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001296/0.2997, allocations: 44 kB / 447.3 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002874/0.3, allocations: 351.1 kB / 447.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003555/0.3004, allocations: 431.7 kB / 448.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006578/0.3011, allocations: 1.11 MB / 449.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.3011, allocations: 0 / 449.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3011, allocations: 0 / 449.2 MB, free: 2.922 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.3011, allocations: 0 / 449.2 MB, free: 2.922 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.00215/0.3033, allocations: 1.165 MB / 450.4 MB, free: 1.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.3033, allocations: 16.02 kB / 450.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.3035, allocations: 96 kB / 450.5 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.3046, allocations: 0.6937 MB / 451.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003651/0.3049, allocations: 355 kB / 451.5 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.3051, allocations: 68 kB / 451.6 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002312/0.3074, allocations: 1.2 MB / 452.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.3074, allocations: 7.938 kB / 452.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.498e-05/0.3075, allocations: 24 kB / 452.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.3076, allocations: 45.28 kB / 452.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002919/0.3106, allocations: 1.281 MB / 454.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005724/0.3163, allocations: 3.566 MB / 457.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002608/0.319, allocations: 1.046 MB / 458.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001751/0.3207, allocations: 0.7411 MB / 459.5 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.095e-05/0.3208, allocations: 8.547 kB / 459.5 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001622/0.3224, allocations: 0.7475 MB / 460.2 MB, free: 7.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=59): time 3.236e-06/0.3224, allocations: 0 / 460.2 MB, free: 7.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.02207/0.3445, allocations: 6.979 MB / 467.2 MB, free: 480 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.785e-05/0.3446, allocations: 97.66 kB / 467.3 MB, free: 364 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006561/0.3453, allocations: 465.9 kB / 467.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.3454, allocations: 41.7 kB / 467.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002565/0.3457, allocations: 328.1 kB / 468.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.3459, allocations: 197.2 kB / 468.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.346, allocations: 65.69 kB / 468.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3462, allocations: 374.7 kB / 468.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.3474, allocations: 0.5598 MB / 469.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.3487, allocations: 0.6843 MB / 470 MB, free: 13.59 MB / 350.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007757/0.3565, allocations: 3.381 MB / 473.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.3565, allocations: 0 / 473.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008445/0.365, allocations: 3.053 MB / 476.4 MB, free: 7.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.336e-05/0.365, allocations: 53.91 kB / 476.5 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.3651, allocations: 7.984 kB / 476.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002556/0.3676, allocations: 1.18 MB / 477.7 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.3681, allocations: 111.8 kB / 477.8 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01737/0.3855, allocations: 7.16 MB / 484.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.3867, allocations: 119.9 kB / 485.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002263/0.3869, allocations: 43.91 kB / 485.1 MB, free: 14.24 MB / 366.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[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0007251/0.3877, allocations: 279.5 kB / 485.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.3878, allocations: 63.25 kB / 485.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008723/0.3966, allocations: 3.007 MB / 488.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.3966, allocations: 8 kB / 488.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3966, allocations: 3.938 kB / 488.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.3966, allocations: 3.984 kB / 488.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/0.4071, allocations: 4.138 MB / 492.6 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.4071, allocations: 4 kB / 492.6 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003676/0.4075, allocations: 75.89 kB / 492.7 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002652/0.4102, allocations: 1.191 MB / 493.9 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.849e-05/0.4103, allocations: 19.98 kB / 493.9 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01651/0.4268, allocations: 7.131 MB / 0.4893 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4268, allocations: 0 / 0.4893 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/0.4374, allocations: 3.84 MB / 0.493 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003796/0.4378, allocations: 224.3 kB / 0.4932 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.438, allocations: 32.08 kB / 0.4933 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007944/0.4388, allocations: 131.9 kB / 0.4934 GB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004102/0.4392, allocations: 168.2 kB / 0.4936 GB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.085e-05/0.4393, allocations: 23.98 kB / 0.4936 GB, free: 9.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004305/0.4397, allocations: 322.9 kB / 0.4939 GB, free: 9.293 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4397, allocations: 0 / 0.4939 GB, free: 9.293 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009746/0.4407, allocations: 220 kB / 0.4941 GB, free: 9.078 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000229/0.4409, allocations: 139 kB / 0.4942 GB, free: 8.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005146/0.4461, allocations: 1.942 MB / 0.4961 GB, free: 6.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.4461, allocations: 0 / 0.4961 GB, free: 6.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003665/0.4498, allocations: 1.279 MB / 0.4974 GB, free: 5.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.451, allocations: 154.3 kB / 0.4975 GB, free: 5.523 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004084/0.4551, allocations: 2.064 MB / 0.4995 GB, free: 3.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007499/0.4559, allocations: 1.001 MB / 0.5005 GB, free: 2.383 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004418/0.4563, allocations: 121.2 kB / 0.5006 GB, free: 2.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001524/0.4565, allocations: 43.42 kB / 0.5007 GB, free: 2.227 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4565, allocations: 0 / 0.5007 GB, free: 2.227 MB / 382.1 MB Notification: Performance of Templates: time 0.02539/0.4819, allocations: 15.47 MB / 0.5158 GB, free: 2.77 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) Environment - environmentSimulation: