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.001426/0.001425, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.437/1.437, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0008217/0.0008219, allocations: 82.72 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.067e-05/3.07e-05, allocations: 4 kB / 322.5 MB, free: 17.33 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 47.58 MB / 370 MB, free: 1.691 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3278/0.4382, allocations: 109.6 MB / 479.6 MB, free: 28 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.4385, allocations: 88.91 kB / 479.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08992/0.5285, allocations: 34.72 MB / 0.5024 GB, free: 14.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5285, allocations: 0 / 0.5024 GB, free: 14.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001277/0.5286, allocations: 47.94 kB / 0.5024 GB, free: 14.14 MB / 394.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.004603/0.5333, allocations: 2.132 MB / 0.5045 GB, free: 11.94 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.5333, allocations: 8.031 kB / 0.5045 GB, free: 11.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003929/0.5337, allocations: 233.3 kB / 0.5047 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002599/0.5363, allocations: 1.374 MB / 0.5061 GB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006124/0.5369, allocations: 244.6 kB / 0.5063 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002653/0.5372, allocations: 152 kB / 0.5065 GB, free: 9.875 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003757/0.541, allocations: 2.51 MB / 0.5089 GB, free: 7.238 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/0.541, allocations: 0 / 0.5089 GB, free: 7.238 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001728/0.5412, allocations: 71.92 kB / 0.509 GB, free: 7.168 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.018e-05/0.5413, allocations: 74.94 kB / 0.5091 GB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00365/0.5449, allocations: 2.42 MB / 0.5114 GB, free: 4.668 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0139/0.5589, allocations: 8.048 MB / 0.5193 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002872/0.5618, allocations: 1.981 MB / 0.5212 GB, free: 10.49 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001895/0.5637, allocations: 1.339 MB / 0.5225 GB, free: 9.152 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001009/0.5638, allocations: 25.17 kB / 0.5225 GB, free: 9.129 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001618/0.5654, allocations: 1.143 MB / 0.5237 GB, free: 7.965 MB / 410.7 MB Notification: Performance of pre-optimization done (n=141): time 4.068e-06/0.5655, allocations: 0 / 0.5237 GB, free: 7.965 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.00365/0.5691, allocations: 2.455 MB / 0.5261 GB, free: 5.484 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.5693, allocations: 298.3 kB / 0.5263 GB, free: 5.129 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001841/0.5711, allocations: 1.342 MB / 0.5277 GB, free: 3.777 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001215/0.5713, allocations: 57.7 kB / 0.5277 GB, free: 3.715 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005629/0.5718, allocations: 0.6894 MB / 0.5284 GB, free: 3.016 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000371/0.5722, allocations: 437.9 kB / 0.5288 GB, free: 2.582 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.872e-05/0.5723, allocations: 27.98 kB / 0.5288 GB, free: 2.555 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.5725, allocations: 373.9 kB / 0.5292 GB, free: 2.184 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.5737, allocations: 0.9059 MB / 0.5301 GB, free: 1.277 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2031/0.7768, allocations: 1.224 MB / 0.5313 GB, free: 109.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002381/0.7792, allocations: 0.9785 MB / 0.5322 GB, free: 109.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.95e-05/0.7793, allocations: 2.719 kB / 0.5322 GB, free: 109.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005626/0.7849, allocations: 2.694 MB / 0.5349 GB, free: 109.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.016e-05/0.785, allocations: 34.97 kB / 0.5349 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.705e-05/0.7851, allocations: 13.2 kB / 0.5349 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001919/0.787, allocations: 0.7797 MB / 0.5357 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009479/0.7879, allocations: 220.8 kB / 0.5359 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/0.7991, allocations: 9.962 MB / 0.5456 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002836/0.8019, allocations: 421.3 kB / 0.546 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002312/0.8022, allocations: 53.45 kB / 0.5461 GB, free: 105.1 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 (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.0005002/0.8027, allocations: 261.3 kB / 0.5463 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003906/0.8031, allocations: 175 kB / 0.5465 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004343/0.8074, allocations: 2.667 MB / 0.5491 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.8075, allocations: 13.34 kB / 0.5491 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.8075, allocations: 0.6562 kB / 0.5491 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/0.8075, allocations: 5.953 kB / 0.5491 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007664/0.8152, allocations: 5.217 MB / 0.5542 GB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.8152, allocations: 0 / 0.5542 GB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006324/0.8158, allocations: 135.5 kB / 0.5543 GB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/0.8173, allocations: 0.7528 MB / 0.5551 GB, free: 102 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.8174, allocations: 34.44 kB / 0.5551 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008811/0.8262, allocations: 9.715 MB / 0.5646 GB, free: 95.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.8263, allocations: 0 / 0.5646 GB, free: 95.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00499/0.8313, allocations: 4.108 MB / 0.5686 GB, free: 93.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009794/0.8323, allocations: 0.4961 MB / 0.5691 GB, free: 93.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000223/0.8325, allocations: 38.41 kB / 0.5691 GB, free: 93.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002045/0.8345, allocations: 322.8 kB / 0.5694 GB, free: 93.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006566/0.8352, allocations: 381.3 kB / 0.5698 GB, free: 93.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.8353, allocations: 38.2 kB / 0.5698 GB, free: 93.31 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001289/0.8366, allocations: 1.043 MB / 0.5708 GB, free: 92.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8366, allocations: 0 / 0.5708 GB, free: 92.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001802/0.8384, allocations: 0.5805 MB / 0.5714 GB, free: 92.83 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 (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.0004159/0.8389, allocations: 237.6 kB / 0.5716 GB, free: 92.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003689/0.8426, allocations: 2.929 MB / 0.5745 GB, free: 91.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.8426, allocations: 3.125 kB / 0.5745 GB, free: 91.36 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002245/0.8448, allocations: 2.008 MB / 0.5764 GB, free: 90.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.8465, allocations: 447.4 kB / 0.5769 GB, free: 90.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007221/0.8538, allocations: 3.652 MB / 0.5804 GB, free: 88.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001417/0.8552, allocations: 1.726 MB / 0.5821 GB, free: 88.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001228/0.8565, allocations: 364.8 kB / 0.5825 GB, free: 87.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000407/0.8569, allocations: 95.59 kB / 0.5826 GB, free: 87.98 MB / 410.7 MB Notification: Performance of SimCode: time 8.12e-07/0.8569, allocations: 0 / 0.5826 GB, free: 87.98 MB / 410.7 MB Notification: Performance of Templates: time 0.0494/0.9063, allocations: 33.8 MB / 0.6156 GB, free: 65.5 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)