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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001732/0.001732, allocations: 113.8 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002022/0.002022, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 67.88 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2491, allocations: 50.54 MB / 410 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM): time 0.007096/0.2562, allocations: 6.13 MB / 416.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007209/0.2634, allocations: 4.667 MB / 420.7 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007498/0.2642, allocations: 43.75 kB / 420.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006582/0.2649, allocations: 281.8 kB / 421.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001096/0.266, allocations: 473.3 kB / 421.5 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003558/0.2696, allocations: 1.813 MB / 423.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00243/0.272, allocations: 2.481 MB / 425.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001538/0.2736, allocations: 1.502 MB / 427.3 MB, free: 104 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001234/0.2748, allocations: 1.134 MB / 428.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001272/0.2761, allocations: 1.199 MB / 429.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003353/0.2764, allocations: 260 kB / 429.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006328/0.2771, allocations: 411.5 kB / 430.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006615/0.2778, allocations: 0.7597 MB / 431.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001071/0.2788, allocations: 1.182 MB / 432.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002848/0.2817, allocations: 3.564 MB / 435.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2817, allocations: 0 / 435.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.197e-06/0.2817, allocations: 0 / 435.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.336e-05/0.2818, allocations: 0 / 435.8 MB, free: 7.582 MB / 350.1 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.005719/0.2875, allocations: 2.795 MB / 438.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.2875, allocations: 12.03 kB / 438.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008337/0.2884, allocations: 274.2 kB / 438.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002459/0.2908, allocations: 1.402 MB / 440.3 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000604/0.2915, allocations: 244.6 kB / 440.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002702/0.2917, allocations: 156 kB / 440.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006241/0.298, allocations: 2.88 MB / 443.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.666e-05/0.298, allocations: 7.938 kB / 443.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001923/0.2982, allocations: 67.98 kB / 443.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.266e-05/0.2983, allocations: 58.97 kB / 443.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008505/0.3068, allocations: 3.119 MB / 446.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01324/0.3201, allocations: 7.919 MB / 454.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00541/0.3255, allocations: 2.282 MB / 457 MB, free: 2.008 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004299/0.3298, allocations: 1.631 MB / 458.6 MB, free: 384 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/0.3299, allocations: 17.3 kB / 458.7 MB, free: 368 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004116/0.3341, allocations: 1.478 MB / 460.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=141): time 3.707e-06/0.3341, allocations: 3.938 kB / 460.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=141): time 0.01667/0.3508, allocations: 5.612 MB / 465.8 MB, free: 9.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/0.3509, allocations: 286.3 kB / 466 MB, free: 8.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00215/0.3531, allocations: 1.552 MB / 467.6 MB, free: 7.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.3532, allocations: 57.7 kB / 467.6 MB, free: 7.195 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000619/0.3539, allocations: 0.7051 MB / 468.4 MB, free: 6.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004132/0.3543, allocations: 441.8 kB / 468.8 MB, free: 6.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005476/0.3548, allocations: 339.3 kB / 469.1 MB, free: 5.707 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.845e-05/0.3549, allocations: 309.1 kB / 469.4 MB, free: 5.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003798/0.3587, allocations: 1.206 MB / 470.6 MB, free: 4.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004051/0.3628, allocations: 1.542 MB / 472.2 MB, free: 2.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007317/0.3701, allocations: 2.602 MB / 474.8 MB, free: 15.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.3702, allocations: 4 kB / 474.8 MB, free: 15.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.008975/0.3791, allocations: 3.337 MB / 478.1 MB, free: 12.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.3792, allocations: 33.7 kB / 478.1 MB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.896e-05/0.3792, allocations: 15.98 kB / 478.2 MB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001748/0.381, allocations: 0.787 MB / 478.9 MB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009369/0.3819, allocations: 231.6 kB / 479.2 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0125/0.3945, allocations: 10.96 MB / 490.1 MB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002215/0.3967, allocations: 370.1 kB / 490.5 MB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000204/0.3969, allocations: 128 kB / 490.6 MB, free: 15.5 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 53 (pwm.svPWM.firstTrigger,$PRE.pwm.svPWM.firstTrigger,pwm.svPWM.phiSec,$PRE.pwm.svPWM.phiSec,pwm.svPWM.phiPos,$PRE.pwm.svPWM.phiPos,pwm.svPWM.phiRef,$PRE.pwm.svPWM.phiRef,pwm.svPWM.uRef,$PRE.pwm.svPWM.uRef,$whenCondition3,$whenCondition2,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,pwm.svPWM.sampleTrigger,$whenCondition1,$whenCondition4,multiPhase2Level.diode_n.idealDiode[3].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[1].y,pwm.svPWM.T0,$PRE.pwm.svPWM.T0,pwm.svPWM.t0,$PRE.pwm.svPWM.t0,pwm.svPWM.tb,$PRE.pwm.svPWM.tb,pwm.svPWM.ta,$PRE.pwm.svPWM.ta,pwm.svPWM.kb,$PRE.pwm.svPWM.kb,pwm.svPWM.ka,$PRE.pwm.svPWM.ka,pwm.fire_n[3],pwm.fire_n[2],pwm.fire_n[1],integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(4,15), (4,15), (4,15)} Notification: Performance of prepare postOptimizeDAE: time 0.001133/0.398, allocations: 0.7644 MB / 491.4 MB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003292/0.3984, allocations: 169.9 kB / 491.5 MB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00891/0.4073, allocations: 3.322 MB / 494.9 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.4073, allocations: 11.95 kB / 494.9 MB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.4073, allocations: 7.938 kB / 494.9 MB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009343/0.4083, allocations: 0.5024 MB / 495.4 MB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002633/0.4085, allocations: 39.92 kB / 495.4 MB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001948/0.4105, allocations: 267.7 kB / 495.7 MB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003894/0.4109, allocations: 153.1 kB / 495.8 MB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01169/0.4226, allocations: 4.008 MB / 499.8 MB, free: 6.172 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01175/0.4344, allocations: 4.533 MB / 0.4926 GB, free: 1.617 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003739/0.4381, allocations: 1.505 MB / 0.494 GB, free: 112 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001443/0.4396, allocations: 1.087 MB / 0.4951 GB, free: 15.02 MB / 430.1 MB Notification: Performance of Backend: time 3.41e-07/0.4396, allocations: 0 / 0.4951 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006161/0.4458, allocations: 2.527 MB / 0.4976 GB, free: 12.42 MB / 430.1 MB Notification: Performance of SimCode: time 0.006223/0.452, allocations: 4.496 MB / 0.5019 GB, free: 7.875 MB / 430.1 MB Notification: Performance of Templates: time 0.05517/0.5072, allocations: 38.21 MB / 0.5393 GB, free: 1.844 MB / 462.1 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)