Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 111.1 kB / 17.68 MB, free: 5.355 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.001313/0.001313, allocations: 192 kB / 18.62 MB, free: 4.434 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.653/1.653, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1848/0.1848, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.001742/0.001742, allocations: 64.28 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.288, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.008145/0.2962, allocations: 6.934 MB / 439 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003726/0.3, allocations: 2.065 MB / 441 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004641/0.3005, allocations: 31.81 kB / 441.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.3018, allocations: 0.4975 MB / 441.5 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001519/0.3034, allocations: 0.5561 MB / 442.1 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.3044, allocations: 395.2 kB / 442.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001295/0.3057, allocations: 1.407 MB / 443.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008499/0.3066, allocations: 0.8069 MB / 444.7 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007744/0.3074, allocations: 0.6151 MB / 445.3 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000778/0.3082, allocations: 0.6892 MB / 446 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.3083, allocations: 96 kB / 446.1 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007636/0.3091, allocations: 0.511 MB / 446.6 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003808/0.3095, allocations: 0.5027 MB / 447.1 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004952/0.31, allocations: 0.556 MB / 447.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.3115, allocations: 1.538 MB / 449.2 MB, free: 2.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3115, allocations: 4 kB / 449.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3115, allocations: 0 / 449.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.3115, allocations: 0 / 449.2 MB, free: 2.227 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002837/0.3143, allocations: 1.56 MB / 450.8 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.3144, allocations: 23.83 kB / 450.8 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007516/0.3152, allocations: 159.6 kB / 451 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.3165, allocations: 0.7214 MB / 451.7 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.3167, allocations: 175.7 kB / 451.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002487/0.317, allocations: 107.9 kB / 452 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.3196, allocations: 1.535 MB / 453.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.476e-05/0.3197, allocations: 3.938 kB / 453.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.3198, allocations: 40 kB / 453.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001624/0.3199, allocations: 69.95 kB / 453.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002187/0.3221, allocations: 1.163 MB / 454.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0067/0.3289, allocations: 4.777 MB / 459.5 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00265/0.3315, allocations: 1.121 MB / 460.7 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001184/0.3327, allocations: 0.5656 MB / 461.2 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.576e-05/0.3328, allocations: 12.53 kB / 461.2 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001378/0.3342, allocations: 0.7143 MB / 462 MB, free: 5.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 2.204e-06/0.3342, allocations: 0 / 462 MB, free: 5.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=81): time 0.007256/0.3415, allocations: 3.185 MB / 465.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.628e-05/0.3416, allocations: 131.5 kB / 465.3 MB, free: 1.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009314/0.3425, allocations: 0.5849 MB / 465.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.699e-05/0.3426, allocations: 53.69 kB / 465.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004413/0.3431, allocations: 459 kB / 466.4 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/0.3433, allocations: 272.3 kB / 466.6 MB, free: 256 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000305/0.3436, allocations: 194.5 kB / 466.8 MB, free: 56 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002317/0.3439, allocations: 394.7 kB / 467.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007411/0.3446, allocations: 490 kB / 467.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009417/0.3456, allocations: 0.7382 MB / 468.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001735/0.3473, allocations: 1.261 MB / 469.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.3473, allocations: 4 kB / 469.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002707/0.35, allocations: 1.584 MB / 471.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.454e-05/0.3501, allocations: 69.55 kB / 471.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001874/0.352, allocations: 1.329 MB / 472.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004937/0.3525, allocations: 117.5 kB / 472.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007529/0.3533, allocations: 195.7 kB / 473 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003265/0.3566, allocations: 3.364 MB / 476.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008655/0.3575, allocations: 75.84 kB / 476.4 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.3576, allocations: 75.94 kB / 476.5 MB, free: 5.789 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000728/0.3584, allocations: 377.5 kB / 476.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.3586, allocations: 79.05 kB / 476.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002847/0.3614, allocations: 1.274 MB / 478.2 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/0.3614, allocations: 12 kB / 478.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3615, allocations: 4 kB / 478.2 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/0.3615, allocations: 11.92 kB / 478.2 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004507/0.366, allocations: 2.42 MB / 480.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.63e-05/0.3661, allocations: 7.984 kB / 480.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007197/0.3668, allocations: 143.9 kB / 480.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001032/0.367, allocations: 32.84 kB / 480.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.353e-05/0.367, allocations: 27.97 kB / 480.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/0.3684, allocations: 1.638 MB / 482.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3684, allocations: 0 / 482.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004078/0.3725, allocations: 1.92 MB / 484.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000575/0.3731, allocations: 247.9 kB / 484.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.3733, allocations: 87.88 kB / 484.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006929/0.374, allocations: 87.88 kB / 484.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000255/0.3742, allocations: 56.52 kB / 484.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.671e-05/0.3743, allocations: 27.92 kB / 484.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005765/0.3749, allocations: 402.8 kB / 485.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3749, allocations: 4 kB / 485.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001089/0.376, allocations: 244.2 kB / 485.5 MB, free: 12.38 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.0003589/0.3764, allocations: 174.9 kB / 485.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002759/0.3792, allocations: 1.638 MB / 487.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.3792, allocations: 4 kB / 487.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.3804, allocations: 0.6519 MB / 488 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008674/0.3813, allocations: 184.8 kB / 488.2 MB, free: 9.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004536/0.3859, allocations: 2.315 MB / 490.5 MB, free: 7.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/0.3872, allocations: 1.118 MB / 491.6 MB, free: 6.172 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008087/0.3881, allocations: 238.5 kB / 491.9 MB, free: 5.934 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.3883, allocations: 59.42 kB / 491.9 MB, free: 5.875 MB / 366.1 MB Notification: Performance of SimCode: time 2.585e-06/0.3883, allocations: 0 / 491.9 MB, free: 5.875 MB / 366.1 MB Notification: Performance of Templates: time 0.02058/0.4089, allocations: 11.1 MB / 0.4912 GB, free: 10.79 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)