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.001765/0.001765, allocations: 198.2 kB / 8.768 MB, free: 316 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008843/0.0008844, allocations: 95.8 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.54e-05/1.538e-05, allocations: 8 kB / 343.7 MB, free: 8.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09921/0.09924, allocations: 51.47 MB / 395.2 MB, free: 4.734 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3484/0.4477, allocations: 110.2 MB / 0.4936 GB, free: 15.22 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.448, allocations: 94.97 kB / 0.4937 GB, free: 15.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09029/0.5383, allocations: 35.38 MB / 0.5282 GB, free: 0.6445 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5384, allocations: 0 / 0.5282 GB, free: 0.6445 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001359/0.5385, allocations: 51.94 kB / 0.5283 GB, free: 0.5938 MB / 394.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.004677/0.5432, allocations: 2.155 MB / 0.5304 GB, free: 14.37 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.5432, allocations: 8.031 kB / 0.5304 GB, free: 14.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008666/0.5441, allocations: 289.2 kB / 0.5307 GB, free: 14.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002323/0.5464, allocations: 1.37 MB / 0.532 GB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005936/0.547, allocations: 196.6 kB / 0.5322 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002219/0.5473, allocations: 92 kB / 0.5323 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00361/0.5509, allocations: 2.31 MB / 0.5345 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003386/0.5543, allocations: 2.293 MB / 0.5368 GB, free: 7.633 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.558e-05/0.5544, allocations: 4 kB / 0.5368 GB, free: 7.629 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/0.5545, allocations: 4 kB / 0.5368 GB, free: 7.625 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.142e-05/0.5546, allocations: 62.95 kB / 0.5368 GB, free: 7.562 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01547/0.5701, allocations: 7.718 MB / 0.5444 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002847/0.573, allocations: 2.056 MB / 0.5464 GB, free: 13.67 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001847/0.5748, allocations: 1.28 MB / 0.5476 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001141/0.575, allocations: 17.38 kB / 0.5477 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00167/0.5767, allocations: 1.118 MB / 0.5487 GB, free: 11.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=143): time 4.569e-06/0.5767, allocations: 3.938 kB / 0.5488 GB, free: 11.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=143): time 0.003719/0.5804, allocations: 2.308 MB / 0.551 GB, free: 8.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001499/0.5806, allocations: 286.3 kB / 0.5513 GB, free: 8.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002078/0.5827, allocations: 1.053 MB / 0.5523 GB, free: 7.508 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001464/0.5828, allocations: 33.7 kB / 0.5523 GB, free: 7.469 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007495/0.5836, allocations: 0.7035 MB / 0.553 GB, free: 6.754 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004511/0.584, allocations: 437.7 kB / 0.5534 GB, free: 6.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.5842, allocations: 0 / 0.5534 GB, free: 6.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.5843, allocations: 373.8 kB / 0.5538 GB, free: 5.949 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.5856, allocations: 0.8746 MB / 0.5547 GB, free: 5.074 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/0.5871, allocations: 1.195 MB / 0.5558 GB, free: 3.754 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.5884, allocations: 0.9236 MB / 0.5567 GB, free: 2.832 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.5884, allocations: 4 kB / 0.5567 GB, free: 2.828 MB / 426.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.003801/0.5923, allocations: 2.513 MB / 0.5592 GB, free: 304 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.217e-05/0.5923, allocations: 39.41 kB / 0.5592 GB, free: 260 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.5e-05/0.5924, allocations: 8 kB / 0.5592 GB, free: 252 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.5941, allocations: 0.7779 MB / 0.56 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009085/0.5951, allocations: 219.6 kB / 0.5602 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/0.6065, allocations: 9.694 MB / 0.5697 GB, free: 5.215 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/0.6092, allocations: 358.6 kB / 0.57 GB, free: 4.863 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003017/0.6095, allocations: 52 kB / 0.5701 GB, free: 4.812 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 (132): * Single equations (assignments): 124 * 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.0005501/0.6101, allocations: 214.6 kB / 0.5703 GB, free: 4.594 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004345/0.6106, allocations: 154.1 kB / 0.5704 GB, free: 4.441 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003919/0.6145, allocations: 2.487 MB / 0.5728 GB, free: 1.926 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.6145, allocations: 12 kB / 0.5728 GB, free: 1.914 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.6145, allocations: 0 / 0.5728 GB, free: 1.914 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.6145, allocations: 11.97 kB / 0.5729 GB, free: 1.902 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2304/0.845, allocations: 4.867 MB / 0.5776 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.845, allocations: 0 / 0.5776 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006944/0.8457, allocations: 138.4 kB / 0.5777 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/0.8471, allocations: 0.736 MB / 0.5785 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.8472, allocations: 19.36 kB / 0.5785 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009106/0.8563, allocations: 9.441 MB / 0.5877 GB, free: 96.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.8564, allocations: 0 / 0.5877 GB, free: 96.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00514/0.8615, allocations: 3.925 MB / 0.5915 GB, free: 96.47 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000881/0.8624, allocations: 493.5 kB / 0.592 GB, free: 96.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003547/0.8628, allocations: 12.39 kB / 0.592 GB, free: 96.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002194/0.865, allocations: 299.5 kB / 0.5923 GB, free: 96.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007094/0.8657, allocations: 389.4 kB / 0.5927 GB, free: 96.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.8658, allocations: 44.39 kB / 0.5927 GB, free: 96.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001151/0.867, allocations: 0.7935 MB / 0.5935 GB, free: 96.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.867, allocations: 0 / 0.5935 GB, free: 96.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002002/0.869, allocations: 0.5409 MB / 0.594 GB, free: 96.15 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 (82): * Single equations (assignments): 75 * 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.0004809/0.8695, allocations: 222.9 kB / 0.5942 GB, free: 96.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003459/0.873, allocations: 2.822 MB / 0.597 GB, free: 95.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.873, allocations: 0 / 0.597 GB, free: 95.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002122/0.8751, allocations: 1.95 MB / 0.5989 GB, free: 95.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/0.8772, allocations: 390.6 kB / 0.5993 GB, free: 95.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007906/0.8851, allocations: 3.502 MB / 0.6027 GB, free: 93.89 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001907/0.8871, allocations: 1.741 MB / 0.6044 GB, free: 93.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001327/0.8884, allocations: 342.9 kB / 0.6047 GB, free: 93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004072/0.8888, allocations: 92.06 kB / 0.6048 GB, free: 93 MB / 442.7 MB Notification: Performance of SimCode: time 6.82e-07/0.8889, allocations: 0 / 0.6048 GB, free: 93 MB / 442.7 MB Notification: Performance of Templates: time 0.05066/0.9395, allocations: 29.64 MB / 0.6337 GB, free: 91.43 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)