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.001387/0.001387, allocations: 112.8 kB / 17.68 MB, free: 5.332 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.0014/0.0014, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.647/1.647, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.193/0.193, allocations: 37.99 MB / 309.8 MB, free: 5.969 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.001791/0.001791, allocations: 63.91 kB / 376.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2993, 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.006707/0.306, allocations: 6.548 MB / 438.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002583/0.3086, allocations: 1.7 MB / 440.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002722/0.3089, allocations: 31.81 kB / 440.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003481/0.3093, allocations: 158.7 kB / 440.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006686/0.31, allocations: 441.8 kB / 440.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005613/0.3106, allocations: 351.4 kB / 441.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00111/0.3117, allocations: 1.504 MB / 442.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004136/0.3121, allocations: 397.7 kB / 443.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005839/0.3127, allocations: 0.5995 MB / 443.7 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006695/0.3134, allocations: 0.6465 MB / 444.4 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.3135, allocations: 100 kB / 444.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.3137, allocations: 100 kB / 444.6 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002895/0.314, allocations: 419 kB / 445 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003247/0.3143, allocations: 466 kB / 445.4 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007031/0.315, allocations: 1.18 MB / 446.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.315, allocations: 3.984 kB / 446.6 MB, free: 4.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.315, allocations: 0 / 446.6 MB, free: 4.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.315, allocations: 0 / 446.6 MB, free: 4.863 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.002265/0.3173, allocations: 1.311 MB / 447.9 MB, free: 3.484 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.3174, allocations: 15.89 kB / 447.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.3175, allocations: 92 kB / 448 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.3188, allocations: 0.7405 MB / 448.8 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000308/0.3191, allocations: 343 kB / 449.1 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.3192, allocations: 68 kB / 449.2 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/0.321, allocations: 1.141 MB / 450.3 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.321, allocations: 3.938 kB / 450.3 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.647e-05/0.3211, allocations: 28 kB / 450.3 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.682e-05/0.3212, allocations: 45.22 kB / 450.4 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002192/0.3234, allocations: 1.176 MB / 451.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005131/0.3285, allocations: 3.484 MB / 455 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002286/0.3308, allocations: 0.9604 MB / 456 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.3324, allocations: 0.6748 MB / 456.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.628e-05/0.3324, allocations: 8.562 kB / 456.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001408/0.3338, allocations: 0.6888 MB / 457.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=59): time 1.683e-06/0.3339, allocations: 0 / 457.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01751/0.3514, allocations: 5.671 MB / 463 MB, free: 4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.3515, allocations: 89.67 kB / 463.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006/0.3521, allocations: 465.8 kB / 463.6 MB, free: 3.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.904e-05/0.3522, allocations: 45.7 kB / 463.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002718/0.3524, allocations: 324.2 kB / 463.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.3526, allocations: 205.1 kB / 464.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002505/0.3529, allocations: 138.2 kB / 464.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.3531, allocations: 366.8 kB / 464.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.3541, allocations: 0.509 MB / 465.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.3552, allocations: 0.6257 MB / 465.8 MB, free: 1.176 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.00737/0.3626, allocations: 3.128 MB / 468.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3626, allocations: 0 / 468.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007121/0.3698, allocations: 2.498 MB / 471.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.3699, allocations: 49.69 kB / 471.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.3699, allocations: 4 kB / 471.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002332/0.3722, allocations: 1.078 MB / 472.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004855/0.3727, allocations: 115.7 kB / 472.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01542/0.3882, allocations: 6.859 MB / 479.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008416/0.3891, allocations: 95.83 kB / 479.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.685e-05/0.3892, allocations: 43.97 kB / 479.6 MB, free: 3.043 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.0006166/0.3898, allocations: 287.4 kB / 479.9 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.3899, allocations: 55.34 kB / 480 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007494/0.3974, allocations: 2.429 MB / 482.4 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.3975, allocations: 8 kB / 482.4 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3975, allocations: 3.984 kB / 482.4 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.3975, allocations: 0 / 482.4 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009446/0.407, allocations: 3.559 MB / 486 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.407, allocations: 4 kB / 486 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004206/0.4074, allocations: 71.89 kB / 486.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002482/0.4099, allocations: 1.094 MB / 487.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.489e-05/0.41, allocations: 19.98 kB / 487.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01524/0.4252, allocations: 6.837 MB / 494 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4253, allocations: 0 / 494 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008669/0.434, allocations: 3.203 MB / 497.2 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000498/0.4345, allocations: 212.4 kB / 497.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.4346, allocations: 35.98 kB / 497.4 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006866/0.4353, allocations: 99.86 kB / 497.5 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003897/0.4357, allocations: 164.2 kB / 497.7 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.454e-05/0.4358, allocations: 28.11 kB / 497.7 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000389/0.4362, allocations: 322.9 kB / 498 MB, free: 340 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.263e-06/0.4362, allocations: 4 kB / 498.1 MB, free: 336 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008677/0.4371, allocations: 227.9 kB / 498.3 MB, free: 108 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.0002098/0.4373, allocations: 135.1 kB / 498.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004256/0.4415, allocations: 1.731 MB / 0.4884 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.4416, allocations: 4.375 kB / 0.4884 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002877/0.4444, allocations: 1.111 MB / 0.4895 GB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008551/0.4453, allocations: 168.7 kB / 0.4897 GB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.4483, allocations: 1.688 MB / 0.4913 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006072/0.4489, allocations: 0.989 MB / 0.4923 GB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003241/0.4493, allocations: 129.2 kB / 0.4924 GB, free: 10.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.4494, allocations: 47.42 kB / 0.4924 GB, free: 9.996 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4494, allocations: 0 / 0.4924 GB, free: 9.996 MB / 382.1 MB Notification: Performance of Templates: time 0.02462/0.474, allocations: 16.8 MB / 0.5089 GB, free: 9.207 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)