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.001054/0.001054, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001136/0.001136, allocations: 192 kB / 18.63 MB, free: 4.375 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.342/1.342, allocations: 205.1 MB / 224.5 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.181/0.181, allocations: 37.98 MB / 309.8 MB, free: 5.992 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.0024/0.0024, allocations: 67.91 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2484, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.006874/0.2553, allocations: 6.544 MB / 438.6 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002626/0.258, allocations: 1.715 MB / 440.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005172/0.2585, allocations: 23.88 kB / 440.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005746/0.2591, allocations: 162.7 kB / 440.5 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.2602, allocations: 441.8 kB / 440.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007359/0.261, allocations: 347.5 kB / 441.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.2623, allocations: 1.504 MB / 442.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000373/0.2626, allocations: 393.8 kB / 443.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008508/0.2635, allocations: 0.5995 MB / 443.7 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006945/0.2642, allocations: 0.6465 MB / 444.4 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.2643, allocations: 96 kB / 444.5 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001327/0.2645, allocations: 100 kB / 444.6 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002934/0.2648, allocations: 419 kB / 445 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000326/0.2651, allocations: 466 kB / 445.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007349/0.2658, allocations: 1.18 MB / 446.6 MB, free: 4.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2659, allocations: 7.984 kB / 446.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2659, allocations: 0 / 446.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.2659, allocations: 0 / 446.6 MB, free: 4.867 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.00229/0.2682, allocations: 1.309 MB / 447.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.2682, allocations: 11.89 kB / 447.9 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.2684, allocations: 95.98 kB / 448 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.2696, allocations: 0.7366 MB / 448.8 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003023/0.2699, allocations: 350.9 kB / 449.1 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.27, allocations: 72 kB / 449.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.2718, allocations: 1.141 MB / 450.3 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.2718, allocations: 4 kB / 450.3 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.569e-05/0.2719, allocations: 24 kB / 450.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.909e-05/0.272, allocations: 41.28 kB / 450.4 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00224/0.2742, allocations: 1.172 MB / 451.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005047/0.2793, allocations: 3.48 MB / 455 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002304/0.2816, allocations: 0.9681 MB / 456 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.2831, allocations: 0.6748 MB / 456.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.466e-05/0.2832, allocations: 12.55 kB / 456.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001402/0.2846, allocations: 0.685 MB / 457.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of pre-optimization done (n=59): time 1.783e-06/0.2846, allocations: 0 / 457.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01765/0.3023, allocations: 5.663 MB / 463 MB, free: 4.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.3023, allocations: 85.67 kB / 463.1 MB, free: 3.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005261/0.3029, allocations: 477.8 kB / 463.6 MB, free: 3.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.449e-05/0.303, allocations: 41.7 kB / 463.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.3032, allocations: 328.1 kB / 464 MB, free: 3.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.3034, allocations: 205.1 kB / 464.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000251/0.3037, allocations: 138.2 kB / 464.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3039, allocations: 366.8 kB / 464.7 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/0.3049, allocations: 0.5051 MB / 465.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.306, allocations: 0.6297 MB / 465.8 MB, free: 1.18 MB / 334.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.006639/0.3127, allocations: 3.124 MB / 468.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.3127, allocations: 4 kB / 468.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007356/0.3201, allocations: 2.498 MB / 471.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.376e-05/0.3201, allocations: 49.69 kB / 471.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.3202, allocations: 0 / 471.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002246/0.3224, allocations: 1.086 MB / 472.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004577/0.3229, allocations: 115.7 kB / 472.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01525/0.3381, allocations: 6.863 MB / 479.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007998/0.339, allocations: 91.95 kB / 479.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/0.3392, allocations: 43.97 kB / 479.7 MB, free: 3.047 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: 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.0004738/0.3397, allocations: 281 kB / 479.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.3398, allocations: 55.34 kB / 480 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007147/0.347, allocations: 2.436 MB / 482.4 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.347, allocations: 4 kB / 482.4 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.347, allocations: 7.984 kB / 482.4 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.3471, allocations: 0 / 482.4 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009127/0.3562, allocations: 3.548 MB / 486 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.3562, allocations: 0 / 486 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000351/0.3566, allocations: 79.89 kB / 486.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002205/0.3588, allocations: 1.098 MB / 487.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.438e-05/0.3589, allocations: 15.98 kB / 487.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/0.3734, allocations: 6.832 MB / 494 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.3734, allocations: 4 kB / 494 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008391/0.3818, allocations: 3.203 MB / 497.2 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000525/0.3824, allocations: 216.4 kB / 497.4 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/0.3826, allocations: 35.98 kB / 497.5 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006861/0.3833, allocations: 95.86 kB / 497.6 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004184/0.3837, allocations: 176.2 kB / 497.7 MB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.846e-05/0.3838, allocations: 28.11 kB / 497.8 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004162/0.3842, allocations: 318.9 kB / 498.1 MB, free: 340 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3842, allocations: 0 / 498.1 MB, free: 340 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009308/0.3851, allocations: 224 kB / 498.3 MB, free: 116 kB / 366.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.0002292/0.3854, allocations: 135.2 kB / 498.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00411/0.3895, allocations: 1.735 MB / 0.4884 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3895, allocations: 4 kB / 0.4884 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002819/0.3923, allocations: 1.103 MB / 0.4895 GB, free: 13.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000826/0.3932, allocations: 165.4 kB / 0.4897 GB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.3962, allocations: 1.695 MB / 0.4913 GB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006287/0.3968, allocations: 1.005 MB / 0.4923 GB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003484/0.3972, allocations: 125.2 kB / 0.4924 GB, free: 10.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.3973, allocations: 51.42 kB / 0.4925 GB, free: 9.988 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3973, allocations: 0 / 0.4925 GB, free: 9.988 MB / 382.1 MB Notification: Performance of Templates: time 0.02601/0.4233, allocations: 16.79 MB / 0.5089 GB, free: 9.211 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)