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.001441/0.001441, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009365/0.0009365, allocations: 97.83 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.34e-05/1.343e-05, allocations: 0 / 337.1 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09595/0.09598, allocations: 50.42 MB / 387.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3583/0.4543, allocations: 109.5 MB / 496.9 MB, free: 1.332 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.4546, allocations: 91.94 kB / 497 MB, free: 1.242 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08878/0.5434, allocations: 34.73 MB / 0.5193 GB, free: 14.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5435, allocations: 0 / 0.5193 GB, free: 14.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001378/0.5436, allocations: 47.94 kB / 0.5193 GB, free: 14.25 MB / 410.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.005298/0.5489, allocations: 2.142 MB / 0.5214 GB, free: 12.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.549, allocations: 15.97 kB / 0.5214 GB, free: 12.03 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006058/0.5496, allocations: 237.3 kB / 0.5217 GB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002549/0.5522, allocations: 1.37 MB / 0.523 GB, free: 10.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006182/0.5528, allocations: 196.5 kB / 0.5232 GB, free: 10.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002476/0.5531, allocations: 92 kB / 0.5233 GB, free: 10.08 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003645/0.5567, allocations: 2.302 MB / 0.5255 GB, free: 7.777 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003444/0.5602, allocations: 2.301 MB / 0.5278 GB, free: 5.352 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.893e-05/0.5602, allocations: 8 kB / 0.5278 GB, free: 5.344 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001506/0.5604, allocations: 7.938 kB / 0.5278 GB, free: 5.336 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.257e-05/0.5605, allocations: 62.95 kB / 0.5279 GB, free: 5.273 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/0.575, allocations: 7.71 MB / 0.5354 GB, free: 13.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002993/0.578, allocations: 2.052 MB / 0.5374 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001833/0.5799, allocations: 1.288 MB / 0.5386 GB, free: 10.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001148/0.58, allocations: 21.52 kB / 0.5387 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001606/0.5816, allocations: 1.102 MB / 0.5397 GB, free: 8.965 MB / 426.7 MB Notification: Performance of pre-optimization done (n=143): time 5.5e-06/0.5817, allocations: 3.938 kB / 0.5397 GB, free: 8.961 MB / 426.7 MB Notification: Performance of matching and sorting (n=143): time 0.003574/0.5853, allocations: 2.306 MB / 0.542 GB, free: 6.637 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001454/0.5854, allocations: 294.3 kB / 0.5423 GB, free: 6.289 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001636/0.5871, allocations: 1.044 MB / 0.5433 GB, free: 5.234 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001296/0.5872, allocations: 37.69 kB / 0.5433 GB, free: 5.191 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007357/0.5879, allocations: 0.7033 MB / 0.544 GB, free: 4.477 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004387/0.5884, allocations: 429.8 kB / 0.5444 GB, free: 4.051 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.47e-05/0.5885, allocations: 0 / 0.5444 GB, free: 4.051 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.5887, allocations: 369.9 kB / 0.5448 GB, free: 3.684 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.5899, allocations: 0.8746 MB / 0.5456 GB, free: 2.809 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.5914, allocations: 1.187 MB / 0.5468 GB, free: 1.496 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.5928, allocations: 0.9275 MB / 0.5477 GB, free: 0.5703 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.768e-06/0.5928, allocations: 4 kB / 0.5477 GB, free: 0.5664 MB / 426.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.2116/0.8044, allocations: 2.503 MB / 0.5501 GB, free: 114.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.935e-05/0.8045, allocations: 34.23 kB / 0.5502 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.114e-05/0.8046, allocations: 14.3 kB / 0.5502 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001682/0.8063, allocations: 0.7678 MB / 0.5509 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009728/0.8072, allocations: 222.3 kB / 0.5512 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.818, allocations: 9.693 MB / 0.5606 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002725/0.8208, allocations: 364.7 kB / 0.561 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002004/0.821, allocations: 54.41 kB / 0.561 GB, free: 110.3 MB / 426.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 () * 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.0004529/0.8215, allocations: 215.2 kB / 0.5612 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/0.8218, allocations: 154.2 kB / 0.5614 GB, free: 110.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003948/0.8258, allocations: 2.48 MB / 0.5638 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.8258, allocations: 12.59 kB / 0.5638 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.8258, allocations: 3.688 kB / 0.5638 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-05/0.8258, allocations: 7.641 kB / 0.5638 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008121/0.834, allocations: 4.869 MB / 0.5686 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.834, allocations: 0 / 0.5686 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00073/0.8348, allocations: 140.2 kB / 0.5687 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001591/0.8364, allocations: 0.7502 MB / 0.5694 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.8365, allocations: 15.39 kB / 0.5695 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009421/0.8459, allocations: 9.451 MB / 0.5787 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.473e-06/0.846, allocations: 0 / 0.5787 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006259/0.8522, allocations: 3.924 MB / 0.5825 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.8536, allocations: 485.4 kB / 0.583 GB, free: 99.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002555/0.8539, allocations: 23.42 kB / 0.583 GB, free: 99.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002056/0.856, allocations: 295.7 kB / 0.5833 GB, free: 99.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007309/0.8567, allocations: 383.5 kB / 0.5836 GB, free: 99.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.8568, allocations: 42.12 kB / 0.5837 GB, free: 99.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001069/0.8579, allocations: 0.7799 MB / 0.5844 GB, free: 99.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.233e-06/0.8579, allocations: 1.094 kB / 0.5845 GB, free: 99.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002026/0.8599, allocations: 0.5468 MB / 0.585 GB, free: 99.43 MB / 426.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) * 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.0004242/0.8604, allocations: 217.4 kB / 0.5852 GB, free: 99.33 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003379/0.8638, allocations: 2.824 MB / 0.5879 GB, free: 98.01 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.8638, allocations: 3.188 kB / 0.588 GB, free: 98.01 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/0.8657, allocations: 1.949 MB / 0.5899 GB, free: 96.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001612/0.8674, allocations: 378 kB / 0.5902 GB, free: 96.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00671/0.8741, allocations: 3.505 MB / 0.5936 GB, free: 95.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001131/0.8753, allocations: 1.731 MB / 0.5953 GB, free: 94.83 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001101/0.8764, allocations: 352.1 kB / 0.5957 GB, free: 94.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002844/0.8767, allocations: 83.53 kB / 0.5957 GB, free: 94.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.012e-06/0.8767, allocations: 0 / 0.5957 GB, free: 94.8 MB / 426.7 MB Notification: Performance of Templates: time 0.04254/0.9192, allocations: 29.62 MB / 0.6247 GB, free: 80.93 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)