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") [: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 trunk/package.mo): time 0.001039/0.001039, allocations: 196 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008373/0.0008373, allocations: 96.42 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.474e-06/7.514e-06, allocations: 0 / 343.2 MB, free: 8.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 51.47 MB / 394.6 MB, free: 5.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3005/0.4094, allocations: 110.2 MB / 0.493 GB, free: 15.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.4097, allocations: 88 kB / 0.4931 GB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.0921/0.5018, allocations: 35.03 MB / 0.5273 GB, free: 1.418 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002163/0.5021, allocations: 51.94 kB / 0.5273 GB, free: 1.367 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: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.00636/0.5085, allocations: 2.15 MB / 0.5294 GB, free: 15.15 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.5085, allocations: 12.03 kB / 0.5294 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/0.51, allocations: 293.2 kB / 0.5297 GB, free: 14.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003286/0.5133, allocations: 1.398 MB / 0.5311 GB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006928/0.514, allocations: 196.6 kB / 0.5313 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004453/0.5145, allocations: 96 kB / 0.5313 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00421/0.5187, allocations: 2.36 MB / 0.5337 GB, free: 10.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00398/0.5227, allocations: 2.332 MB / 0.5359 GB, free: 8.285 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.889e-05/0.5227, allocations: 3.938 kB / 0.5359 GB, free: 8.281 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001785/0.5229, allocations: 8 kB / 0.5359 GB, free: 8.273 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-05/0.523, allocations: 70.86 kB / 0.536 GB, free: 8.203 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01505/0.5381, allocations: 7.827 MB / 0.5437 GB, free: 264 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00265/0.5407, allocations: 1.938 MB / 0.5455 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001879/0.5426, allocations: 1.315 MB / 0.5468 GB, free: 12.99 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.5428, allocations: 21.3 kB / 0.5469 GB, free: 12.97 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001591/0.5444, allocations: 1.117 MB / 0.5479 GB, free: 11.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=143): time 4.498e-06/0.5444, allocations: 0 / 0.5479 GB, free: 11.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=143): time 0.003674/0.5481, allocations: 2.342 MB / 0.5502 GB, free: 9.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.5482, allocations: 294.3 kB / 0.5505 GB, free: 9.133 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/0.55, allocations: 1.065 MB / 0.5516 GB, free: 8.059 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.5501, allocations: 33.7 kB / 0.5516 GB, free: 8.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000507/0.5506, allocations: 0.5277 MB / 0.5521 GB, free: 7.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003995/0.5511, allocations: 437.6 kB / 0.5525 GB, free: 7.047 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.442e-05/0.5512, allocations: 4 kB / 0.5525 GB, free: 7.043 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.5514, allocations: 365.9 kB / 0.5529 GB, free: 6.68 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.5527, allocations: 0.9098 MB / 0.5538 GB, free: 5.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.5542, allocations: 1.218 MB / 0.5549 GB, free: 4.426 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.5556, allocations: 0.9665 MB / 0.5559 GB, free: 3.461 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/0.5556, allocations: 4 kB / 0.5559 GB, free: 3.457 MB / 426.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.003979/0.5596, allocations: 2.584 MB / 0.5584 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.5596, allocations: 4 kB / 0.5584 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.448e-05/0.5597, allocations: 12 kB / 0.5584 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001783/0.5615, allocations: 0.7901 MB / 0.5592 GB, free: 40 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.5625, allocations: 219.6 kB / 0.5594 GB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.5734, allocations: 9.114 MB / 0.5683 GB, free: 6.371 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003061/0.5765, allocations: 382.7 kB / 0.5687 GB, free: 5.996 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003804/0.5769, allocations: 52 kB / 0.5687 GB, free: 5.945 MB / 442.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.0008459/0.5778, allocations: 218.4 kB / 0.5689 GB, free: 5.723 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006052/0.5784, allocations: 146.2 kB / 0.5691 GB, free: 5.578 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004508/0.5829, allocations: 2.488 MB / 0.5715 GB, free: 3.066 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-05/0.583, allocations: 16 kB / 0.5715 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.583, allocations: 0 / 0.5715 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.459e-05/0.583, allocations: 15.88 kB / 0.5715 GB, free: 3.035 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1937/0.7767, allocations: 4.921 MB / 0.5763 GB, free: 81.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.7768, allocations: 3.031 kB / 0.5763 GB, free: 81.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007476/0.7775, allocations: 134.4 kB / 0.5765 GB, free: 81.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/0.7789, allocations: 0.7594 MB / 0.5772 GB, free: 81.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.7791, allocations: 21.03 kB / 0.5772 GB, free: 81.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007772/0.7868, allocations: 8.884 MB / 0.5859 GB, free: 78.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.7869, allocations: 0 / 0.5859 GB, free: 78.04 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004435/0.7913, allocations: 3.995 MB / 0.5898 GB, free: 77.85 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007921/0.7921, allocations: 488.2 kB / 0.5903 GB, free: 77.69 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002679/0.7924, allocations: 20.72 kB / 0.5903 GB, free: 77.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002118/0.7945, allocations: 315.9 kB / 0.5906 GB, free: 77.69 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005639/0.7951, allocations: 347.6 kB / 0.5909 GB, free: 77.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.7952, allocations: 41.72 kB / 0.591 GB, free: 77.69 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008744/0.7961, allocations: 0.8062 MB / 0.5918 GB, free: 77.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001514/0.7976, allocations: 0.5238 MB / 0.5923 GB, free: 77.55 MB / 442.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.0003617/0.798, allocations: 214.5 kB / 0.5925 GB, free: 77.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003107/0.8011, allocations: 2.706 MB / 0.5951 GB, free: 77.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.8011, allocations: 3.188 kB / 0.5951 GB, free: 77.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001903/0.803, allocations: 1.798 MB / 0.5969 GB, free: 76.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.8044, allocations: 356.9 kB / 0.5972 GB, free: 76.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007191/0.8116, allocations: 3.627 MB / 0.6008 GB, free: 76.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001388/0.813, allocations: 1.81 MB / 0.6025 GB, free: 75.29 MB / 442.7 MB Notification: Performance of SimCode: time 1.392e-06/0.813, allocations: 6.688 kB / 0.6025 GB, free: 75.29 MB / 442.7 MB Notification: Performance of Templates: time 0.04839/0.8614, allocations: 32.27 MB / 0.634 GB, free: 73.54 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)