Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=150000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=150000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive") [: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.2+maint.om/package.mo): time 0.001686/0.001686, allocations: 190.1 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.36/1.36, allocations: 194.2 MB / 202.8 MB, free: 8.758 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001853/0.001853, allocations: 123.5 kB / 247.7 MB, free: 6.219 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 9.077e-06/9.338e-06, allocations: 4 kB / 297.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08083/0.08085, allocations: 44.48 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2375/0.3184, allocations: 99.75 MB / 441.8 MB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.3187, allocations: 91 kB / 441.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1018/0.4205, allocations: 35.67 MB / 477.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001916/0.4207, allocations: 36 kB / 477.6 MB, free: 14.73 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 365 * Number of variables: 365 Notification: Performance of Generate backend data structure: time 0.004289/0.425, allocations: 1.715 MB / 479.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.4251, allocations: 12.03 kB / 479.3 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/0.4262, allocations: 245.5 kB / 479.6 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003414/0.4297, allocations: 1.286 MB / 480.9 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.4298, allocations: 52 kB / 480.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003204/0.4301, allocations: 90 kB / 481 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002294/0.4324, allocations: 1.082 MB / 482.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002541/0.435, allocations: 1.293 MB / 483.4 MB, free: 9.406 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.191e-05/0.435, allocations: 7.938 kB / 483.4 MB, free: 9.398 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/0.4352, allocations: 4 kB / 483.4 MB, free: 9.395 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.568e-05/0.4352, allocations: 36 kB / 483.4 MB, free: 9.359 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009176/0.4444, allocations: 6.098 MB / 489.5 MB, free: 3.012 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.4455, allocations: 0.5425 MB / 490.1 MB, free: 2.461 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009115/0.4464, allocations: 0.5392 MB / 490.6 MB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.98e-05/0.4465, allocations: 8.781 kB / 490.6 MB, free: 1.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007873/0.4473, allocations: 0.5122 MB / 491.1 MB, free: 1.375 MB / 362.7 MB Notification: Performance of pre-optimization done (n=92): time 3.446e-06/0.4473, allocations: 0 / 491.1 MB, free: 1.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=95): time 0.004131/0.4514, allocations: 2.231 MB / 493.4 MB, free: 15.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.183e-05/0.4516, allocations: 178.9 kB / 493.5 MB, free: 14.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001539/0.4531, allocations: 0.9888 MB / 494.5 MB, free: 13.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.941e-05/0.4532, allocations: 33.7 kB / 494.5 MB, free: 13.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004457/0.4537, allocations: 0.5918 MB / 495.1 MB, free: 13.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002479/0.4539, allocations: 299.6 kB / 495.4 MB, free: 12.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-05/0.454, allocations: 0 / 495.4 MB, free: 12.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.4541, allocations: 365.9 kB / 495.8 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006485/0.4548, allocations: 394.5 kB / 496.2 MB, free: 12.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009533/0.4557, allocations: 0.8071 MB / 497 MB, free: 11.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007875/0.4565, allocations: 490.6 kB / 497.5 MB, free: 10.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.4565, allocations: 7.938 kB / 497.5 MB, free: 10.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002411/0.459, allocations: 1.427 MB / 498.9 MB, free: 9.227 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001543/0.4605, allocations: 5.046 MB / 0.4921 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.4606, allocations: 16 kB / 0.4921 GB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006488/0.4612, allocations: 211.2 kB / 0.4923 GB, free: 3.559 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.4624, allocations: 311.4 kB / 0.4926 GB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003623/0.4661, allocations: 3.586 MB / 0.4961 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.4675, allocations: 123.8 kB / 0.4963 GB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.4676, allocations: 64.05 kB / 0.4963 GB, free: 15.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.795e-06/0.4676, allocations: 4 kB / 0.4963 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001961/0.4696, allocations: 1.255 MB / 0.4976 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.4696, allocations: 19.94 kB / 0.4976 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005378/0.4702, allocations: 205.8 kB / 0.4978 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.4714, allocations: 303.5 kB / 0.4981 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003453/0.4748, allocations: 3.585 MB / 0.5016 GB, free: 9.637 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/0.4762, allocations: 111.9 kB / 0.5017 GB, free: 9.527 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-05/0.4763, allocations: 52.12 kB / 0.5017 GB, free: 9.477 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (144): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002944/0.4766, allocations: 172.7 kB / 0.5019 GB, free: 9.301 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002434/0.4768, allocations: 130.4 kB / 0.502 GB, free: 9.172 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.4788, allocations: 1.104 MB / 0.5031 GB, free: 8.027 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.4788, allocations: 11.94 kB / 0.5031 GB, free: 8.016 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.4788, allocations: 7.984 kB / 0.5031 GB, free: 8.008 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.4788, allocations: 3.984 kB / 0.5031 GB, free: 8.004 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003815/0.4826, allocations: 2.447 MB / 0.5055 GB, free: 5.473 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.4827, allocations: 0 / 0.5055 GB, free: 5.473 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008098/0.4835, allocations: 163.8 kB / 0.5057 GB, free: 5.312 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005234/0.484, allocations: 193.6 kB / 0.5058 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.778e-05/0.4841, allocations: 11.98 kB / 0.5058 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003454/0.4876, allocations: 3.55 MB / 0.5093 GB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.4876, allocations: 4 kB / 0.5093 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1443/0.6319, allocations: 1.728 MB / 0.511 GB, free: 75.41 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007044/0.6326, allocations: 308.3 kB / 0.5113 GB, free: 75.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002552/0.6329, allocations: 18.52 kB / 0.5113 GB, free: 75.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009421/0.6338, allocations: 99.28 kB / 0.5114 GB, free: 75.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.634, allocations: 64.72 kB / 0.5115 GB, free: 75.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.715e-05/0.6341, allocations: 27.81 kB / 0.5115 GB, free: 75.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0009211/0.635, allocations: 0.7241 MB / 0.5122 GB, free: 75.21 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001809/0.6368, allocations: 0.5296 MB / 0.5127 GB, free: 75.21 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twoPulse.filter[1].firstOrder.y,pulse2.twoPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twoPulse.filter[1].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.i) * Number of discrete variables: 20 (pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004049/0.6372, allocations: 298.7 kB / 0.513 GB, free: 75.11 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002677/0.6399, allocations: 2.157 MB / 0.5151 GB, free: 74.69 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.6399, allocations: 0 / 0.5151 GB, free: 74.69 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009505/0.6409, allocations: 0.7504 MB / 0.5158 GB, free: 74.49 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.642, allocations: 243.7 kB / 0.5161 GB, free: 74.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004465/0.6465, allocations: 2.418 MB / 0.5184 GB, free: 73.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009349/0.6474, allocations: 1.413 MB / 0.5198 GB, free: 73.15 MB / 394.7 MB Notification: Performance of SimCode: time 8.42e-07/0.6474, allocations: 0 / 0.5198 GB, free: 73.15 MB / 394.7 MB Notification: Performance of Templates: time 0.03642/0.6839, allocations: 24.49 MB / 0.5437 GB, free: 71.78 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.sim & ./Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe 2>&1)