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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001673/0.001673, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.559/1.559, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.001034/0.001034, allocations: 94.91 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.0002911, allocations: 8 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2454, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.3624, allocations: 105.8 MB / 481.8 MB, free: 6.762 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/0.3628, allocations: 95.94 kB / 481.9 MB, free: 6.668 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2855/0.6484, allocations: 36.66 MB / 0.5064 GB, free: 97.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.6484, allocations: 0 / 0.5064 GB, free: 97.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001831/0.6486, allocations: 40.19 kB / 0.5064 GB, free: 97.41 MB / 378.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.005179/0.6538, allocations: 2.068 MB / 0.5084 GB, free: 96.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.6538, allocations: 14.75 kB / 0.5084 GB, free: 96.4 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006744/0.6545, allocations: 226.5 kB / 0.5087 GB, free: 96.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.6555, allocations: 237.8 kB / 0.5089 GB, free: 96.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003416/0.659, allocations: 1.381 MB / 0.5102 GB, free: 95.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.6591, allocations: 117.2 kB / 0.5103 GB, free: 95.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003167/0.6594, allocations: 152.8 kB / 0.5105 GB, free: 95.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002901/0.6623, allocations: 1.562 MB / 0.512 GB, free: 95.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.451e-05/0.6624, allocations: 11.61 kB / 0.512 GB, free: 95.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/0.6625, allocations: 65.48 kB / 0.5121 GB, free: 95.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.6626, allocations: 38.03 kB / 0.5121 GB, free: 95.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002161/0.6647, allocations: 1.255 MB / 0.5134 GB, free: 94.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009091/0.6738, allocations: 6.404 MB / 0.5196 GB, free: 90.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.6756, allocations: 1.04 MB / 0.5206 GB, free: 90.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.309e-05/0.6757, allocations: 12.72 kB / 0.5206 GB, free: 90.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008472/0.6765, allocations: 0.5728 MB / 0.5212 GB, free: 90.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 3.426e-06/0.6765, allocations: 2.812 kB / 0.5212 GB, free: 90.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=95): time 0.005935/0.6825, allocations: 3.195 MB / 0.5243 GB, free: 88.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.797e-05/0.6826, allocations: 177.8 kB / 0.5245 GB, free: 88.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002183/0.6848, allocations: 1.269 MB / 0.5257 GB, free: 87.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.122e-05/0.6849, allocations: 49.14 kB / 0.5258 GB, free: 87.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005691/0.6854, allocations: 0.7731 MB / 0.5265 GB, free: 87.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002358/0.6857, allocations: 315.8 kB / 0.5268 GB, free: 86.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/0.6858, allocations: 25.31 kB / 0.5269 GB, free: 86.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.6859, allocations: 356.3 kB / 0.5272 GB, free: 86.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000751/0.6866, allocations: 457.4 kB / 0.5276 GB, free: 86.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000961/0.6876, allocations: 0.8719 MB / 0.5285 GB, free: 85.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008726/0.6885, allocations: 0.5332 MB / 0.529 GB, free: 85.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/0.6885, allocations: 6.594 kB / 0.529 GB, free: 85.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002474/0.691, allocations: 1.642 MB / 0.5306 GB, free: 84.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009253/0.6919, allocations: 5.101 MB / 0.5356 GB, free: 78.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/0.692, allocations: 16 kB / 0.5356 GB, free: 78.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005445/0.6925, allocations: 196.2 kB / 0.5358 GB, free: 78.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.6935, allocations: 315.7 kB / 0.5361 GB, free: 78.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003374/0.6969, allocations: 3.829 MB / 0.5398 GB, free: 74.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.6985, allocations: 167.6 kB / 0.54 GB, free: 74.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.6986, allocations: 59.95 kB / 0.5401 GB, free: 74.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.005e-06/0.6986, allocations: 8 kB / 0.5401 GB, free: 74.03 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002144/0.7008, allocations: 1.463 MB / 0.5415 GB, free: 72.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-05/0.7008, allocations: 16 kB / 0.5415 GB, free: 72.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004306/0.7013, allocations: 192.2 kB / 0.5417 GB, free: 72.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009405/0.7022, allocations: 311.7 kB / 0.542 GB, free: 72.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/0.705, allocations: 3.816 MB / 0.5457 GB, free: 67.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.7065, allocations: 159.8 kB / 0.5459 GB, free: 67.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.7066, allocations: 56 kB / 0.5459 GB, free: 67.73 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 144 * 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%) 4} * Non-linear torn systems: 1 {4 13} Notification: Performance of prepare postOptimizeDAE: time 0.0009545/0.7075, allocations: 0.5122 MB / 0.5464 GB, free: 67.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003574/0.7079, allocations: 138.3 kB / 0.5466 GB, free: 67.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001942/0.7098, allocations: 1.207 MB / 0.5477 GB, free: 65.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.7099, allocations: 11.95 kB / 0.5477 GB, free: 65.83 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.7099, allocations: 4 kB / 0.5477 GB, free: 65.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.7099, allocations: 7.922 kB / 0.5478 GB, free: 65.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004113/0.714, allocations: 2.743 MB / 0.5504 GB, free: 62.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.714, allocations: 4 kB / 0.5504 GB, free: 62.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.7147, allocations: 163.9 kB / 0.5506 GB, free: 62.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003894/0.7151, allocations: 173.5 kB / 0.5508 GB, free: 62.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.554e-05/0.7152, allocations: 27.98 kB / 0.5508 GB, free: 62.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002693/0.7179, allocations: 3.729 MB / 0.5544 GB, free: 58.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.7179, allocations: 0 / 0.5544 GB, free: 58.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002291/0.7202, allocations: 1.881 MB / 0.5563 GB, free: 56.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007099/0.7209, allocations: 319.3 kB / 0.5566 GB, free: 56.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002757/0.7212, allocations: 27.98 kB / 0.5566 GB, free: 56.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009421/0.7222, allocations: 131.8 kB / 0.5567 GB, free: 56.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.7223, allocations: 112.8 kB / 0.5568 GB, free: 56.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-05/0.7224, allocations: 27.98 kB / 0.5569 GB, free: 56.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001638/0.724, allocations: 0.9854 MB / 0.5578 GB, free: 55.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7241, allocations: 0 / 0.5578 GB, free: 55.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002361/0.7264, allocations: 0.6327 MB / 0.5584 GB, free: 54.41 MB / 378.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_n2.off,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 68 * 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%) 4} * Non-linear torn systems: 1 {4 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.003061/0.7295, allocations: 2.992 MB / 0.5614 GB, free: 51.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004032/0.7335, allocations: 2.41 MB / 0.5637 GB, free: 48.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/0.7336, allocations: 1 kB / 0.5637 GB, free: 48.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00134/0.7349, allocations: 0.8699 MB / 0.5646 GB, free: 48.01 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002499/0.7375, allocations: 297.7 kB / 0.5648 GB, free: 47.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009821/0.7473, allocations: 13.82 MB / 0.5783 GB, free: 33.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008792/0.7482, allocations: 1.341 MB / 0.5796 GB, free: 32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001117/0.7494, allocations: 303.2 kB / 0.5799 GB, free: 31.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007005/0.7501, allocations: 0.5969 MB / 0.5805 GB, free: 31.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7501, allocations: 0 / 0.5805 GB, free: 31.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06217/0.8123, allocations: 35.15 MB / 0.6148 GB, free: 11.89 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002503/0.8126, allocations: 284 kB / 0.6151 GB, free: 11.52 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.163/3.976, allocations: 0 / 0.6151 GB, free: 11.52 MB / 394.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