Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|filter.1..x.1.|filter.1..x.2.|filter.2..x.1.|filter.2..x.2.|harmonic.mean1.x|harmonic.mean2.x|harmonic.y_rms|harmonic.y_arg|integrator.y|potentialSensor.phi.1.|potentialSensor.phi.2.|potentialSensor.phi.3.|toPolar.y.1.|toPolar.y.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|filter.1..x.1.|filter.1..x.2.|filter.2..x.1.|filter.2..x.2.|harmonic.mean1.x|harmonic.mean2.x|harmonic.y_rms|harmonic.y_arg|integrator.y|potentialSensor.phi.1.|potentialSensor.phi.2.|potentialSensor.phi.3.|toPolar.y.1.|toPolar.y.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008292/0.0008292, allocations: 86.16 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.547e-05/2.549e-05, allocations: 4 kB / 350.6 MB, free: 2.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08524/0.08528, allocations: 51.47 MB / 402 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3139/0.3993, allocations: 110.9 MB / 0.5009 GB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.3996, allocations: 87.52 kB / 0.501 GB, free: 10.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08864/0.4882, allocations: 35.77 MB / 0.5359 GB, free: 8.383 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4882, allocations: 0 / 0.5359 GB, free: 8.383 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001206/0.4884, allocations: 51.94 kB / 0.536 GB, free: 8.332 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.004397/0.4928, allocations: 2.153 MB / 0.5381 GB, free: 6.117 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.4928, allocations: 12.03 kB / 0.5381 GB, free: 6.105 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008355/0.4937, allocations: 285.2 kB / 0.5384 GB, free: 5.824 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002429/0.4961, allocations: 1.382 MB / 0.5397 GB, free: 4.387 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006005/0.4967, allocations: 240.6 kB / 0.54 GB, free: 4.145 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002846/0.497, allocations: 156 kB / 0.5401 GB, free: 3.992 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003754/0.5008, allocations: 2.518 MB / 0.5426 GB, free: 1.348 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.5008, allocations: 0 / 0.5426 GB, free: 1.348 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001727/0.501, allocations: 67.98 kB / 0.5426 GB, free: 1.281 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-05/0.5011, allocations: 66.95 kB / 0.5427 GB, free: 1.215 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00352/0.5046, allocations: 2.421 MB / 0.5451 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01429/0.5189, allocations: 8.064 MB / 0.5529 GB, free: 6.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00287/0.5218, allocations: 1.974 MB / 0.5549 GB, free: 4.602 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001818/0.5237, allocations: 1.329 MB / 0.5562 GB, free: 3.277 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.892e-05/0.5238, allocations: 17.3 kB / 0.5562 GB, free: 3.262 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001595/0.5254, allocations: 1.147 MB / 0.5573 GB, free: 2.094 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 3.376e-06/0.5254, allocations: 0 / 0.5573 GB, free: 2.094 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.003617/0.529, allocations: 2.454 MB / 0.5597 GB, free: 15.62 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.5291, allocations: 294.3 kB / 0.56 GB, free: 15.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0018/0.531, allocations: 1.355 MB / 0.5613 GB, free: 13.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.5311, allocations: 65.69 kB / 0.5614 GB, free: 13.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005531/0.5316, allocations: 0.6973 MB / 0.562 GB, free: 13.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003436/0.532, allocations: 437.9 kB / 0.5625 GB, free: 12.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.56e-05/0.5321, allocations: 31.94 kB / 0.5625 GB, free: 12.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.5322, allocations: 365.9 kB / 0.5628 GB, free: 12.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.5335, allocations: 0.9059 MB / 0.5637 GB, free: 11.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.5349, allocations: 1.222 MB / 0.5649 GB, free: 10.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.5362, allocations: 0.9808 MB / 0.5659 GB, free: 9.066 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.5362, allocations: 4 kB / 0.5659 GB, free: 9.062 MB / 442.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003676/0.5399, allocations: 2.69 MB / 0.5685 GB, free: 6.348 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.182e-05/0.5399, allocations: 43.42 kB / 0.5685 GB, free: 6.301 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.894e-05/0.54, allocations: 12 kB / 0.5686 GB, free: 6.289 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001599/0.5416, allocations: 0.7755 MB / 0.5693 GB, free: 5.504 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008189/0.5424, allocations: 223.6 kB / 0.5695 GB, free: 5.285 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2171/0.7595, allocations: 9.952 MB / 0.5792 GB, free: 97.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002575/0.7621, allocations: 421.2 kB / 0.5797 GB, free: 97.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.7623, allocations: 52.84 kB / 0.5797 GB, free: 97.49 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 53 ($PRE.pwm.svPWM.firstTrigger,pwm.svPWM.firstTrigger,$PRE.pwm.svPWM.phiSec,pwm.svPWM.phiSec,$PRE.pwm.svPWM.phiPos,pwm.svPWM.phiPos,$PRE.pwm.svPWM.phiRef,pwm.svPWM.phiRef,$PRE.pwm.svPWM.uRef,pwm.svPWM.uRef,$whenCondition3,$whenCondition2,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last,$whenCondition4,$whenCondition1,pwm.svPWM.sampleTrigger,$PRE.pwm.svPWM.ka,pwm.svPWM.ka,$PRE.pwm.svPWM.kb,pwm.svPWM.kb,$PRE.pwm.svPWM.ta,pwm.svPWM.ta,$PRE.pwm.svPWM.tb,pwm.svPWM.tb,$PRE.pwm.svPWM.t0,pwm.svPWM.t0,$PRE.pwm.svPWM.T0,pwm.svPWM.T0,multiPhase2Level.andCondition_p[1].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.fire_n[1],multiPhase2Level.fire_n[2],multiPhase2Level.fire_n[3],multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[3].off,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {4 15,4 15,4 15} Notification: Performance of prepare postOptimizeDAE: time 0.0003848/0.7627, allocations: 267.8 kB / 0.58 GB, free: 97.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002369/0.763, allocations: 175.3 kB / 0.5801 GB, free: 97.34 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003656/0.7666, allocations: 2.657 MB / 0.5827 GB, free: 97.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.7666, allocations: 14.47 kB / 0.5827 GB, free: 97.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.7667, allocations: 0.6875 kB / 0.5827 GB, free: 97.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.7667, allocations: 10.94 kB / 0.5827 GB, free: 97.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006855/0.7735, allocations: 5.206 MB / 0.5878 GB, free: 96.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.7736, allocations: 0.5 kB / 0.5878 GB, free: 96.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006393/0.7742, allocations: 141.1 kB / 0.588 GB, free: 96.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001329/0.7756, allocations: 0.7553 MB / 0.5887 GB, free: 96.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.7757, allocations: 31.28 kB / 0.5887 GB, free: 96.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008989/0.7847, allocations: 9.72 MB / 0.5982 GB, free: 92.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.7847, allocations: 0.6875 kB / 0.5982 GB, free: 92.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005118/0.7899, allocations: 4.097 MB / 0.6022 GB, free: 91.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009903/0.7909, allocations: 0.4967 MB / 0.6027 GB, free: 91.63 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000225/0.7911, allocations: 38.33 kB / 0.6027 GB, free: 91.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002059/0.7932, allocations: 316.8 kB / 0.603 GB, free: 91.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006524/0.7938, allocations: 381.6 kB / 0.6034 GB, free: 91.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.794, allocations: 41.77 kB / 0.6035 GB, free: 91.52 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001294/0.7953, allocations: 1.044 MB / 0.6045 GB, free: 91.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.7953, allocations: 3.094 kB / 0.6045 GB, free: 91.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001748/0.797, allocations: 0.5924 MB / 0.6051 GB, free: 91.03 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (harmonic.mean1.x,harmonic.mean2.x,integrator.y,filter[1].x[1],filter[1].x[2],filter[2].x[1],filter[2].x[2]) * Number of discrete variables: 39 (pwm.svPWM.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pwm.svPWM.firstTrigger,pwm.svPWM.uRef,pwm.svPWM.phiRef,pwm.svPWM.phiPos,pwm.svPWM.ka,pwm.svPWM.kb,pwm.svPWM.phiSec,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.t0,pwm.svPWM.T0,multiPhase2Level.andCondition_p[1].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.fire_n[1],multiPhase2Level.fire_n[2],multiPhase2Level.fire_n[3],multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[3].off,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 13 (harmonic.mean1.x,harmonic.mean2.x,pwm.svPWM.T0,pwm.svPWM.t0,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.phiSec,pwm.svPWM.kb,pwm.svPWM.ka,pwm.svPWM.phiPos,pwm.svPWM.phiRef,pwm.svPWM.uRef,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {4 14,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003995/0.7974, allocations: 240.2 kB / 0.6053 GB, free: 90.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003758/0.8012, allocations: 2.922 MB / 0.6081 GB, free: 89.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.8012, allocations: 5.703 kB / 0.6081 GB, free: 89.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002392/0.8036, allocations: 2.005 MB / 0.6101 GB, free: 88.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/0.8055, allocations: 439.8 kB / 0.6105 GB, free: 88.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007988/0.8135, allocations: 3.674 MB / 0.6141 GB, free: 87.12 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/0.8151, allocations: 1.734 MB / 0.6158 GB, free: 86.24 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001399/0.8165, allocations: 364.8 kB / 0.6161 GB, free: 86.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003426/0.8168, allocations: 94.88 kB / 0.6162 GB, free: 86.22 MB / 442.7 MB Notification: Performance of SimCode: time 6.91e-07/0.8169, allocations: 0 / 0.6162 GB, free: 86.22 MB / 442.7 MB Notification: Performance of Templates: time 0.04533/0.8622, allocations: 33.84 MB / 0.6493 GB, free: 84.32 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe 2>&1)