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.001325/0.001325, allocations: 183.6 kB / 18.04 MB, free: 3.781 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.276/1.276, allocations: 205.4 MB / 224.2 MB, free: 9.031 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.0007466/0.0007466, allocations: 85.33 kB / 272.5 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003438, allocations: 16 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1923, allocations: 47.58 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1102/0.3025, allocations: 110 MB / 487 MB, free: 2.523 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.3028, allocations: 91.95 kB / 487.1 MB, free: 2.434 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2193/0.5221, allocations: 34.7 MB / 0.5096 GB, free: 97.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5221, allocations: 7.797 kB / 0.5096 GB, free: 97.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001206/0.5222, allocations: 54.92 kB / 0.5096 GB, free: 97.13 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.004272/0.5265, allocations: 2.359 MB / 0.5119 GB, free: 95.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.5266, allocations: 11.66 kB / 0.5119 GB, free: 95.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000329/0.5269, allocations: 236.5 kB / 0.5122 GB, free: 95.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002049/0.529, allocations: 1.421 MB / 0.5135 GB, free: 95.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005357/0.5295, allocations: 256.2 kB / 0.5138 GB, free: 94.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002232/0.5297, allocations: 154.7 kB / 0.5139 GB, free: 94.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005939/0.5357, allocations: 3.04 MB / 0.5169 GB, free: 93.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.146e-05/0.5357, allocations: 7.688 kB / 0.5169 GB, free: 93.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000161/0.5359, allocations: 74 kB / 0.517 GB, free: 93.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.539e-05/0.536, allocations: 68.34 kB / 0.5171 GB, free: 93.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00807/0.5441, allocations: 3.426 MB / 0.5204 GB, free: 92.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01128/0.5554, allocations: 8.048 MB / 0.5283 GB, free: 88.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004814/0.5602, allocations: 2.483 MB / 0.5307 GB, free: 86.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003943/0.5642, allocations: 1.841 MB / 0.5325 GB, free: 84.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.138e-05/0.5643, allocations: 21.14 kB / 0.5325 GB, free: 84.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003789/0.5681, allocations: 1.643 MB / 0.5341 GB, free: 83.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 3.337e-06/0.5681, allocations: 0 / 0.5341 GB, free: 83.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.01529/0.5834, allocations: 6.207 MB / 0.5402 GB, free: 77.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.5835, allocations: 294.3 kB / 0.5404 GB, free: 76.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/0.5853, allocations: 1.519 MB / 0.5419 GB, free: 75.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.5854, allocations: 61.69 kB / 0.542 GB, free: 75.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004347/0.5859, allocations: 0.6812 MB / 0.5427 GB, free: 74.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002805/0.5861, allocations: 452.5 kB / 0.5431 GB, free: 73.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.273e-05/0.5862, allocations: 32 kB / 0.5431 GB, free: 73.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.369e-05/0.5863, allocations: 361.9 kB / 0.5435 GB, free: 73.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003533/0.5899, allocations: 1.401 MB / 0.5448 GB, free: 72.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00358/0.5934, allocations: 1.729 MB / 0.5465 GB, free: 70.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006677/0.6001, allocations: 3.003 MB / 0.5494 GB, free: 67.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.6002, allocations: 4 kB / 0.5495 GB, free: 67.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.008073/0.6082, allocations: 3.7 MB / 0.5531 GB, free: 63.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.6083, allocations: 33.7 kB / 0.5531 GB, free: 63.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.033e-05/0.6083, allocations: 14.73 kB / 0.5531 GB, free: 63.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00147/0.6098, allocations: 0.7871 MB / 0.5539 GB, free: 62.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007879/0.6106, allocations: 219.6 kB / 0.5541 GB, free: 62.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008982/0.6196, allocations: 10 MB / 0.5639 GB, free: 52.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002913/0.6225, allocations: 426.1 kB / 0.5643 GB, free: 51.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.6227, allocations: 55.98 kB / 0.5643 GB, free: 51.57 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 (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.001065/0.6238, allocations: 0.7451 MB / 0.565 GB, free: 50.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002219/0.624, allocations: 170 kB / 0.5652 GB, free: 50.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008332/0.6323, allocations: 3.676 MB / 0.5688 GB, free: 46.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.6324, allocations: 16 kB / 0.5688 GB, free: 46.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.6324, allocations: 0 / 0.5688 GB, free: 46.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/0.6324, allocations: 7.969 kB / 0.5688 GB, free: 46.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/0.6443, allocations: 6.218 MB / 0.5749 GB, free: 40.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.6443, allocations: 3.562 kB / 0.5749 GB, free: 40.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006256/0.6449, allocations: 131.8 kB / 0.575 GB, free: 40.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001428/0.6464, allocations: 0.763 MB / 0.5758 GB, free: 39.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/0.6465, allocations: 31.98 kB / 0.5758 GB, free: 39.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00882/0.6554, allocations: 9.765 MB / 0.5853 GB, free: 29.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.6554, allocations: 0 / 0.5853 GB, free: 29.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01219/0.6676, allocations: 5.588 MB / 0.5908 GB, free: 23.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008674/0.6685, allocations: 0.5063 MB / 0.5913 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003092/0.6688, allocations: 32 kB / 0.5913 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001925/0.6708, allocations: 327.6 kB / 0.5916 GB, free: 23.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006374/0.6714, allocations: 372.9 kB / 0.592 GB, free: 22.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.6715, allocations: 43.98 kB / 0.592 GB, free: 22.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001316/0.6728, allocations: 1.055 MB / 0.5931 GB, free: 21.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6728, allocations: 0 / 0.5931 GB, free: 21.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001705/0.6746, allocations: 0.5849 MB / 0.5936 GB, free: 21.01 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 (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.0003879/0.675, allocations: 241.7 kB / 0.5939 GB, free: 20.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008246/0.6832, allocations: 3.948 MB / 0.5977 GB, free: 16.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.6832, allocations: 0 / 0.5977 GB, free: 16.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004426/0.6877, allocations: 2.521 MB / 0.6002 GB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/0.6894, allocations: 469.8 kB / 0.6006 GB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009852/0.6993, allocations: 5.368 MB / 0.6059 GB, free: 8.363 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001213/0.7005, allocations: 1.698 MB / 0.6075 GB, free: 6.629 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001085/0.7016, allocations: 360.7 kB / 0.6079 GB, free: 6.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003591/0.702, allocations: 91.42 kB / 0.608 GB, free: 6.18 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.702, allocations: 0 / 0.608 GB, free: 6.18 MB / 378.7 MB Notification: Performance of Templates: time 0.05057/0.7526, allocations: 34.16 MB / 0.6413 GB, free: 4.02 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)