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.001272/0.001272, allocations: 111.7 kB / 17.06 MB, free: 6 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.001098/0.001098, allocations: 194.9 kB / 18 MB, free: 5.078 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.495/1.495, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1759/0.1759, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 59.89 kB / 458.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3323, allocations: 58.06 MB / 0.5041 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.006375/0.3387, allocations: 6.55 MB / 0.5105 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002631/0.3413, allocations: 1.663 MB / 0.5121 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003561/0.3417, allocations: 25.5 kB / 0.5121 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005212/0.3423, allocations: 161.9 kB / 0.5123 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008572/0.3432, allocations: 441.1 kB / 0.5127 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000709/0.3439, allocations: 352 kB / 0.513 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00147/0.3454, allocations: 1.51 MB / 0.5145 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004596/0.3458, allocations: 403.4 kB / 0.5149 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009419/0.3468, allocations: 0.6176 MB / 0.5155 GB, free: 424 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008831/0.3477, allocations: 0.6524 MB / 0.5161 GB, free: 176 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.3479, allocations: 97.78 kB / 0.5162 GB, free: 176 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002409/0.3481, allocations: 99.22 kB / 0.5163 GB, free: 176 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004323/0.3486, allocations: 413.8 kB / 0.5167 GB, free: 16 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006746/0.3492, allocations: 470.2 kB / 0.5172 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001395/0.3506, allocations: 1.18 MB / 0.5183 GB, free: 15.31 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3507, allocations: 0 / 0.5183 GB, free: 15.31 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.3507, allocations: 0 / 0.5183 GB, free: 15.31 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.698e-05/0.3507, allocations: 5.188 kB / 0.5183 GB, free: 15.31 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.002787/0.3535, allocations: 1.303 MB / 0.5196 GB, free: 14.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.3535, allocations: 14.31 kB / 0.5196 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001993/0.3537, allocations: 96.59 kB / 0.5197 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/0.3552, allocations: 0.7373 MB / 0.5204 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004288/0.3556, allocations: 341.5 kB / 0.5208 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.3558, allocations: 66.53 kB / 0.5208 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002436/0.3582, allocations: 1.148 MB / 0.5219 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.3583, allocations: 1.281 kB / 0.5219 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.43e-05/0.3583, allocations: 26.81 kB / 0.522 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/0.3585, allocations: 46.36 kB / 0.522 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002831/0.3613, allocations: 1.171 MB / 0.5232 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005358/0.3667, allocations: 3.48 MB / 0.5266 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.3693, allocations: 0.9662 MB / 0.5275 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001708/0.371, allocations: 0.691 MB / 0.5282 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.284e-05/0.3711, allocations: 5.875 kB / 0.5282 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001528/0.3726, allocations: 0.6861 MB / 0.5288 GB, free: 9.699 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.364e-06/0.3726, allocations: 0 / 0.5288 GB, free: 9.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.01997/0.3926, allocations: 5.664 MB / 0.5344 GB, free: 6.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.3927, allocations: 86.8 kB / 0.5345 GB, free: 6.664 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006913/0.3934, allocations: 475.7 kB / 0.5349 GB, free: 6.375 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001698/0.3936, allocations: 39.52 kB / 0.535 GB, free: 6.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/0.3939, allocations: 327.7 kB / 0.5353 GB, free: 6.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.3941, allocations: 200 kB / 0.5355 GB, free: 5.875 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/0.3944, allocations: 132.4 kB / 0.5356 GB, free: 5.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3946, allocations: 378.1 kB / 0.5359 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.3958, allocations: 0.5012 MB / 0.5364 GB, free: 5.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.397, allocations: 0.6265 MB / 0.537 GB, free: 4.797 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.007089/0.4041, allocations: 3.132 MB / 0.5401 GB, free: 3.164 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.4041, allocations: 0 / 0.5401 GB, free: 3.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007583/0.4117, allocations: 2.49 MB / 0.5425 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.814e-05/0.4118, allocations: 49.69 kB / 0.5426 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.4118, allocations: 224 / 0.5426 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002421/0.4142, allocations: 1.09 MB / 0.5436 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005468/0.4148, allocations: 115.7 kB / 0.5438 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01671/0.4315, allocations: 6.86 MB / 0.5505 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.4326, allocations: 87.95 kB / 0.5505 GB, free: 8.305 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000186/0.4328, allocations: 43.97 kB / 0.5506 GB, free: 8.262 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.0006578/0.4335, allocations: 283.4 kB / 0.5509 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.4337, allocations: 59.25 kB / 0.5509 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008347/0.442, allocations: 2.429 MB / 0.5533 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.4421, allocations: 8 kB / 0.5533 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4421, allocations: 0 / 0.5533 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/0.4421, allocations: 7.984 kB / 0.5533 GB, free: 5.453 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01061/0.4527, allocations: 3.556 MB / 0.5568 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/0.4528, allocations: 4 kB / 0.5568 GB, free: 1.809 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004688/0.4533, allocations: 75.89 kB / 0.5568 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002539/0.4558, allocations: 1.094 MB / 0.5579 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001523/0.456, allocations: 23.98 kB / 0.5579 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01638/0.4724, allocations: 6.829 MB / 0.5646 GB, free: 9.645 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4724, allocations: 0 / 0.5646 GB, free: 9.645 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009623/0.4821, allocations: 3.207 MB / 0.5677 GB, free: 6.395 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004798/0.4826, allocations: 216.3 kB / 0.5679 GB, free: 6.164 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002114/0.4828, allocations: 35.98 kB / 0.568 GB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008274/0.4836, allocations: 95.86 kB / 0.5681 GB, free: 6.035 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000427/0.4841, allocations: 172.2 kB / 0.5682 GB, free: 5.867 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.076e-05/0.4842, allocations: 23.98 kB / 0.5683 GB, free: 5.844 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004287/0.4846, allocations: 326.8 kB / 0.5686 GB, free: 5.527 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4846, allocations: 0 / 0.5686 GB, free: 5.527 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001104/0.4857, allocations: 228 kB / 0.5688 GB, free: 5.305 MB / 430.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.0002135/0.4859, allocations: 127.2 kB / 0.5689 GB, free: 5.172 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004723/0.4907, allocations: 1.727 MB / 0.5706 GB, free: 3.418 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.4907, allocations: 0 / 0.5706 GB, free: 3.418 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003282/0.494, allocations: 1.115 MB / 0.5717 GB, free: 2.289 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.4951, allocations: 162.4 kB / 0.5718 GB, free: 2.129 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003483/0.4986, allocations: 1.703 MB / 0.5735 GB, free: 388 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006109/0.4992, allocations: 0.9929 MB / 0.5745 GB, free: 15.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003708/0.4996, allocations: 121.2 kB / 0.5746 GB, free: 15.24 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.4997, allocations: 51.42 kB / 0.5746 GB, free: 15.19 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4997, allocations: 0 / 0.5746 GB, free: 15.19 MB / 446.1 MB Notification: Performance of Templates: time 0.02729/0.527, allocations: 16.95 MB / 0.5912 GB, free: 14.31 MB / 462.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)