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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.002244/0.002244, allocations: 107.3 kB / 17.28 MB, free: 6.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.002459/0.002459, allocations: 193.3 kB / 18.2 MB, free: 5.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.781/1.781, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2179/0.2179, allocations: 38.03 MB / 330.1 MB, free: 8.977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 66.61 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1612, allocations: 58.05 MB / 457 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.0162/0.1775, allocations: 7.798 MB / 464.8 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00674/0.1843, allocations: 2.026 MB / 466.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001546/0.1859, allocations: 51.69 kB / 466.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.187, allocations: 135.1 kB / 467 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002141/0.1892, allocations: 406.2 kB / 467.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001518/0.1908, allocations: 319.6 kB / 467.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002925/0.1937, allocations: 1.508 MB / 469.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008716/0.1946, allocations: 401.7 kB / 469.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.1962, allocations: 0.5956 MB / 470.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00157/0.1978, allocations: 0.6855 MB / 470.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000222/0.1981, allocations: 96 kB / 471 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002826/0.1984, allocations: 100 kB / 471.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006411/0.199, allocations: 427 kB / 471.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007974/0.1998, allocations: 466 kB / 472 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001457/0.2013, allocations: 0.9316 MB / 472.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.003e-05/0.2013, allocations: 7.938 kB / 472.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2014, allocations: 4 kB / 472.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.508e-05/0.2014, allocations: 0 / 472.9 MB, free: 8.453 MB / 350.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.004991/0.2064, allocations: 1.313 MB / 474.2 MB, free: 7.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.706e-05/0.2065, allocations: 15.89 kB / 474.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003413/0.2069, allocations: 95.91 kB / 474.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002115/0.209, allocations: 0.6938 MB / 475 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006535/0.2097, allocations: 339 kB / 475.3 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/0.2099, allocations: 67.91 kB / 475.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003938/0.2138, allocations: 1.141 MB / 476.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.2139, allocations: 0 / 476.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/0.214, allocations: 28 kB / 476.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002012/0.2142, allocations: 41.22 kB / 476.6 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004774/0.219, allocations: 1.18 MB / 477.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009409/0.2285, allocations: 3.496 MB / 481.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004705/0.2333, allocations: 0.9496 MB / 482.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003011/0.2363, allocations: 0.6904 MB / 482.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.792e-05/0.2365, allocations: 8.547 kB / 482.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002648/0.2391, allocations: 0.6849 MB / 483.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 4.959e-06/0.2392, allocations: 0 / 483.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.02683/0.266, allocations: 5.663 MB / 489.3 MB, free: 7.629 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.048e-05/0.2661, allocations: 85.67 kB / 489.4 MB, free: 7.523 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007142/0.2668, allocations: 477.8 kB / 489.8 MB, free: 7.047 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001325/0.267, allocations: 41.7 kB / 489.9 MB, free: 7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002974/0.2673, allocations: 320.2 kB / 490.2 MB, free: 6.684 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/0.2675, allocations: 205.1 kB / 490.4 MB, free: 6.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/0.2678, allocations: 130.3 kB / 490.5 MB, free: 6.348 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002513/0.2681, allocations: 370.8 kB / 490.9 MB, free: 5.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.2693, allocations: 0.509 MB / 491.4 MB, free: 5.469 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.2706, allocations: 0.6335 MB / 492 MB, free: 4.793 MB / 366.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.007483/0.2781, allocations: 3.137 MB / 495.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.2781, allocations: 0 / 495.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007635/0.2857, allocations: 2.49 MB / 497.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.2859, allocations: 53.69 kB / 497.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/0.2859, allocations: 4 kB / 497.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002603/0.2886, allocations: 1.093 MB / 498.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005674/0.2891, allocations: 111.8 kB / 498.9 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01622/0.3054, allocations: 6.874 MB / 0.4939 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009265/0.3063, allocations: 79.95 kB / 0.494 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.3065, allocations: 55.84 kB / 0.4941 GB, free: 6.664 MB / 382.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.0005591/0.307, allocations: 275.4 kB / 0.4943 GB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.3072, allocations: 55.34 kB / 0.4944 GB, free: 6.328 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008023/0.3152, allocations: 2.433 MB / 0.4968 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/0.3153, allocations: 8 kB / 0.4968 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3153, allocations: 0 / 0.4968 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.3153, allocations: 0 / 0.4968 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.3261, allocations: 3.564 MB / 0.5002 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/0.3262, allocations: 4 kB / 0.5002 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004636/0.3266, allocations: 75.89 kB / 0.5003 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2969/0.6236, allocations: 1.084 MB / 0.5014 GB, free: 57.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001978/0.6239, allocations: 20.27 kB / 0.5014 GB, free: 57.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01842/0.6423, allocations: 6.842 MB / 0.5081 GB, free: 55.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.6423, allocations: 4.156 kB / 0.5081 GB, free: 55.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01222/0.6546, allocations: 3.198 MB / 0.5112 GB, free: 54.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008123/0.6554, allocations: 222.7 kB / 0.5114 GB, free: 54.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.6557, allocations: 32.47 kB / 0.5114 GB, free: 54.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.6569, allocations: 99.2 kB / 0.5115 GB, free: 54.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000733/0.6577, allocations: 169.3 kB / 0.5117 GB, free: 54.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.6578, allocations: 23.19 kB / 0.5117 GB, free: 54.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006258/0.6584, allocations: 324.3 kB / 0.512 GB, free: 54.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6585, allocations: 0 / 0.512 GB, free: 54.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001772/0.6602, allocations: 222.8 kB / 0.5122 GB, free: 54.07 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.0003519/0.6606, allocations: 142 kB / 0.5124 GB, free: 53.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00837/0.669, allocations: 1.84 MB / 0.5142 GB, free: 53.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/0.6691, allocations: 3.594 kB / 0.5142 GB, free: 53.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005524/0.6746, allocations: 1.109 MB / 0.5153 GB, free: 53.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.6764, allocations: 164.8 kB / 0.5154 GB, free: 52.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005729/0.6822, allocations: 2.039 MB / 0.5174 GB, free: 51.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008103/0.6831, allocations: 0.9943 MB / 0.5184 GB, free: 51.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003084/0.6834, allocations: 48.22 kB / 0.5184 GB, free: 51.05 MB / 382.1 MB Notification: Performance of SimCode: time 1.683e-06/0.6834, allocations: 0 / 0.5184 GB, free: 51.05 MB / 382.1 MB Notification: Performance of Templates: time 0.0278/0.7112, allocations: 13.43 MB / 0.5315 GB, free: 41.25 MB / 382.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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)