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.001295/0.001295, allocations: 97.16 kB / 16.3 MB, free: 5.656 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.001237/0.001237, allocations: 182.5 kB / 17.19 MB, free: 5.59 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.632/1.632, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1996/0.1996, allocations: 38.04 MB / 309.7 MB, free: 6.137 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.0005581/0.0005582, allocations: 15.98 kB / 376.5 MB, free: 3.207 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3038, allocations: 56.33 MB / 432.8 MB, free: 19 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.005769/0.3096, allocations: 7.139 MB / 440 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00469/0.3143, allocations: 2.441 MB / 442.4 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006276/0.315, allocations: 51.62 kB / 442.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003698/0.3154, allocations: 154.9 kB / 442.6 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001242/0.3166, allocations: 0.5257 MB / 443.1 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007538/0.3174, allocations: 391.2 kB / 443.5 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006536/0.318, allocations: 0.7412 MB / 444.2 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001012/0.3191, allocations: 0.9004 MB / 445.1 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004916/0.3196, allocations: 458.5 kB / 445.6 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004983/0.3201, allocations: 474.5 kB / 446.1 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.706e-05/0.3202, allocations: 40 kB / 446.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005511/0.3207, allocations: 443.3 kB / 446.5 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003098/0.321, allocations: 415 kB / 446.9 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.3212, allocations: 221.1 kB / 447.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007236/0.322, allocations: 1.15 MB / 448.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.322, allocations: 0 / 448.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.322, allocations: 0 / 448.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.322, allocations: 0 / 448.3 MB, free: 3.418 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.002137/0.3241, allocations: 1.372 MB / 449.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.3242, allocations: 8.031 kB / 449.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006614/0.3248, allocations: 166.5 kB / 449.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.3259, allocations: 0.6776 MB / 450.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.326, allocations: 175.1 kB / 450.7 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/0.3262, allocations: 103.9 kB / 450.8 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002294/0.3285, allocations: 1.54 MB / 452.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.3285, allocations: 7.938 kB / 452.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.743e-05/0.3286, allocations: 35.98 kB / 452.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/0.3288, allocations: 69.97 kB / 452.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002166/0.331, allocations: 1.179 MB / 453.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007055/0.338, allocations: 4.812 MB / 458.4 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002965/0.3411, allocations: 1.192 MB / 459.6 MB, free: 7.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.027e-05/0.3411, allocations: 12.59 kB / 459.6 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001453/0.3426, allocations: 0.73 MB / 460.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 2.695e-06/0.3426, allocations: 0 / 460.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=81): time 0.007307/0.3499, allocations: 3.371 MB / 463.7 MB, free: 3.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.3501, allocations: 135.4 kB / 463.9 MB, free: 3.285 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007155/0.3508, allocations: 0.581 MB / 464.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.369e-05/0.3509, allocations: 53.62 kB / 464.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005097/0.3514, allocations: 463 kB / 465 MB, free: 2.176 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000251/0.3517, allocations: 268.3 kB / 465.2 MB, free: 1.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.697e-05/0.3517, allocations: 20 kB / 465.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.3519, allocations: 390.8 kB / 465.6 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006698/0.3526, allocations: 462 kB / 466.1 MB, free: 1.047 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000809/0.3534, allocations: 0.7304 MB / 466.8 MB, free: 212 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007854/0.3542, allocations: 0.5899 MB / 467.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.3542, allocations: 4 kB / 467.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00232/0.3565, allocations: 1.533 MB / 468.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.797e-05/0.3566, allocations: 61.67 kB / 469 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001837/0.3585, allocations: 1.274 MB / 470.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003714/0.3589, allocations: 113.9 kB / 470.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007564/0.3596, allocations: 203.7 kB / 470.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/0.3622, allocations: 3.001 MB / 473.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007731/0.363, allocations: 83.83 kB / 473.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.3631, allocations: 80.12 kB / 473.7 MB, free: 8.914 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,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006521/0.3638, allocations: 381.3 kB / 474.1 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001906/0.364, allocations: 75.06 kB / 474.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002754/0.3668, allocations: 1.298 MB / 475.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.087e-05/0.3668, allocations: 12 kB / 475.5 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.3668, allocations: 8 kB / 475.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.3668, allocations: 3.984 kB / 475.5 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004356/0.3712, allocations: 2.452 MB / 478 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3712, allocations: 4.094 kB / 478 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007012/0.3719, allocations: 147.8 kB / 478.1 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.857e-05/0.372, allocations: 28.8 kB / 478.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.651e-05/0.3721, allocations: 27.97 kB / 478.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/0.3733, allocations: 1.381 MB / 479.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.3733, allocations: 8.016 kB / 479.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003918/0.3772, allocations: 2.023 MB / 481.6 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007118/0.3779, allocations: 240.1 kB / 481.8 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002927/0.3782, allocations: 79.94 kB / 481.9 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/0.3794, allocations: 99.88 kB / 482 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.3796, allocations: 60.52 kB / 482 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.918e-05/0.3797, allocations: 27.97 kB / 482.1 MB, free: 228 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007968/0.3805, allocations: 398.8 kB / 482.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3805, allocations: 0 / 482.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001134/0.3817, allocations: 236 kB / 482.7 MB, free: 15.6 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 (79): * Single equations (assignments): 64 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003443/0.382, allocations: 190.7 kB / 482.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002862/0.3849, allocations: 1.634 MB / 484.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3849, allocations: 0.75 kB / 484.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.3862, allocations: 0.6822 MB / 485.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008356/0.3871, allocations: 146.8 kB / 485.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004398/0.3915, allocations: 2.818 MB / 488.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007634/0.3923, allocations: 1.13 MB / 489.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007001/0.393, allocations: 242.5 kB / 489.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002037/0.3932, allocations: 67.42 kB / 489.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of SimCode: time 1.193e-06/0.3932, allocations: 0 / 489.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of Templates: time 0.0197/0.4129, allocations: 10.13 MB / 499.7 MB, free: 14.46 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1) Environment - environmentSimulation: