Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001021/0.001021, allocations: 200.5 kB / 18.11 MB, free: 3.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000792/0.0007922, allocations: 96.53 kB / 297.5 MB, free: 6.863 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002164/0.0002165, allocations: 4 kB / 358.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.2013, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2893/0.4907, allocations: 111.2 MB / 0.5083 GB, free: 93.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.491, allocations: 96.84 kB / 0.5084 GB, free: 93.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08111/0.5722, allocations: 35.76 MB / 0.5433 GB, free: 69.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5722, allocations: 4 kB / 0.5433 GB, free: 69.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002102/0.5724, allocations: 59.86 kB / 0.5434 GB, free: 69.74 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.005889/0.5783, allocations: 2.372 MB / 0.5457 GB, free: 67.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.5784, allocations: 12.03 kB / 0.5457 GB, free: 67.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.5795, allocations: 294.2 kB / 0.546 GB, free: 67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002675/0.5822, allocations: 1.437 MB / 0.5474 GB, free: 65.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005701/0.5828, allocations: 245.2 kB / 0.5477 GB, free: 65.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003948/0.5832, allocations: 160.7 kB / 0.5478 GB, free: 65.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00658/0.5898, allocations: 3.036 MB / 0.5508 GB, free: 61.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.584e-05/0.5899, allocations: 0 / 0.5508 GB, free: 61.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002332/0.5901, allocations: 64 kB / 0.5508 GB, free: 61.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.832e-05/0.5902, allocations: 66.95 kB / 0.5509 GB, free: 61.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008527/0.5987, allocations: 3.435 MB / 0.5542 GB, free: 58.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0151/0.6139, allocations: 8.07 MB / 0.5621 GB, free: 50.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00628/0.6202, allocations: 2.489 MB / 0.5646 GB, free: 47.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004223/0.6245, allocations: 1.822 MB / 0.5663 GB, free: 45.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.6246, allocations: 17.31 kB / 0.5664 GB, free: 45.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004182/0.6288, allocations: 1.647 MB / 0.568 GB, free: 44.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 4.098e-06/0.6288, allocations: 7.938 kB / 0.568 GB, free: 44.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.01677/0.6456, allocations: 6.19 MB / 0.574 GB, free: 37.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.418e-05/0.6457, allocations: 294.3 kB / 0.5743 GB, free: 37.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002406/0.6481, allocations: 1.531 MB / 0.5758 GB, free: 36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001795/0.6483, allocations: 61.64 kB / 0.5759 GB, free: 35.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005896/0.6489, allocations: 0.7012 MB / 0.5765 GB, free: 35.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000389/0.6493, allocations: 433.9 kB / 0.577 GB, free: 34.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.6495, allocations: 32 kB / 0.577 GB, free: 34.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.6496, allocations: 365.9 kB / 0.5773 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004526/0.6541, allocations: 1.397 MB / 0.5787 GB, free: 33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004061/0.6582, allocations: 1.733 MB / 0.5804 GB, free: 31.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007579/0.6658, allocations: 3.015 MB / 0.5833 GB, free: 28.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.066e-06/0.6658, allocations: 0 / 0.5833 GB, free: 28.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.00866/0.6745, allocations: 3.689 MB / 0.5869 GB, free: 24.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.447e-05/0.6746, allocations: 37.69 kB / 0.587 GB, free: 24.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.131e-05/0.6746, allocations: 15.94 kB / 0.587 GB, free: 24.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001608/0.6762, allocations: 0.7896 MB / 0.5878 GB, free: 23.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007983/0.677, allocations: 219.6 kB / 0.588 GB, free: 23.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009354/0.6864, allocations: 10.01 MB / 0.5977 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002355/0.6888, allocations: 414.2 kB / 0.5981 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002084/0.689, allocations: 52 kB / 0.5982 GB, free: 12.37 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.00122/0.6902, allocations: 0.7528 MB / 0.5989 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003341/0.6906, allocations: 173.9 kB / 0.5991 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008687/0.6993, allocations: 3.669 MB / 0.6027 GB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.6993, allocations: 16 kB / 0.6027 GB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.6993, allocations: 0 / 0.6027 GB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.6993, allocations: 7.969 kB / 0.6027 GB, free: 7.707 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01205/0.7114, allocations: 6.211 MB / 0.6088 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.7114, allocations: 0 / 0.6088 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000617/0.7121, allocations: 135.8 kB / 0.6089 GB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001399/0.7135, allocations: 0.7617 MB / 0.6096 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001276/0.7136, allocations: 31.98 kB / 0.6097 GB, free: 492 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01151/0.7251, allocations: 9.759 MB / 0.6192 GB, free: 6.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.7252, allocations: 0 / 0.6192 GB, free: 6.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0149/0.7401, allocations: 5.6 MB / 0.6247 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.7413, allocations: 0.4986 MB / 0.6251 GB, free: 172 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004139/0.7417, allocations: 35.98 kB / 0.6252 GB, free: 136 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002226/0.7439, allocations: 323.6 kB / 0.6255 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008101/0.7448, allocations: 384.7 kB / 0.6259 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.7449, allocations: 39.98 kB / 0.6259 GB, free: 15.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001867/0.7468, allocations: 1.063 MB / 0.6269 GB, free: 14.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7468, allocations: 0 / 0.6269 GB, free: 14.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002162/0.749, allocations: 0.5889 MB / 0.6275 GB, free: 13.75 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_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.0005478/0.7495, allocations: 248.2 kB / 0.6277 GB, free: 13.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01009/0.7596, allocations: 3.934 MB / 0.6316 GB, free: 9.496 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.7597, allocations: 1.562 kB / 0.6316 GB, free: 9.496 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005738/0.7654, allocations: 2.532 MB / 0.6341 GB, free: 6.914 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002652/0.7681, allocations: 448.9 kB / 0.6345 GB, free: 6.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.7808, allocations: 5.41 MB / 0.6398 GB, free: 1.043 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001875/0.7827, allocations: 1.702 MB / 0.6414 GB, free: 15.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001386/0.7841, allocations: 356.8 kB / 0.6418 GB, free: 14.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004168/0.7845, allocations: 95.42 kB / 0.6419 GB, free: 14.86 MB / 426.7 MB Notification: Performance of SimCode: time 2.074e-06/0.7845, allocations: 0 / 0.6419 GB, free: 14.86 MB / 426.7 MB Notification: Performance of Templates: time 0.2111/0.9957, allocations: 34.17 MB / 0.6752 GB, free: 128.9 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe 2>&1)