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.001444/0.001444, allocations: 113.6 kB / 17.69 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.001652/0.001652, allocations: 192 kB / 18.63 MB, free: 4.375 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.384/1.384, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1797/0.1797, allocations: 37.98 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.001524/0.001524, allocations: 64.47 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2231, allocations: 55.25 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.006755/0.2299, allocations: 6.929 MB / 439 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003463/0.2334, allocations: 2.073 MB / 441 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005317/0.234, allocations: 27.88 kB / 441.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001304/0.2353, allocations: 0.4999 MB / 441.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001251/0.2366, allocations: 0.5483 MB / 442.1 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000926/0.2375, allocations: 399.2 kB / 442.5 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001014/0.2385, allocations: 1.414 MB / 443.9 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007331/0.2393, allocations: 0.8069 MB / 444.7 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005896/0.2399, allocations: 0.6112 MB / 445.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006943/0.2406, allocations: 0.6815 MB / 446 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.2407, allocations: 96 kB / 446.1 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006914/0.2414, allocations: 0.5149 MB / 446.6 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003406/0.2417, allocations: 0.4988 MB / 447.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004232/0.2422, allocations: 0.5638 MB / 447.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001142/0.2433, allocations: 1.538 MB / 449.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2433, allocations: 0 / 449.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.075e-06/0.2433, allocations: 0 / 449.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.2434, allocations: 3.938 kB / 449.2 MB, free: 2.242 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.002635/0.246, allocations: 1.563 MB / 450.8 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.2461, allocations: 11.89 kB / 450.8 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007124/0.2468, allocations: 163.5 kB / 451 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.2481, allocations: 0.7292 MB / 451.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.2483, allocations: 175.7 kB / 451.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002527/0.2485, allocations: 107.8 kB / 452 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002517/0.2511, allocations: 1.539 MB / 453.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.904e-05/0.2511, allocations: 0 / 453.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.606e-05/0.2512, allocations: 36 kB / 453.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001586/0.2514, allocations: 69.97 kB / 453.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002054/0.2534, allocations: 1.167 MB / 454.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006348/0.2598, allocations: 4.769 MB / 459.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002625/0.2625, allocations: 1.125 MB / 460.7 MB, free: 6.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/0.2636, allocations: 0.5617 MB / 461.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.576e-05/0.2637, allocations: 8.547 kB / 461.2 MB, free: 5.824 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001349/0.2651, allocations: 0.7182 MB / 462 MB, free: 5.082 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 8.505e-06/0.2651, allocations: 0 / 462 MB, free: 5.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=81): time 0.0066/0.2717, allocations: 3.197 MB / 465.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.2718, allocations: 127.5 kB / 465.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000678/0.2725, allocations: 0.581 MB / 465.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.726e-05/0.2726, allocations: 53.69 kB / 465.9 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000329/0.2729, allocations: 455 kB / 466.4 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002326/0.2732, allocations: 276.3 kB / 466.6 MB, free: 272 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002762/0.2734, allocations: 198.5 kB / 466.8 MB, free: 68 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.2736, allocations: 394.8 kB / 467.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006636/0.2743, allocations: 482 kB / 467.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008172/0.2751, allocations: 0.746 MB / 468.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.2766, allocations: 1.257 MB / 469.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.2767, allocations: 4 kB / 469.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002375/0.279, allocations: 1.584 MB / 471.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.254e-05/0.2791, allocations: 65.61 kB / 471.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001813/0.2809, allocations: 1.332 MB / 472.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004574/0.2814, allocations: 113.6 kB / 472.8 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007415/0.2822, allocations: 199.7 kB / 473 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002794/0.285, allocations: 3.364 MB / 476.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006798/0.2857, allocations: 71.83 kB / 476.4 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/0.2858, allocations: 79.88 kB / 476.5 MB, free: 5.805 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.000527/0.2863, allocations: 377.5 kB / 476.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.2865, allocations: 79.06 kB / 476.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002611/0.2891, allocations: 1.266 MB / 478.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/0.2892, allocations: 12 kB / 478.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.2892, allocations: 4 kB / 478.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.2892, allocations: 7.922 kB / 478.2 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004111/0.2933, allocations: 2.435 MB / 480.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.2933, allocations: 4 kB / 480.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007113/0.294, allocations: 151.9 kB / 480.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001164/0.2942, allocations: 32.84 kB / 480.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-05/0.2943, allocations: 23.97 kB / 480.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0013/0.2956, allocations: 1.638 MB / 482.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2956, allocations: 0 / 482.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003586/0.2992, allocations: 1.916 MB / 484.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004405/0.2996, allocations: 255.9 kB / 484.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001705/0.2998, allocations: 71.95 kB / 484.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006891/0.3005, allocations: 95.86 kB / 484.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.3007, allocations: 52.47 kB / 484.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.437e-05/0.3007, allocations: 35.97 kB / 484.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004689/0.3012, allocations: 398.8 kB / 485.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3012, allocations: 0 / 485.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009495/0.3022, allocations: 244.2 kB / 485.5 MB, free: 12.4 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.000352/0.3025, allocations: 178.9 kB / 485.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002533/0.3051, allocations: 1.638 MB / 487.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3051, allocations: 0 / 487.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001264/0.3064, allocations: 0.6558 MB / 488 MB, free: 9.867 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008333/0.3072, allocations: 178.9 kB / 488.2 MB, free: 9.691 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003799/0.311, allocations: 2.321 MB / 490.5 MB, free: 7.336 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007151/0.3117, allocations: 1.114 MB / 491.6 MB, free: 6.191 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005631/0.3123, allocations: 234.5 kB / 491.9 MB, free: 5.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.3125, allocations: 67.42 kB / 491.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3125, allocations: 0 / 491.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of Templates: time 0.01839/0.3309, allocations: 11.1 MB / 0.4912 GB, free: 10.81 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)