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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001426/0.001426, allocations: 178.8 kB / 8.474 MB, free: 1.867 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.093/1.093, allocations: 205.2 MB / 214.1 MB, free: 5.504 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008969/0.0008969, allocations: 94.2 kB / 262.1 MB, free: 5.566 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.35e-06/5.37e-06, allocations: 0 / 315 MB, free: 41.53 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06366/0.06368, allocations: 47.57 MB / 362.6 MB, free: 10 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2456/0.3093, allocations: 108.9 MB / 471.4 MB, free: 216 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.3096, allocations: 86.75 kB / 471.5 MB, free: 168 kB / 314.7 MB Notification: Performance of FrontEnd: time 0.08874/0.3984, allocations: 33.99 MB / 0.4936 GB, free: 3.887 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001177/0.3985, allocations: 51.94 kB / 0.4937 GB, free: 3.836 MB / 346.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.004496/0.403, allocations: 2.125 MB / 0.4958 GB, free: 1.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.4031, allocations: 12.03 kB / 0.4958 GB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004012/0.4035, allocations: 236.5 kB / 0.496 GB, free: 1.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002389/0.4059, allocations: 1.388 MB / 0.4974 GB, free: 408 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006564/0.4065, allocations: 195.5 kB / 0.4976 GB, free: 208 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002379/0.4068, allocations: 102.6 kB / 0.4977 GB, free: 108 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00347/0.4103, allocations: 2.364 MB / 0.5 GB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003425/0.4137, allocations: 2.337 MB / 0.5022 GB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.612e-05/0.4138, allocations: 3.938 kB / 0.5022 GB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001574/0.4139, allocations: 4 kB / 0.5022 GB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.469e-05/0.414, allocations: 66.94 kB / 0.5023 GB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01427/0.4283, allocations: 7.824 MB / 0.51 GB, free: 4.641 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002731/0.431, allocations: 1.943 MB / 0.5118 GB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001926/0.433, allocations: 1.327 MB / 0.5131 GB, free: 1.359 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.4331, allocations: 21.3 kB / 0.5132 GB, free: 1.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00164/0.4348, allocations: 1.117 MB / 0.5143 GB, free: 204 kB / 362.7 MB Notification: Performance of pre-optimization done (n=143): time 4.668e-06/0.4348, allocations: 3.938 kB / 0.5143 GB, free: 200 kB / 362.7 MB Notification: Performance of matching and sorting (n=143): time 0.003713/0.4385, allocations: 2.342 MB / 0.5165 GB, free: 13.83 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.4387, allocations: 294.3 kB / 0.5168 GB, free: 13.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/0.4403, allocations: 1.056 MB / 0.5179 GB, free: 12.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001427/0.4405, allocations: 37.7 kB / 0.5179 GB, free: 12.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004984/0.441, allocations: 0.5236 MB / 0.5184 GB, free: 11.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/0.4414, allocations: 433.7 kB / 0.5188 GB, free: 11.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.081e-05/0.4415, allocations: 3.938 kB / 0.5188 GB, free: 11.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.4417, allocations: 361.9 kB / 0.5192 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001381/0.4431, allocations: 0.9137 MB / 0.5201 GB, free: 10.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.4447, allocations: 1.226 MB / 0.5213 GB, free: 8.781 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001471/0.4461, allocations: 0.9626 MB / 0.5222 GB, free: 7.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.894e-06/0.4462, allocations: 4 kB / 0.5222 GB, free: 7.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.004067/0.4502, allocations: 2.58 MB / 0.5247 GB, free: 5.215 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.4503, allocations: 8 kB / 0.5247 GB, free: 5.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.571e-05/0.4503, allocations: 8 kB / 0.5247 GB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001896/0.4522, allocations: 0.7914 MB / 0.5255 GB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.4532, allocations: 219.8 kB / 0.5257 GB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/0.4643, allocations: 9.113 MB / 0.5346 GB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002722/0.467, allocations: 386.5 kB / 0.535 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002406/0.4673, allocations: 52 kB / 0.535 GB, free: 10.29 MB / 394.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 (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.0004604/0.4678, allocations: 210.6 kB / 0.5352 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003269/0.4681, allocations: 154.1 kB / 0.5354 GB, free: 9.922 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003967/0.4721, allocations: 2.496 MB / 0.5378 GB, free: 7.398 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.4721, allocations: 12 kB / 0.5378 GB, free: 7.387 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.4721, allocations: 0 / 0.5378 GB, free: 7.387 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.4721, allocations: 11.97 kB / 0.5378 GB, free: 7.375 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007678/0.4798, allocations: 4.928 MB / 0.5427 GB, free: 2.395 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.4798, allocations: 0 / 0.5427 GB, free: 2.395 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007305/0.4806, allocations: 127.9 kB / 0.5428 GB, free: 2.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001581/0.4822, allocations: 0.7669 MB / 0.5435 GB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.4823, allocations: 11.98 kB / 0.5435 GB, free: 1.484 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009749/0.4921, allocations: 8.892 MB / 0.5522 GB, free: 8.238 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.4921, allocations: 4 kB / 0.5522 GB, free: 8.234 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005286/0.4974, allocations: 3.997 MB / 0.5561 GB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008962/0.4983, allocations: 494.7 kB / 0.5566 GB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002728/0.4986, allocations: 15.94 kB / 0.5566 GB, free: 3.695 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002164/0.5007, allocations: 323.7 kB / 0.5569 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006417/0.5014, allocations: 345.2 kB / 0.5573 GB, free: 3.043 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.5015, allocations: 43.98 kB / 0.5573 GB, free: 3 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.00109/0.5026, allocations: 0.7992 MB / 0.5581 GB, free: 2.195 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001657/0.5043, allocations: 0.5223 MB / 0.5586 GB, free: 1.672 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 (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.0003967/0.5047, allocations: 208.2 kB / 0.5588 GB, free: 1.457 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003667/0.5084, allocations: 2.71 MB / 0.5614 GB, free: 14.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5084, allocations: 4 kB / 0.5614 GB, free: 14.69 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002333/0.5107, allocations: 1.801 MB / 0.5632 GB, free: 12.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.5121, allocations: 344.6 kB / 0.5635 GB, free: 12.52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007854/0.52, allocations: 3.62 MB / 0.5671 GB, free: 8.852 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00175/0.5217, allocations: 1.795 MB / 0.5688 GB, free: 7.02 MB / 426.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5218, allocations: 3.938 kB / 0.5688 GB, free: 7.016 MB / 426.7 MB Notification: Performance of Templates: time 0.1467/0.6684, allocations: 32.27 MB / 0.6003 GB, free: 167 MB / 426.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)