Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) [: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.0009588/0.0009588, allocations: 179.9 kB / 8.474 MB, free: 1.879 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.035/1.035, allocations: 205.2 MB / 214.1 MB, free: 5.449 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.000853/0.0008531, allocations: 94.23 kB / 262.1 MB, free: 5.508 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1701/0.171, allocations: 52.99 MB / 315.1 MB, free: 41.44 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07117/0.2422, allocations: 47.57 MB / 362.6 MB, free: 9.902 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2363/0.4786, allocations: 105 MB / 467.7 MB, free: 3.535 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.4789, allocations: 89.45 kB / 467.8 MB, free: 3.523 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 366 * Number of variables: 366 Notification: Performance of Generate backend data structure: time 0.09949/0.5784, allocations: 37.76 MB / 0.4937 GB, free: 4.547 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.5784, allocations: 8 kB / 0.4937 GB, free: 4.539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000935/0.5794, allocations: 245 kB / 0.4939 GB, free: 4.301 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002874/0.5823, allocations: 1.289 MB / 0.4952 GB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.883e-05/0.5823, allocations: 55.67 kB / 0.4952 GB, free: 3.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002972/0.5827, allocations: 91.91 kB / 0.4953 GB, free: 3.117 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002127/0.5848, allocations: 1.081 MB / 0.4964 GB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.5871, allocations: 1.301 MB / 0.4976 GB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.129e-05/0.5872, allocations: 3.906 kB / 0.4976 GB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.5873, allocations: 7.984 kB / 0.4977 GB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.087e-05/0.5873, allocations: 39.98 kB / 0.4977 GB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008347/0.5957, allocations: 6.105 MB / 0.5037 GB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009275/0.5966, allocations: 0.5425 MB / 0.5042 GB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000809/0.5975, allocations: 0.5315 MB / 0.5047 GB, free: 9.887 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.557e-05/0.5975, allocations: 8.781 kB / 0.5047 GB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007009/0.5982, allocations: 0.5122 MB / 0.5052 GB, free: 9.344 MB / 362.7 MB Notification: Performance of pre-optimization done (n=92): time 2.835e-06/0.5983, allocations: 0 / 0.5052 GB, free: 9.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=95): time 0.00371/0.602, allocations: 2.23 MB / 0.5074 GB, free: 7.031 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.498e-05/0.6021, allocations: 175 kB / 0.5076 GB, free: 6.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/0.6034, allocations: 0.9927 MB / 0.5085 GB, free: 5.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.419e-05/0.6035, allocations: 33.7 kB / 0.5086 GB, free: 5.781 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004254/0.6039, allocations: 0.5995 MB / 0.5091 GB, free: 5.168 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002621/0.6042, allocations: 303.7 kB / 0.5094 GB, free: 4.867 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-05/0.6043, allocations: 0 / 0.5094 GB, free: 4.867 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.6044, allocations: 357.8 kB / 0.5098 GB, free: 4.512 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005993/0.605, allocations: 394.5 kB / 0.5101 GB, free: 4.129 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000825/0.6058, allocations: 0.8032 MB / 0.5109 GB, free: 3.137 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006953/0.6065, allocations: 498.7 kB / 0.5114 GB, free: 2.648 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.6066, allocations: 8 kB / 0.5114 GB, free: 2.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002138/0.6087, allocations: 1.426 MB / 0.5128 GB, free: 1.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001466/0.6102, allocations: 5.054 MB / 0.5177 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.6102, allocations: 16.08 kB / 0.5178 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006091/0.6108, allocations: 213.5 kB / 0.518 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.612, allocations: 303.5 kB / 0.5183 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003418/0.6154, allocations: 3.587 MB / 0.5218 GB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/0.6169, allocations: 123.9 kB / 0.5219 GB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.617, allocations: 59.97 kB / 0.5219 GB, free: 7.215 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.642e-06/0.617, allocations: 4 kB / 0.5219 GB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001861/0.6189, allocations: 1.266 MB / 0.5232 GB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.6189, allocations: 12 kB / 0.5232 GB, free: 5.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005105/0.6194, allocations: 205.8 kB / 0.5234 GB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.6205, allocations: 303.5 kB / 0.5237 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003345/0.6238, allocations: 3.592 MB / 0.5272 GB, free: 1.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/0.6251, allocations: 111.9 kB / 0.5273 GB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.421e-05/0.6252, allocations: 52.06 kB / 0.5273 GB, free: 1.426 MB / 378.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.0002766/0.6255, allocations: 160.6 kB / 0.5275 GB, free: 1.262 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/0.6257, allocations: 130.4 kB / 0.5276 GB, free: 1.133 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.6276, allocations: 1.112 MB / 0.5287 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.6276, allocations: 12 kB / 0.5287 GB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.6276, allocations: 128 / 0.5287 GB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.6276, allocations: 3.984 kB / 0.5287 GB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003698/0.6313, allocations: 2.474 MB / 0.5311 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.6314, allocations: 0 / 0.5311 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007735/0.6321, allocations: 159.9 kB / 0.5313 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005322/0.6327, allocations: 189.5 kB / 0.5315 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.877e-05/0.6328, allocations: 15.98 kB / 0.5315 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003309/0.6361, allocations: 3.544 MB / 0.5349 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.6361, allocations: 0 / 0.5349 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002396/0.6385, allocations: 1.742 MB / 0.5366 GB, free: 7.457 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004152/0.6427, allocations: 3.607 MB / 0.5402 GB, free: 3.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006377/0.6433, allocations: 307.4 kB / 0.5405 GB, free: 3.449 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.6436, allocations: 15.98 kB / 0.5405 GB, free: 3.434 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008989/0.6445, allocations: 95.89 kB / 0.5406 GB, free: 3.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.6447, allocations: 72.58 kB / 0.5406 GB, free: 3.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/0.6447, allocations: 27.98 kB / 0.5407 GB, free: 3.242 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001011/0.6457, allocations: 0.7245 MB / 0.5414 GB, free: 2.512 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003109/0.6489, allocations: 0.5546 MB / 0.5419 GB, free: 1.957 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.0004427/0.6493, allocations: 300 kB / 0.5422 GB, free: 1.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003155/0.6525, allocations: 2.152 MB / 0.5443 GB, free: 15.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.6525, allocations: 4 kB / 0.5443 GB, free: 15.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.6536, allocations: 0.749 MB / 0.545 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.655, allocations: 259.3 kB / 0.5453 GB, free: 14.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005085/0.6601, allocations: 2.463 MB / 0.5477 GB, free: 11.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/0.6612, allocations: 1.438 MB / 0.5491 GB, free: 10.45 MB / 410.7 MB Notification: Performance of SimCode: time 5.81e-07/0.6612, allocations: 0 / 0.5491 GB, free: 10.45 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat