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.0008665/0.0008665, allocations: 171 kB / 17.4 MB, free: 4.422 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.267/1.267, allocations: 223.3 MB / 241.4 MB, free: 9.871 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.0007723/0.0007723, allocations: 96.84 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002835, allocations: 15.94 kB / 352.4 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.2, allocations: 50.4 MB / 402.8 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.3223, allocations: 110.4 MB / 0.5011 GB, free: 1.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.3226, allocations: 87.94 kB / 0.5012 GB, free: 1.754 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2273/0.55, allocations: 35.11 MB / 0.5355 GB, free: 80.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.55, allocations: 0 / 0.5355 GB, free: 80.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001441/0.5502, allocations: 51.94 kB / 0.5356 GB, free: 80.28 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.005337/0.5555, allocations: 2.364 MB / 0.5379 GB, free: 77.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.5556, allocations: 8.031 kB / 0.5379 GB, free: 77.83 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006059/0.5562, allocations: 238.2 kB / 0.5381 GB, free: 77.6 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00249/0.5587, allocations: 1.433 MB / 0.5395 GB, free: 76.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005857/0.5593, allocations: 245.2 kB / 0.5397 GB, free: 75.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003518/0.5596, allocations: 160.9 kB / 0.5399 GB, free: 75.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005962/0.5656, allocations: 3.044 MB / 0.5429 GB, free: 72.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.045e-05/0.5657, allocations: 7.875 kB / 0.5429 GB, free: 72.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001672/0.5658, allocations: 64 kB / 0.5429 GB, free: 72.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.462e-05/0.5659, allocations: 66.95 kB / 0.543 GB, free: 72.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008057/0.574, allocations: 3.427 MB / 0.5463 GB, free: 68.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01183/0.5858, allocations: 8.063 MB / 0.5542 GB, free: 60.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004822/0.5907, allocations: 2.481 MB / 0.5566 GB, free: 58.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004004/0.5947, allocations: 1.822 MB / 0.5584 GB, free: 56.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.814e-05/0.5948, allocations: 25.58 kB / 0.5584 GB, free: 56.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003818/0.5986, allocations: 1.646 MB / 0.56 GB, free: 54.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 3.657e-06/0.5986, allocations: 0 / 0.56 GB, free: 54.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.01565/0.6143, allocations: 6.202 MB / 0.5661 GB, free: 48.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.176e-05/0.6144, allocations: 290.3 kB / 0.5664 GB, free: 48.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00221/0.6166, allocations: 1.527 MB / 0.5679 GB, free: 46.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000135/0.6168, allocations: 53.7 kB / 0.5679 GB, free: 46.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005028/0.6173, allocations: 0.6856 MB / 0.5686 GB, free: 45.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003004/0.6176, allocations: 445.8 kB / 0.569 GB, free: 45.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.774e-05/0.6177, allocations: 28 kB / 0.569 GB, free: 45.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.308e-05/0.6178, allocations: 369.9 kB / 0.5694 GB, free: 45.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003646/0.6214, allocations: 1.401 MB / 0.5708 GB, free: 43.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003593/0.625, allocations: 1.729 MB / 0.5725 GB, free: 41.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006861/0.6319, allocations: 3.007 MB / 0.5754 GB, free: 38.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/0.6319, allocations: 7.938 kB / 0.5754 GB, free: 38.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.008608/0.6405, allocations: 3.681 MB / 0.579 GB, free: 34.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.373e-05/0.6406, allocations: 33.7 kB / 0.579 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.907e-05/0.6406, allocations: 15.94 kB / 0.579 GB, free: 34.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.6421, allocations: 0.7896 MB / 0.5798 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007822/0.6429, allocations: 223.7 kB / 0.58 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008893/0.6518, allocations: 10 MB / 0.5898 GB, free: 23.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00223/0.6541, allocations: 414.2 kB / 0.5902 GB, free: 23.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.6542, allocations: 56 kB / 0.5902 GB, free: 22.99 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 (130): * Single equations (assignments): 122 * 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.001089/0.6553, allocations: 0.7646 MB / 0.591 GB, free: 22.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002689/0.6556, allocations: 177.9 kB / 0.5912 GB, free: 22.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00843/0.664, allocations: 3.665 MB / 0.5947 GB, free: 18.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.664, allocations: 12 kB / 0.5948 GB, free: 18.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.664, allocations: 4 kB / 0.5948 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.6641, allocations: 7.969 kB / 0.5948 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/0.6754, allocations: 6.207 MB / 0.6008 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.6754, allocations: 0 / 0.6008 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005907/0.676, allocations: 135.8 kB / 0.601 GB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/0.6774, allocations: 0.7585 MB / 0.6017 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.6775, allocations: 39.91 kB / 0.6017 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008616/0.6861, allocations: 9.753 MB / 0.6113 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.6861, allocations: 0 / 0.6113 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01361/0.6997, allocations: 5.596 MB / 0.6167 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/0.7008, allocations: 0.4986 MB / 0.6172 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003552/0.7012, allocations: 39.98 kB / 0.6172 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002153/0.7034, allocations: 323.6 kB / 0.6176 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007541/0.7041, allocations: 372.9 kB / 0.6179 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.7043, allocations: 43.98 kB / 0.618 GB, free: 10.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001746/0.706, allocations: 1.059 MB / 0.619 GB, free: 8.965 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.706, allocations: 0 / 0.619 GB, free: 8.965 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001961/0.708, allocations: 0.5849 MB / 0.6196 GB, free: 8.379 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 (81): * Single equations (assignments): 74 * 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.0005003/0.7085, allocations: 240.5 kB / 0.6198 GB, free: 8.137 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009647/0.7182, allocations: 3.931 MB / 0.6236 GB, free: 4.141 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.7182, allocations: 7.875 kB / 0.6236 GB, free: 4.133 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005601/0.7238, allocations: 2.518 MB / 0.6261 GB, free: 1.566 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/0.7262, allocations: 456.9 kB / 0.6265 GB, free: 1.129 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/0.7395, allocations: 5.401 MB / 0.6318 GB, free: 11.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00192/0.7414, allocations: 1.698 MB / 0.6335 GB, free: 9.977 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001285/0.7427, allocations: 364.7 kB / 0.6338 GB, free: 9.613 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.7431, allocations: 91.42 kB / 0.6339 GB, free: 9.523 MB / 410.7 MB Notification: Performance of SimCode: time 7.62e-07/0.7431, allocations: 4 kB / 0.6339 GB, free: 9.52 MB / 410.7 MB Notification: Performance of Templates: time 0.224/0.9671, allocations: 34.14 MB / 0.6672 GB, free: 120.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)