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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 106.9 kB / 17.75 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001711/0.001711, allocations: 190.6 kB / 18.68 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 47.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.314, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM): time 0.00723/0.3213, allocations: 6.11 MB / 407.5 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007541/0.3288, allocations: 4.543 MB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009914/0.3299, allocations: 35.81 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00081/0.3307, allocations: 281.9 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001218/0.3319, allocations: 485.3 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004068/0.336, allocations: 1.779 MB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003729/0.3397, allocations: 2.458 MB / 417.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002139/0.3419, allocations: 1.506 MB / 418.6 MB, free: 7.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001402/0.3433, allocations: 1.126 MB / 419.7 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001862/0.3452, allocations: 1.187 MB / 420.9 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006003/0.3458, allocations: 264 kB / 421.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009324/0.3467, allocations: 399.7 kB / 421.6 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008863/0.3476, allocations: 0.752 MB / 422.3 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00151/0.3492, allocations: 1.178 MB / 423.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003381/0.3525, allocations: 3.55 MB / 427 MB, free: 15.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3526, allocations: 3.938 kB / 427.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3526, allocations: 0 / 427.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.325e-05/0.3527, allocations: 0 / 427.1 MB, free: 15.14 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.006668/0.3593, allocations: 2.907 MB / 430 MB, free: 12.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.3594, allocations: 8.031 kB / 430 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003929/0.3598, allocations: 247.4 kB / 430.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002135/0.3619, allocations: 1.387 MB / 431.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006639/0.3626, allocations: 260.6 kB / 431.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002678/0.3629, allocations: 156 kB / 432 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006686/0.3696, allocations: 3.022 MB / 435 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.658e-05/0.3696, allocations: 0 / 435 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001743/0.3698, allocations: 64 kB / 435.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.651e-05/0.3699, allocations: 66.95 kB / 435.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009662/0.3796, allocations: 3.387 MB / 438.5 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/0.394, allocations: 8.053 MB / 446.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005894/0.3999, allocations: 2.434 MB / 449 MB, free: 8.793 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004819/0.4047, allocations: 1.76 MB / 450.8 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.4049, allocations: 21.31 kB / 450.8 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0046/0.4095, allocations: 1.623 MB / 452.4 MB, free: 5.367 MB / 366.1 MB Notification: Performance of pre-optimization done (n=141): time 4.038e-06/0.4095, allocations: 0 / 452.4 MB, free: 5.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=141): time 0.01835/0.4279, allocations: 6.019 MB / 458.4 MB, free: 15.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.428, allocations: 290.3 kB / 458.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002116/0.4301, allocations: 1.535 MB / 460.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/0.4303, allocations: 53.7 kB / 460.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005831/0.4309, allocations: 0.7179 MB / 461 MB, free: 12.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003936/0.4313, allocations: 460.2 kB / 461.5 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005538/0.4318, allocations: 339.4 kB / 461.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.531e-05/0.4319, allocations: 309 kB / 462.1 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004256/0.4362, allocations: 1.339 MB / 463.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004544/0.4408, allocations: 1.683 MB / 465.1 MB, free: 8.348 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008279/0.449, allocations: 2.878 MB / 468 MB, free: 5.348 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.128e-06/0.4491, allocations: 4 kB / 468 MB, free: 5.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.009879/0.459, allocations: 3.611 MB / 471.6 MB, free: 1.707 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.727e-05/0.459, allocations: 33.7 kB / 471.7 MB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.208e-05/0.4591, allocations: 11.98 kB / 471.7 MB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001799/0.4609, allocations: 0.7873 MB / 472.5 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009369/0.4618, allocations: 231.6 kB / 472.7 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/0.4744, allocations: 10.98 MB / 483.7 MB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002519/0.477, allocations: 434.5 kB / 484.1 MB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002716/0.4773, allocations: 132 kB / 484.2 MB, free: 4.695 MB / 398.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.001242/0.4785, allocations: 0.7487 MB / 485 MB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003697/0.4789, allocations: 182.9 kB / 485.1 MB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009898/0.4888, allocations: 3.602 MB / 488.8 MB, free: 124 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.4888, allocations: 7.969 kB / 488.8 MB, free: 116 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4888, allocations: 96 / 488.8 MB, free: 116 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008614/0.4897, allocations: 0.515 MB / 489.3 MB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002919/0.49, allocations: 39.88 kB / 489.3 MB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002157/0.4922, allocations: 327.6 kB / 489.6 MB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004336/0.4926, allocations: 169 kB / 489.8 MB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01293/0.5055, allocations: 4.36 MB / 494.2 MB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0133/0.5189, allocations: 4.951 MB / 499.1 MB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004192/0.5231, allocations: 1.642 MB / 0.489 GB, free: 4.043 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001511/0.5246, allocations: 1.071 MB / 0.4901 GB, free: 2.973 MB / 414.1 MB Notification: Performance of Backend: time 5.41e-07/0.5246, allocations: 0 / 0.4901 GB, free: 2.973 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006518/0.5311, allocations: 2.679 MB / 0.4927 GB, free: 224 kB / 414.1 MB Notification: Performance of SimCode: time 0.006033/0.5372, allocations: 4.548 MB / 0.4971 GB, free: 11.62 MB / 430.1 MB Notification: Performance of Templates: time 0.05498/0.5922, allocations: 38.24 MB / 0.5345 GB, free: 5.574 MB / 462.1 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)