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.001751/0.001751, allocations: 181 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.679/1.679, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008636/0.0008635, allocations: 89.3 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002589/0.000259, allocations: 8 kB / 328.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2623, allocations: 47.57 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.4034, allocations: 109.7 MB / 485.5 MB, free: 2.914 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.4038, allocations: 95.94 kB / 485.6 MB, free: 2.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.305/0.7088, allocations: 34.7 MB / 0.5081 GB, free: 96.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.7089, allocations: 3.938 kB / 0.5081 GB, free: 96.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001353/0.709, allocations: 59.3 kB / 0.5082 GB, free: 96.96 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.004718/0.7137, allocations: 2.373 MB / 0.5105 GB, free: 95.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.7138, allocations: 11.72 kB / 0.5105 GB, free: 95.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003497/0.7141, allocations: 234 kB / 0.5107 GB, free: 95.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002291/0.7164, allocations: 1.377 MB / 0.5121 GB, free: 94.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005516/0.717, allocations: 243.5 kB / 0.5123 GB, free: 94.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002181/0.7172, allocations: 163.7 kB / 0.5125 GB, free: 94.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00595/0.7232, allocations: 3.026 MB / 0.5154 GB, free: 93.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.762e-05/0.7232, allocations: 7.281 kB / 0.5154 GB, free: 93.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001667/0.7234, allocations: 66.19 kB / 0.5155 GB, free: 93.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.434e-05/0.7235, allocations: 62.89 kB / 0.5155 GB, free: 93.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008388/0.7319, allocations: 3.436 MB / 0.5189 GB, free: 92.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01268/0.7446, allocations: 8.039 MB / 0.5268 GB, free: 88.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005002/0.7496, allocations: 2.482 MB / 0.5292 GB, free: 86.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.241e-05/0.7498, allocations: 25.06 kB / 0.5292 GB, free: 86.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003862/0.7536, allocations: 1.653 MB / 0.5308 GB, free: 85.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 4.789e-06/0.7536, allocations: 0 / 0.5308 GB, free: 85.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.015/0.7687, allocations: 6.108 MB / 0.5368 GB, free: 79.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.337e-05/0.7688, allocations: 294.3 kB / 0.5371 GB, free: 79.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/0.7705, allocations: 1.359 MB / 0.5384 GB, free: 77.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.7707, allocations: 61.69 kB / 0.5384 GB, free: 77.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004884/0.7712, allocations: 0.6814 MB / 0.5391 GB, free: 76.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002878/0.7715, allocations: 453 kB / 0.5395 GB, free: 76.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.563e-05/0.7715, allocations: 28 kB / 0.5396 GB, free: 76.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.7717, allocations: 365.9 kB / 0.5399 GB, free: 76.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003589/0.7753, allocations: 1.413 MB / 0.5413 GB, free: 74.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003612/0.7789, allocations: 1.733 MB / 0.543 GB, free: 72.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003454/0.7824, allocations: 1.487 MB / 0.5444 GB, free: 71.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.7824, allocations: 6.812 kB / 0.5445 GB, free: 71.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.008176/0.7906, allocations: 3.681 MB / 0.548 GB, free: 67.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.025e-05/0.7906, allocations: 33.7 kB / 0.5481 GB, free: 67.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.112e-05/0.7906, allocations: 12 kB / 0.5481 GB, free: 67.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/0.7921, allocations: 0.7474 MB / 0.5488 GB, free: 66.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000834/0.7929, allocations: 231.6 kB / 0.549 GB, free: 66.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008705/0.8016, allocations: 9.769 MB / 0.5586 GB, free: 56.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002489/0.8041, allocations: 414.3 kB / 0.559 GB, free: 56.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.8043, allocations: 56 kB / 0.559 GB, free: 56.05 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,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 () * 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.001358/0.8056, allocations: 0.7607 MB / 0.5598 GB, free: 55.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/0.8059, allocations: 173.9 kB / 0.5599 GB, free: 55.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008771/0.8147, allocations: 3.661 MB / 0.5635 GB, free: 51.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.8147, allocations: 12 kB / 0.5635 GB, free: 51.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.8147, allocations: 4 kB / 0.5635 GB, free: 51.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.8147, allocations: 7.922 kB / 0.5635 GB, free: 51.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/0.8262, allocations: 5.852 MB / 0.5692 GB, free: 45.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.8263, allocations: 0 / 0.5692 GB, free: 45.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006664/0.8269, allocations: 147.8 kB / 0.5694 GB, free: 45.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/0.8283, allocations: 0.7371 MB / 0.5701 GB, free: 44.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.8284, allocations: 31.98 kB / 0.5701 GB, free: 44.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008601/0.837, allocations: 9.74 MB / 0.5797 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.837, allocations: 0 / 0.5797 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/0.8495, allocations: 5.616 MB / 0.5851 GB, free: 28.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.8507, allocations: 0.4948 MB / 0.5856 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002197/0.8509, allocations: 45.72 kB / 0.5857 GB, free: 28.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00197/0.8529, allocations: 315.6 kB / 0.586 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006787/0.8536, allocations: 385.1 kB / 0.5863 GB, free: 27.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.8537, allocations: 39.98 kB / 0.5864 GB, free: 27.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00137/0.8551, allocations: 1.059 MB / 0.5874 GB, free: 26.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8551, allocations: 0 / 0.5874 GB, free: 26.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001765/0.8569, allocations: 0.581 MB / 0.588 GB, free: 25.86 MB / 378.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) * 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.000406/0.8573, allocations: 235.4 kB / 0.5882 GB, free: 25.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00864/0.8659, allocations: 3.913 MB / 0.592 GB, free: 21.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.8659, allocations: 0 / 0.592 GB, free: 21.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004859/0.8708, allocations: 2.517 MB / 0.5945 GB, free: 19.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0021/0.8729, allocations: 439.8 kB / 0.5949 GB, free: 18.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.883, allocations: 5.32 MB / 0.6001 GB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.884, allocations: 1.729 MB / 0.6018 GB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00118/0.8852, allocations: 374.7 kB / 0.6021 GB, free: 11.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003193/0.8856, allocations: 91.42 kB / 0.6022 GB, free: 11.11 MB / 378.7 MB Notification: Performance of SimCode: time 1.403e-06/0.8856, allocations: 0 / 0.6022 GB, free: 11.11 MB / 378.7 MB Notification: Performance of Templates: time 0.0502/0.9358, allocations: 33.3 MB / 0.6347 GB, free: 9.832 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)