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.001491/0.001491, allocations: 109.2 kB / 17.75 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.00171/0.00171, allocations: 188.3 kB / 18.67 MB, free: 4.395 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.355/1.355, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1856/0.1856, allocations: 38.03 MB / 330.6 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 71.91 kB / 458.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2852, allocations: 58.04 MB / 0.5048 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.006649/0.2919, allocations: 6.561 MB / 0.5112 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.2944, allocations: 1.655 MB / 0.5128 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003366/0.2947, allocations: 28.81 kB / 0.5128 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004898/0.2952, allocations: 157.2 kB / 0.513 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008405/0.2961, allocations: 441.9 kB / 0.5134 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000668/0.2968, allocations: 351.2 kB / 0.5137 GB, free: 1.496 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001406/0.2982, allocations: 1.513 MB / 0.5152 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004757/0.2987, allocations: 398.9 kB / 0.5156 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009901/0.2997, allocations: 0.6212 MB / 0.5162 GB, free: 420 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009099/0.3006, allocations: 0.6483 MB / 0.5168 GB, free: 176 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001788/0.3008, allocations: 98.69 kB / 0.5169 GB, free: 176 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002767/0.3011, allocations: 98.03 kB / 0.517 GB, free: 176 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004357/0.3015, allocations: 414.4 kB / 0.5174 GB, free: 16 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006606/0.3022, allocations: 474 kB / 0.5178 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001282/0.3035, allocations: 1.182 MB / 0.519 GB, free: 15.3 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3035, allocations: 4 kB / 0.519 GB, free: 15.3 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3035, allocations: 1.062 kB / 0.519 GB, free: 15.3 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.177e-05/0.3035, allocations: 0 / 0.519 GB, free: 15.3 MB / 398.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.002872/0.3064, allocations: 1.305 MB / 0.5203 GB, free: 14.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.3065, allocations: 12.55 kB / 0.5203 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.3067, allocations: 96.16 kB / 0.5204 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/0.3082, allocations: 0.7353 MB / 0.5211 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004386/0.3087, allocations: 344.8 kB / 0.5214 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.3089, allocations: 64.47 kB / 0.5215 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/0.3114, allocations: 1.142 MB / 0.5226 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3114, allocations: 7.875 kB / 0.5226 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.021e-05/0.3115, allocations: 27.67 kB / 0.5226 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001161/0.3116, allocations: 37.78 kB / 0.5227 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002923/0.3146, allocations: 1.175 MB / 0.5238 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005734/0.3203, allocations: 3.483 MB / 0.5272 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002645/0.323, allocations: 0.9582 MB / 0.5282 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001745/0.3248, allocations: 0.6871 MB / 0.5288 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.076e-05/0.3248, allocations: 14.98 kB / 0.5288 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00159/0.3264, allocations: 0.6812 MB / 0.5295 GB, free: 9.691 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.525e-06/0.3264, allocations: 0 / 0.5295 GB, free: 9.691 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.02107/0.3475, allocations: 5.661 MB / 0.535 GB, free: 6.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/0.3476, allocations: 94.38 kB / 0.5351 GB, free: 6.652 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000583/0.3482, allocations: 463.7 kB / 0.5356 GB, free: 6.375 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.3483, allocations: 43.33 kB / 0.5356 GB, free: 6.332 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000251/0.3486, allocations: 326.6 kB / 0.5359 GB, free: 6.043 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.3488, allocations: 201.1 kB / 0.5361 GB, free: 5.871 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002489/0.349, allocations: 133.1 kB / 0.5362 GB, free: 5.793 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3492, allocations: 374 kB / 0.5366 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.3504, allocations: 0.5078 MB / 0.5371 GB, free: 5.184 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001269/0.3516, allocations: 0.6268 MB / 0.5377 GB, free: 4.789 MB / 398.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.007514/0.3592, allocations: 3.135 MB / 0.5408 GB, free: 3.164 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-06/0.3592, allocations: 1.031 kB / 0.5408 GB, free: 3.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008382/0.3676, allocations: 2.499 MB / 0.5432 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.213e-05/0.3677, allocations: 45.69 kB / 0.5433 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.3677, allocations: 4 kB / 0.5433 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002615/0.3703, allocations: 1.089 MB / 0.5443 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005553/0.3709, allocations: 103.8 kB / 0.5444 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01716/0.3881, allocations: 6.872 MB / 0.5511 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000923/0.389, allocations: 79.97 kB / 0.5512 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.3892, allocations: 43.97 kB / 0.5513 GB, free: 8.273 MB / 414.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.000567/0.3898, allocations: 283.5 kB / 0.5515 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.3899, allocations: 55.25 kB / 0.5516 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008784/0.3987, allocations: 2.433 MB / 0.5539 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/0.3988, allocations: 3.984 kB / 0.554 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3988, allocations: 4 kB / 0.554 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005466/0.3993, allocations: 216.3 kB / 0.5542 GB, free: 5.242 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.3995, allocations: 27.98 kB / 0.5542 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008115/0.4003, allocations: 99.98 kB / 0.5543 GB, free: 5.117 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005538/0.4009, allocations: 268 kB / 0.5545 GB, free: 4.855 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007504/0.4084, allocations: 2.169 MB / 0.5567 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004499/0.4129, allocations: 1.904 MB / 0.5585 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001446/0.4144, allocations: 0.5937 MB / 0.5591 GB, free: 168 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004349/0.4149, allocations: 322.9 kB / 0.5594 GB, free: 15.85 MB / 430.1 MB Notification: Performance of Backend: time 5.81e-07/0.4149, allocations: 0 / 0.5594 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004088/0.419, allocations: 1.318 MB / 0.5607 GB, free: 14.5 MB / 430.1 MB Notification: Performance of SimCode: time 0.002793/0.4218, allocations: 1.969 MB / 0.5626 GB, free: 12.49 MB / 430.1 MB Notification: Performance of Templates: time 0.02306/0.4449, allocations: 15.06 MB / 0.5773 GB, free: 13.5 MB / 446.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)