Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008637/0.0008635, allocations: 92.09 kB / 16.65 MB, free: 6.535 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.0008914/0.0008913, allocations: 176.3 kB / 17.56 MB, free: 6.18 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.457/1.457, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2058/0.2058, allocations: 38.05 MB / 310.1 MB, free: 5.926 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.0005374/0.0005376, allocations: 12 kB / 377.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2858, allocations: 56.34 MB / 433.5 MB, free: 18.7 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.006787/0.2926, allocations: 7.096 MB / 440.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004513/0.2972, allocations: 2.779 MB / 443.4 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007409/0.298, allocations: 43.69 kB / 443.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005098/0.2985, allocations: 143.1 kB / 443.6 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.2997, allocations: 0.5487 MB / 444.1 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009364/0.3006, allocations: 439.4 kB / 444.5 MB, free: 7.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001776/0.3024, allocations: 2.452 MB / 447 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001364/0.3038, allocations: 0.9516 MB / 447.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008938/0.3047, allocations: 0.6189 MB / 448.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001152/0.3059, allocations: 0.9193 MB / 449.5 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001559/0.306, allocations: 68 kB / 449.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009174/0.307, allocations: 0.6044 MB / 450.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004475/0.3074, allocations: 0.5494 MB / 450.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005757/0.308, allocations: 0.6005 MB / 451.3 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001968/0.31, allocations: 1.901 MB / 453.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.31, allocations: 7.938 kB / 453.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.31, allocations: 0 / 453.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.323e-05/0.31, allocations: 0 / 453.2 MB, free: 14.87 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004477/0.3145, allocations: 1.709 MB / 454.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.3146, allocations: 12.03 kB / 454.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009281/0.3155, allocations: 163.6 kB / 455.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.3177, allocations: 0.9361 MB / 456 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006837/0.3184, allocations: 0.5223 MB / 456.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003485/0.3188, allocations: 99.92 kB / 456.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004431/0.3232, allocations: 2.109 MB / 458.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.595e-05/0.3233, allocations: 7.938 kB / 458.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001506/0.3235, allocations: 36 kB / 458.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002321/0.3237, allocations: 89.94 kB / 458.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0053/0.329, allocations: 2.416 MB / 461.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/0.3392, allocations: 5.765 MB / 467.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004961/0.3442, allocations: 1.957 MB / 469 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002813/0.3471, allocations: 1.246 MB / 470.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.877e-05/0.3472, allocations: 20.92 kB / 470.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003191/0.3504, allocations: 1.485 MB / 471.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=123): time 3.306e-06/0.3504, allocations: 0 / 471.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.01496/0.3654, allocations: 6.13 MB / 477.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.3655, allocations: 102.1 kB / 478 MB, free: 5.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007709/0.3663, allocations: 493.9 kB / 478.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.3665, allocations: 57.69 kB / 478.5 MB, free: 5.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003698/0.3669, allocations: 360.7 kB / 478.9 MB, free: 4.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004294/0.3673, allocations: 418 kB / 479.3 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001924/0.3675, allocations: 125.7 kB / 479.4 MB, free: 4.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002333/0.3677, allocations: 398.8 kB / 479.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002169/0.3699, allocations: 1.099 MB / 480.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002289/0.3722, allocations: 1.25 MB / 482.2 MB, free: 1.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004096/0.3763, allocations: 2.188 MB / 484.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.3764, allocations: 4 kB / 484.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01195/0.3883, allocations: 4.419 MB / 488.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001187/0.3885, allocations: 57.69 kB / 488.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.3885, allocations: 7.984 kB / 488.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006348/0.3949, allocations: 2.214 MB / 491.1 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/0.396, allocations: 195.7 kB / 491.2 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02688/0.4229, allocations: 11.64 MB / 0.4911 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/0.4248, allocations: 207.8 kB / 0.4913 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000408/0.4252, allocations: 71.94 kB / 0.4914 GB, free: 12.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * 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 {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.001113/0.4263, allocations: 381.4 kB / 0.4917 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003786/0.4267, allocations: 79 kB / 0.4918 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006233/0.433, allocations: 2.576 MB / 0.4943 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.433e-05/0.433, allocations: 27.98 kB / 0.4943 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.4331, allocations: 128 / 0.4943 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.594e-05/0.4331, allocations: 11.98 kB / 0.4944 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008687/0.4418, allocations: 4.293 MB / 0.4985 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.4418, allocations: 256 / 0.4985 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01169/0.4535, allocations: 2.86 MB / 0.5013 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.917e-05/0.4536, allocations: 4 kB / 0.5013 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002848/0.4539, allocations: 35.97 kB / 0.5014 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.761e-05/0.4539, allocations: 8 kB / 0.5014 GB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.4539, allocations: 7.875 kB / 0.5014 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00947/0.4634, allocations: 4.162 MB / 0.5055 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008465/0.4642, allocations: 336 kB / 0.5058 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003724/0.4646, allocations: 87.94 kB / 0.5059 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001596/0.4663, allocations: 239.7 kB / 0.5061 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004639/0.4667, allocations: 192.6 kB / 0.5063 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.4669, allocations: 43.95 kB / 0.5063 GB, free: 12.65 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005504/0.4674, allocations: 342.8 kB / 0.5066 GB, free: 12.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4675, allocations: 0 / 0.5066 GB, free: 12.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001454/0.4689, allocations: 363.9 kB / 0.507 GB, free: 11.96 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004664/0.4694, allocations: 216.8 kB / 0.5072 GB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007108/0.4765, allocations: 3.162 MB / 0.5103 GB, free: 8.551 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4765, allocations: 3.938 kB / 0.5103 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006797/0.4833, allocations: 2.297 MB / 0.5125 GB, free: 6.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.4846, allocations: 173.6 kB / 0.5127 GB, free: 6.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007733/0.4924, allocations: 3.94 MB / 0.5165 GB, free: 2.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009253/0.4933, allocations: 1.152 MB / 0.5177 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001065/0.4944, allocations: 310.8 kB / 0.518 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004184/0.4949, allocations: 67.42 kB / 0.518 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4949, allocations: 4 kB / 0.518 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of Templates: time 0.2366/0.7314, allocations: 22.72 MB / 0.5402 GB, free: 75.86 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1) Environment - environmentSimulation: