Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.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|integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.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|integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009417/0.0009418, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008648/0.0008649, allocations: 90.36 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.291e-05/1.292e-05, allocations: 0 / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08055/0.08058, allocations: 47.58 MB / 363.1 MB, free: 7.059 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3942/0.4748, allocations: 109.2 MB / 472.3 MB, free: 2.824 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/0.4752, allocations: 88.81 kB / 472.4 MB, free: 2.777 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1298/0.605, allocations: 34.33 MB / 0.4948 GB, free: 5.875 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.6051, allocations: 0 / 0.4948 GB, free: 5.875 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002844/0.6054, allocations: 47.94 kB / 0.4949 GB, free: 5.828 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: 400 * Number of variables: 400 Notification: Performance of Generate backend data structure: time 0.009162/0.6146, allocations: 2.132 MB / 0.4969 GB, free: 3.629 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/0.6147, allocations: 16.02 kB / 0.497 GB, free: 3.613 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001476/0.6162, allocations: 233.3 kB / 0.4972 GB, free: 3.383 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005219/0.6214, allocations: 1.37 MB / 0.4985 GB, free: 1.957 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009908/0.6224, allocations: 188.6 kB / 0.4987 GB, free: 1.766 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007967/0.6232, allocations: 92 kB / 0.4988 GB, free: 1.676 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007206/0.6305, allocations: 2.31 MB / 0.501 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006921/0.6374, allocations: 2.296 MB / 0.5033 GB, free: 12.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-05/0.6375, allocations: 3.984 kB / 0.5033 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003907/0.6379, allocations: 4 kB / 0.5033 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.6381, allocations: 62.95 kB / 0.5033 GB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02164/0.6597, allocations: 7.707 MB / 0.5109 GB, free: 5.051 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004902/0.6647, allocations: 2.056 MB / 0.5129 GB, free: 2.984 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00301/0.6677, allocations: 1.292 MB / 0.5141 GB, free: 1.691 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001531/0.6679, allocations: 21.31 kB / 0.5142 GB, free: 1.668 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00263/0.6706, allocations: 1.118 MB / 0.5153 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of pre-optimization done (n=143): time 5.891e-06/0.6706, allocations: 0 / 0.5153 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of matching and sorting (n=143): time 0.005822/0.6764, allocations: 2.317 MB / 0.5175 GB, free: 14.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001983/0.6766, allocations: 294.3 kB / 0.5178 GB, free: 13.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/0.6795, allocations: 1.04 MB / 0.5188 GB, free: 12.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002068/0.6797, allocations: 33.7 kB / 0.5188 GB, free: 12.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001074/0.6808, allocations: 0.6955 MB / 0.5195 GB, free: 12.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00067/0.6815, allocations: 429.8 kB / 0.5199 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.6817, allocations: 0 / 0.5199 GB, free: 11.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002369/0.6819, allocations: 365.9 kB / 0.5203 GB, free: 11.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002161/0.6841, allocations: 0.8863 MB / 0.5212 GB, free: 10.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002484/0.6866, allocations: 1.195 MB / 0.5223 GB, free: 9.059 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002287/0.6889, allocations: 0.9313 MB / 0.5232 GB, free: 8.125 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.539e-05/0.689, allocations: 4 kB / 0.5232 GB, free: 8.121 MB / 410.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.006512/0.6955, allocations: 2.508 MB / 0.5257 GB, free: 5.594 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.156e-05/0.6956, allocations: 34.52 kB / 0.5257 GB, free: 5.555 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.552e-05/0.6956, allocations: 8 kB / 0.5257 GB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002712/0.6984, allocations: 0.7794 MB / 0.5265 GB, free: 4.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.7, allocations: 231.6 kB / 0.5267 GB, free: 4.531 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2872/0.9872, allocations: 9.662 MB / 0.5361 GB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003796/0.991, allocations: 370 kB / 0.5365 GB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002556/0.9913, allocations: 54.7 kB / 0.5365 GB, free: 110.2 MB / 410.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,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y,$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.0005299/0.9918, allocations: 215.8 kB / 0.5368 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003652/0.9922, allocations: 151.6 kB / 0.5369 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006465/0.9987, allocations: 2.482 MB / 0.5393 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.9987, allocations: 13.75 kB / 0.5393 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.9987, allocations: 5.906 kB / 0.5393 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.371e-05/0.9988, allocations: 6.328 kB / 0.5393 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0112/1.01, allocations: 4.868 MB / 0.5441 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/1.01, allocations: 2.5 kB / 0.5441 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009937/1.011, allocations: 134.8 kB / 0.5442 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002171/1.013, allocations: 0.7496 MB / 0.545 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001859/1.013, allocations: 17.58 kB / 0.545 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01298/1.026, allocations: 9.446 MB / 0.5542 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.026, allocations: 0 / 0.5542 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00715/1.034, allocations: 3.936 MB / 0.558 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/1.035, allocations: 486.6 kB / 0.5585 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004718/1.035, allocations: 15.25 kB / 0.5585 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00281/1.038, allocations: 297.5 kB / 0.5588 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009645/1.039, allocations: 386.6 kB / 0.5592 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001687/1.039, allocations: 44.95 kB / 0.5592 GB, free: 102.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001625/1.041, allocations: 0.7804 MB / 0.56 GB, free: 102 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/1.041, allocations: 3.312 kB / 0.56 GB, free: 102 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002953/1.044, allocations: 0.536 MB / 0.5605 GB, free: 102 MB / 410.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,harmonic.mean2.y) * 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.0005859/1.045, allocations: 207 kB / 0.5607 GB, free: 101.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00505/1.05, allocations: 2.835 MB / 0.5635 GB, free: 100.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/1.05, allocations: 3.375 kB / 0.5635 GB, free: 100.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003021/1.053, allocations: 1.941 MB / 0.5654 GB, free: 99.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002337/1.055, allocations: 374.8 kB / 0.5657 GB, free: 99.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/1.065, allocations: 3.514 MB / 0.5692 GB, free: 98.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001973/1.067, allocations: 1.727 MB / 0.5708 GB, free: 97.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001786/1.069, allocations: 346.9 kB / 0.5712 GB, free: 97.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005754/1.07, allocations: 90.73 kB / 0.5713 GB, free: 97.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/1.07, allocations: 0 / 0.5713 GB, free: 97.36 MB / 410.7 MB Notification: Performance of Templates: time 0.06056/1.13, allocations: 29.62 MB / 0.6002 GB, free: 84.38 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.sim & ./Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe 2>&1)