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.0009728/0.0009729, allocations: 198.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.193/1.193, allocations: 227.2 MB / 245 MB, free: 5.754 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008337/0.0008341, allocations: 104.7 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002107/0.0002107, allocations: 8 kB / 358 MB, free: 9.297 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.1848, allocations: 51.49 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2939/0.4787, allocations: 111 MB / 0.5082 GB, free: 40.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002/0.479, allocations: 92.66 kB / 0.5083 GB, free: 40.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08171/0.5607, allocations: 35.75 MB / 0.5432 GB, free: 37.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.5607, allocations: 3.938 kB / 0.5432 GB, free: 37.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002035/0.5609, allocations: 51 kB / 0.5433 GB, free: 37.71 MB / 378.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.006721/0.5677, allocations: 2.403 MB / 0.5456 GB, free: 36.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.5677, allocations: 11.72 kB / 0.5456 GB, free: 36.58 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001274/0.569, allocations: 288.1 kB / 0.5459 GB, free: 36.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003187/0.5722, allocations: 1.391 MB / 0.5473 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006243/0.5728, allocations: 243.3 kB / 0.5475 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004998/0.5733, allocations: 153.8 kB / 0.5476 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006982/0.5803, allocations: 3.031 MB / 0.5506 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.403e-05/0.5804, allocations: 0 / 0.5506 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002491/0.5807, allocations: 67.47 kB / 0.5507 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.27e-05/0.5807, allocations: 73.36 kB / 0.5507 GB, free: 35.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008586/0.5893, allocations: 3.424 MB / 0.5541 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01342/0.6028, allocations: 8.063 MB / 0.562 GB, free: 30.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005034/0.6078, allocations: 2.491 MB / 0.5644 GB, free: 30.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.699e-05/0.6079, allocations: 23.94 kB / 0.5644 GB, free: 30.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00405/0.612, allocations: 1.662 MB / 0.566 GB, free: 29.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 4.198e-06/0.612, allocations: 0 / 0.566 GB, free: 29.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.0152/0.6272, allocations: 6.09 MB / 0.572 GB, free: 27.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/0.6273, allocations: 289.9 kB / 0.5723 GB, free: 26.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002102/0.6294, allocations: 1.364 MB / 0.5736 GB, free: 26.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.6296, allocations: 64.89 kB / 0.5736 GB, free: 26.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000533/0.6301, allocations: 0.6957 MB / 0.5743 GB, free: 25.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002992/0.6304, allocations: 438.4 kB / 0.5747 GB, free: 25.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.432e-05/0.6305, allocations: 31.66 kB / 0.5748 GB, free: 25.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.31e-05/0.6306, allocations: 361.1 kB / 0.5751 GB, free: 24.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003647/0.6343, allocations: 1.412 MB / 0.5765 GB, free: 23.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003698/0.638, allocations: 1.737 MB / 0.5782 GB, free: 21.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003578/0.6416, allocations: 1.479 MB / 0.5796 GB, free: 20.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.6416, allocations: 0 / 0.5796 GB, free: 20.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.008275/0.6499, allocations: 3.685 MB / 0.5832 GB, free: 16.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.6499, allocations: 45.62 kB / 0.5833 GB, free: 16.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.441e-05/0.65, allocations: 8 kB / 0.5833 GB, free: 16.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001487/0.6514, allocations: 0.7525 MB / 0.584 GB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008339/0.6523, allocations: 231.5 kB / 0.5842 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008692/0.661, allocations: 9.749 MB / 0.5938 GB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002354/0.6634, allocations: 422.2 kB / 0.5942 GB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000186/0.6636, allocations: 52 kB / 0.5942 GB, free: 5.062 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (136): * Single equations (assignments): 128 * 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 13,4 13,4 13} Notification: Performance of prepare postOptimizeDAE: time 0.001193/0.6648, allocations: 0.7568 MB / 0.595 GB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000348/0.6651, allocations: 174 kB / 0.5951 GB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008422/0.6736, allocations: 3.657 MB / 0.5987 GB, free: 440 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.6736, allocations: 12 kB / 0.5987 GB, free: 428 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.6736, allocations: 0 / 0.5987 GB, free: 428 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.6736, allocations: 7.969 kB / 0.5987 GB, free: 420 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.6862, allocations: 5.848 MB / 0.6044 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.6862, allocations: 0 / 0.6044 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006878/0.6869, allocations: 151.8 kB / 0.6046 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00148/0.6884, allocations: 0.7388 MB / 0.6053 GB, free: 9.586 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/0.6885, allocations: 35.98 kB / 0.6053 GB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/0.6992, allocations: 9.756 MB / 0.6149 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.6992, allocations: 0 / 0.6149 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01415/0.7133, allocations: 5.6 MB / 0.6203 GB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/0.7147, allocations: 0.5025 MB / 0.6208 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003926/0.7151, allocations: 36 kB / 0.6208 GB, free: 9.207 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002223/0.7173, allocations: 319.6 kB / 0.6212 GB, free: 8.895 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007216/0.7181, allocations: 376.9 kB / 0.6215 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.7182, allocations: 39.98 kB / 0.6216 GB, free: 8.488 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001758/0.72, allocations: 1.063 MB / 0.6226 GB, free: 7.426 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.72, allocations: 0 / 0.6226 GB, free: 7.426 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001971/0.722, allocations: 0.5811 MB / 0.6232 GB, free: 6.844 MB / 410.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 77 * 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 13,4 13,4 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004894/0.7225, allocations: 244.4 kB / 0.6234 GB, free: 6.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009623/0.7321, allocations: 3.909 MB / 0.6272 GB, free: 2.617 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.7321, allocations: 0 / 0.6272 GB, free: 2.617 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005292/0.7374, allocations: 2.506 MB / 0.6297 GB, free: 64 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/0.7392, allocations: 435.8 kB / 0.6301 GB, free: 15.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.7504, allocations: 5.379 MB / 0.6353 GB, free: 10.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001612/0.752, allocations: 1.733 MB / 0.637 GB, free: 8.484 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001126/0.7531, allocations: 376.7 kB / 0.6374 GB, free: 8.109 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003606/0.7535, allocations: 99.42 kB / 0.6375 GB, free: 8.012 MB / 426.7 MB Notification: Performance of SimCode: time 8.01e-07/0.7535, allocations: 0 / 0.6375 GB, free: 8.012 MB / 426.7 MB Notification: Performance of Templates: time 0.04934/0.8029, allocations: 33.32 MB / 0.67 GB, free: 6.848 MB / 458.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)