Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 110.8 kB / 17.74 MB, free: 5.344 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.001543/0.001543, allocations: 188.5 kB / 18.66 MB, free: 4.422 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.309/1.309, allocations: 222.9 MB / 242.4 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.176/0.176, allocations: 38.04 MB / 330.6 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 59.91 kB / 458.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3305, allocations: 58.05 MB / 0.5047 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007133/0.3377, allocations: 6.488 MB / 0.5111 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003272/0.341, allocations: 1.875 MB / 0.5129 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005299/0.3416, allocations: 26.88 kB / 0.5129 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.3428, allocations: 448.5 kB / 0.5134 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001005/0.3438, allocations: 420.3 kB / 0.5138 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.3449, allocations: 350.2 kB / 0.5141 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.3463, allocations: 1.03 MB / 0.5151 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000715/0.347, allocations: 0.4952 MB / 0.5156 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007567/0.3478, allocations: 471.9 kB / 0.516 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008146/0.3486, allocations: 0.5695 MB / 0.5166 GB, free: 360 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.3488, allocations: 65.81 kB / 0.5167 GB, free: 360 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006278/0.3494, allocations: 261.1 kB / 0.5169 GB, free: 296 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005049/0.3499, allocations: 368.8 kB / 0.5173 GB, free: 164 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005451/0.3505, allocations: 429.3 kB / 0.5177 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001465/0.3519, allocations: 1.039 MB / 0.5187 GB, free: 15.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.352, allocations: 4.938 kB / 0.5187 GB, free: 15.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.352, allocations: 0 / 0.5187 GB, free: 15.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.352, allocations: 0 / 0.5187 GB, free: 15.52 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002337/0.3543, allocations: 1.12 MB / 0.5198 GB, free: 14.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3544, allocations: 13.86 kB / 0.5198 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007559/0.3551, allocations: 128.2 kB / 0.5199 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.3563, allocations: 0.6149 MB / 0.5205 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.574e-05/0.3563, allocations: 47.78 kB / 0.5206 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001907/0.3565, allocations: 76.44 kB / 0.5206 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.3583, allocations: 1.014 MB / 0.5216 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.295e-05/0.3583, allocations: 12.86 kB / 0.5216 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.957e-05/0.3584, allocations: 21.62 kB / 0.5217 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002282/0.3586, allocations: 76.33 kB / 0.5217 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.3602, allocations: 0.9763 MB / 0.5227 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005884/0.3661, allocations: 3.25 MB / 0.5259 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.3674, allocations: 0.6914 MB / 0.5265 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006682/0.3681, allocations: 425.1 kB / 0.5269 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.245e-05/0.3681, allocations: 16.97 kB / 0.527 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.3682, allocations: 42.66 kB / 0.527 GB, free: 11.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 4.539e-06/0.3682, allocations: 0 / 0.527 GB, free: 11.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=75): time 0.004271/0.3725, allocations: 2.441 MB / 0.5294 GB, free: 9.812 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/0.3726, allocations: 85.56 kB / 0.5295 GB, free: 9.719 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005827/0.3732, allocations: 439.9 kB / 0.5299 GB, free: 9.512 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.361e-05/0.3732, allocations: 35.23 kB / 0.5299 GB, free: 9.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/0.3735, allocations: 360.8 kB / 0.5303 GB, free: 9.156 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002037/0.3737, allocations: 260.8 kB / 0.5305 GB, free: 8.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.3739, allocations: 150.4 kB / 0.5307 GB, free: 8.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3741, allocations: 379.9 kB / 0.531 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005169/0.3746, allocations: 342 kB / 0.5313 GB, free: 8.316 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006265/0.3752, allocations: 0.5182 MB / 0.5318 GB, free: 7.93 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005175/0.3804, allocations: 2.238 MB / 0.534 GB, free: 6.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.3804, allocations: 0.9688 kB / 0.534 GB, free: 6.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001772/0.3822, allocations: 1.102 MB / 0.5351 GB, free: 6.051 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.3822, allocations: 7.906 kB / 0.5351 GB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.3823, allocations: 5.656 kB / 0.5351 GB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/0.3824, allocations: 38.61 kB / 0.5352 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000788/0.3832, allocations: 192.2 kB / 0.5353 GB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.3845, allocations: 1.499 MB / 0.5368 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005617/0.385, allocations: 40.31 kB / 0.5368 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.719e-05/0.3851, allocations: 28.03 kB / 0.5369 GB, free: 4.441 MB / 398.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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 92 * Array equations: 2 * Algorithm blocks: 0 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005305/0.3857, allocations: 283.4 kB / 0.5371 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.3858, allocations: 63.14 kB / 0.5372 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/0.3874, allocations: 0.9596 MB / 0.5381 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-05/0.3874, allocations: 18.39 kB / 0.5382 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3874, allocations: 9.141 kB / 0.5382 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.3875, allocations: 7.922 kB / 0.5382 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003452/0.3909, allocations: 2.004 MB / 0.5401 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.3909, allocations: 4.125 kB / 0.5401 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006675/0.3916, allocations: 155.1 kB / 0.5403 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001139/0.3917, allocations: 38.03 kB / 0.5403 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.714e-05/0.3918, allocations: 25.61 kB / 0.5403 GB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001066/0.3929, allocations: 1.502 MB / 0.5418 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.3929, allocations: 4.969 kB / 0.5418 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.3949, allocations: 1.526 MB / 0.5433 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.3952, allocations: 138.3 kB / 0.5434 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.878e-05/0.3953, allocations: 30.08 kB / 0.5435 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003816/0.3956, allocations: 31.28 kB / 0.5435 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3958, allocations: 58.53 kB / 0.5436 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-05/0.3958, allocations: 27.8 kB / 0.5436 GB, free: 15.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003466/0.3962, allocations: 298.8 kB / 0.5439 GB, free: 15.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3962, allocations: 4 kB / 0.5439 GB, free: 15.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008407/0.397, allocations: 178.4 kB / 0.544 GB, free: 15.19 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002679/0.3973, allocations: 171 kB / 0.5442 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.3988, allocations: 0.9611 MB / 0.5451 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3988, allocations: 0 / 0.5451 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006602/0.3995, allocations: 0.5312 MB / 0.5457 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000926/0.4004, allocations: 151.6 kB / 0.5458 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002929/0.4034, allocations: 2.034 MB / 0.5478 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005619/0.404, allocations: 1.013 MB / 0.5488 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002493/0.4042, allocations: 59.44 kB / 0.5488 GB, free: 10.14 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4042, allocations: 4 kB / 0.5488 GB, free: 10.14 MB / 414.1 MB Notification: Performance of Templates: time 0.01572/0.42, allocations: 12.11 MB / 0.5607 GB, free: 14.04 MB / 430.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)