Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001965/0.001966, allocations: 180.9 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008651/0.0008651, allocations: 90 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.0002398, allocations: 4 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1982, allocations: 50.4 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.12/0.3182, allocations: 110.2 MB / 0.4997 GB, free: 2.211 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.3185, allocations: 95.94 kB / 0.4998 GB, free: 2.117 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2319/0.5504, allocations: 35.1 MB / 0.5341 GB, free: 80.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5505, allocations: 0 / 0.5341 GB, free: 80.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001857/0.5507, allocations: 51.94 kB / 0.5341 GB, free: 80.72 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.007672/0.5584, allocations: 2.384 MB / 0.5365 GB, free: 78.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.5584, allocations: 12.03 kB / 0.5365 GB, free: 78.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009988/0.5594, allocations: 233.3 kB / 0.5367 GB, free: 78.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003486/0.5629, allocations: 1.389 MB / 0.538 GB, free: 76.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006734/0.5636, allocations: 248.6 kB / 0.5383 GB, free: 76.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006217/0.5643, allocations: 156 kB / 0.5384 GB, free: 76.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007495/0.5718, allocations: 3.028 MB / 0.5414 GB, free: 73.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.36e-05/0.5718, allocations: 7.938 kB / 0.5414 GB, free: 73.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002894/0.5721, allocations: 64 kB / 0.5415 GB, free: 72.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.544e-05/0.5722, allocations: 70.95 kB / 0.5415 GB, free: 72.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009944/0.5822, allocations: 3.423 MB / 0.5449 GB, free: 69.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01533/0.5975, allocations: 8.052 MB / 0.5527 GB, free: 61.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005529/0.6031, allocations: 2.481 MB / 0.5552 GB, free: 58.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001034/0.6032, allocations: 13.31 kB / 0.5552 GB, free: 58.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004577/0.6078, allocations: 1.666 MB / 0.5568 GB, free: 57.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 6.522e-06/0.6079, allocations: 3.984 kB / 0.5568 GB, free: 57.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.01613/0.624, allocations: 6.099 MB / 0.5628 GB, free: 50.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/0.6241, allocations: 298.3 kB / 0.563 GB, free: 50.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/0.6261, allocations: 1.359 MB / 0.5644 GB, free: 49.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.6263, allocations: 61.64 kB / 0.5644 GB, free: 49.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005066/0.6268, allocations: 0.6894 MB / 0.5651 GB, free: 48.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003177/0.6271, allocations: 433.9 kB / 0.5655 GB, free: 47.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.415e-05/0.6272, allocations: 35.98 kB / 0.5655 GB, free: 47.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.198e-05/0.6273, allocations: 365.9 kB / 0.5659 GB, free: 47.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003707/0.631, allocations: 1.409 MB / 0.5673 GB, free: 46.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004011/0.635, allocations: 1.733 MB / 0.569 GB, free: 44.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004078/0.6391, allocations: 1.486 MB / 0.5704 GB, free: 42.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.096e-05/0.6392, allocations: 0 / 0.5704 GB, free: 42.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.009442/0.6487, allocations: 3.673 MB / 0.574 GB, free: 39.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/0.6487, allocations: 37.7 kB / 0.574 GB, free: 39.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.688e-05/0.6488, allocations: 11.98 kB / 0.5741 GB, free: 39.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.6504, allocations: 0.7544 MB / 0.5748 GB, free: 38.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009571/0.6513, allocations: 231.6 kB / 0.575 GB, free: 38.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00911/0.6605, allocations: 9.755 MB / 0.5845 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002615/0.6631, allocations: 410.3 kB / 0.5849 GB, free: 27.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000283/0.6634, allocations: 55.92 kB / 0.585 GB, free: 27.45 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.001395/0.6648, allocations: 0.7633 MB / 0.5857 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004086/0.6652, allocations: 169.9 kB / 0.5859 GB, free: 26.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009301/0.6745, allocations: 3.657 MB / 0.5895 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.6746, allocations: 16.09 kB / 0.5895 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.6746, allocations: 3.984 kB / 0.5895 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.6746, allocations: 7.984 kB / 0.5895 GB, free: 22.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/0.6876, allocations: 5.844 MB / 0.5952 GB, free: 16.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.6876, allocations: 4 kB / 0.5952 GB, free: 16.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000767/0.6884, allocations: 143.8 kB / 0.5953 GB, free: 16.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001468/0.6899, allocations: 0.7347 MB / 0.5961 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001996/0.6901, allocations: 35.97 kB / 0.5961 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009227/0.6994, allocations: 9.737 MB / 0.6056 GB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.6994, allocations: 8.312 kB / 0.6056 GB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01414/0.7135, allocations: 5.6 MB / 0.6111 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/0.715, allocations: 0.5026 MB / 0.6116 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005218/0.7156, allocations: 39.77 kB / 0.6116 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002416/0.718, allocations: 319.6 kB / 0.6119 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008382/0.7189, allocations: 380.8 kB / 0.6123 GB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001769/0.719, allocations: 43.98 kB / 0.6123 GB, free: 14.88 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001885/0.7209, allocations: 1.055 MB / 0.6133 GB, free: 13.82 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.721, allocations: 0 / 0.6133 GB, free: 13.82 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002507/0.7235, allocations: 0.5733 MB / 0.6139 GB, free: 13.25 MB / 394.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.0005883/0.7241, allocations: 243.3 kB / 0.6141 GB, free: 13.01 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01025/0.7343, allocations: 3.921 MB / 0.618 GB, free: 9.023 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.7344, allocations: 4 kB / 0.618 GB, free: 9.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005978/0.7404, allocations: 2.506 MB / 0.6204 GB, free: 6.465 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/0.7427, allocations: 433.7 kB / 0.6208 GB, free: 6.043 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.7555, allocations: 5.359 MB / 0.6261 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001819/0.7574, allocations: 1.733 MB / 0.6278 GB, free: 14.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001401/0.7588, allocations: 372.7 kB / 0.6281 GB, free: 14.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004289/0.7593, allocations: 95.42 kB / 0.6282 GB, free: 14.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.402e-06/0.7593, allocations: 0 / 0.6282 GB, free: 14.43 MB / 410.7 MB Notification: Performance of Templates: time 0.2257/0.985, allocations: 33.28 MB / 0.6607 GB, free: 121.9 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe 2>&1)