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.0009196/0.0009196, allocations: 91.05 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.00108/0.00108, allocations: 176.5 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.623/1.623, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.189/0.189, allocations: 38.05 MB / 310.1 MB, free: 5.906 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.0005741/0.0005741, allocations: 14.81 kB / 377.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2889, allocations: 56.34 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.00644/0.2953, allocations: 7.929 MB / 441.4 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004661/0.3, allocations: 2.513 MB / 443.9 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001335/0.3014, allocations: 55.62 kB / 444 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006654/0.3021, allocations: 115.2 kB / 444.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001776/0.3039, allocations: 0.5097 MB / 444.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.305, allocations: 355.5 kB / 445 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00188/0.3069, allocations: 1.925 MB / 446.9 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001604/0.3085, allocations: 1.026 MB / 447.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.3096, allocations: 0.4978 MB / 448.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001055/0.3107, allocations: 0.6385 MB / 449 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001744/0.3108, allocations: 44 kB / 449.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009142/0.3118, allocations: 0.5031 MB / 449.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004367/0.3122, allocations: 446.8 kB / 450 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007607/0.313, allocations: 0.5225 MB / 450.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001524/0.3145, allocations: 1.444 MB / 452 MB, free: 52 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3145, allocations: 0 / 452 MB, free: 52 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3146, allocations: 3.938 kB / 452 MB, free: 48 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.753e-05/0.3146, allocations: 0 / 452 MB, free: 48 kB / 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.003457/0.3181, allocations: 1.357 MB / 453.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.514e-05/0.3182, allocations: 12.03 kB / 453.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001103/0.3193, allocations: 163.4 kB / 453.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001623/0.3209, allocations: 0.6942 MB / 454.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003017/0.3212, allocations: 175.6 kB / 454.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002982/0.3215, allocations: 107.8 kB / 454.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003177/0.3247, allocations: 1.559 MB / 456.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.564e-05/0.3248, allocations: 7.938 kB / 456.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.3249, allocations: 35.98 kB / 456.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001598/0.325, allocations: 69.97 kB / 456.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002268/0.3273, allocations: 1.194 MB / 457.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00622/0.3336, allocations: 4.801 MB / 462.2 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00295/0.3365, allocations: 1.196 MB / 463.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/0.3379, allocations: 0.5934 MB / 464 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.668e-05/0.3379, allocations: 16.53 kB / 464 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00145/0.3394, allocations: 0.734 MB / 464.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 2.876e-06/0.3394, allocations: 0 / 464.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=81): time 0.007344/0.3468, allocations: 3.318 MB / 468 MB, free: 15.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.404e-05/0.3469, allocations: 127.4 kB / 468.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007062/0.3476, allocations: 0.5926 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.746e-05/0.3477, allocations: 49.69 kB / 468.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/0.348, allocations: 455.1 kB / 469.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.3483, allocations: 272.2 kB / 469.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.3484, allocations: 101.7 kB / 469.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.3486, allocations: 398.7 kB / 470 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000678/0.3493, allocations: 478 kB / 470.5 MB, free: 13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008088/0.3501, allocations: 0.746 MB / 471.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001476/0.3516, allocations: 1.257 MB / 472.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.3516, allocations: 4 kB / 472.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002329/0.3539, allocations: 1.58 MB / 474 MB, free: 9.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.49e-05/0.354, allocations: 65.61 kB / 474.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001755/0.3558, allocations: 1.326 MB / 475.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003883/0.3562, allocations: 113.6 kB / 475.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007113/0.3569, allocations: 207.6 kB / 475.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00254/0.3594, allocations: 3.083 MB / 478.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007546/0.3602, allocations: 71.94 kB / 478.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.3603, allocations: 79.94 kB / 479 MB, free: 3.898 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.0006628/0.361, allocations: 377.6 kB / 479.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.3612, allocations: 82.98 kB / 479.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002845/0.3641, allocations: 1.325 MB / 480.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.497e-05/0.3641, allocations: 19.98 kB / 480.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3641, allocations: 0 / 480.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.3641, allocations: 3.984 kB / 480.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004389/0.3685, allocations: 2.475 MB / 483.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3685, allocations: 0 / 483.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006978/0.3692, allocations: 147.8 kB / 483.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001109/0.3694, allocations: 36.78 kB / 483.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.496e-05/0.3694, allocations: 31.97 kB / 483.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/0.3705, allocations: 1.467 MB / 484.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3705, allocations: 8.125 kB / 484.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003913/0.3745, allocations: 1.993 MB / 486.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003731/0.3748, allocations: 248 kB / 487.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.375, allocations: 80.02 kB / 487.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007846/0.3758, allocations: 107.9 kB / 487.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.376, allocations: 56.52 kB / 487.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-05/0.376, allocations: 23.98 kB / 487.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000486/0.3765, allocations: 402.8 kB / 487.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3765, allocations: 0 / 487.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001069/0.3776, allocations: 240.2 kB / 488.1 MB, free: 10.48 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.0003056/0.3779, allocations: 182.8 kB / 488.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003006/0.3809, allocations: 1.651 MB / 489.9 MB, free: 8.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.381, allocations: 192 / 489.9 MB, free: 8.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.3824, allocations: 0.6861 MB / 490.6 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.3835, allocations: 174.7 kB / 490.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004485/0.388, allocations: 2.884 MB / 493.6 MB, free: 4.801 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007179/0.3887, allocations: 1.111 MB / 494.7 MB, free: 3.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006972/0.3894, allocations: 242.5 kB / 495 MB, free: 3.418 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002052/0.3896, allocations: 67.42 kB / 495 MB, free: 3.352 MB / 366.1 MB Notification: Performance of SimCode: time 1.213e-06/0.3896, allocations: 0 / 495 MB, free: 3.352 MB / 366.1 MB Notification: Performance of Templates: time 0.01914/0.4088, allocations: 10.35 MB / 0.4935 GB, free: 9.027 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: