Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001556/0.001555, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.4 MB / 222.5 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.001185/0.001184, allocations: 88.42 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003888, allocations: 8 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3303, allocations: 47.56 MB / 374.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2034/0.5338, allocations: 105.9 MB / 480.5 MB, free: 6.734 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003897/0.5342, allocations: 95.94 kB / 480.6 MB, free: 6.641 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.428/0.9623, allocations: 36.66 MB / 0.5051 GB, free: 97.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.9624, allocations: 3.938 kB / 0.5051 GB, free: 97.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002052/0.9626, allocations: 40.53 kB / 0.5052 GB, free: 97.09 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.007913/0.9705, allocations: 2.067 MB / 0.5072 GB, free: 96.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.9706, allocations: 13.66 kB / 0.5072 GB, free: 96.08 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001024/0.9716, allocations: 236.7 kB / 0.5074 GB, free: 96.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00117/0.9728, allocations: 235.5 kB / 0.5076 GB, free: 95.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005006/0.9778, allocations: 1.387 MB / 0.509 GB, free: 95.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.978, allocations: 115.1 kB / 0.5091 GB, free: 95.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003775/0.9784, allocations: 155.1 kB / 0.5093 GB, free: 95.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004783/0.9832, allocations: 1.563 MB / 0.5108 GB, free: 94.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-05/0.9833, allocations: 0 / 0.5108 GB, free: 94.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002576/0.9836, allocations: 66.66 kB / 0.5109 GB, free: 94.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.178e-05/0.9837, allocations: 34.59 kB / 0.5109 GB, free: 94.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00437/0.9881, allocations: 1.256 MB / 0.5121 GB, free: 94.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01476/1.003, allocations: 6.398 MB / 0.5184 GB, free: 90.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003108/1.006, allocations: 1.048 MB / 0.5194 GB, free: 89.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001113/1.006, allocations: 7.5 kB / 0.5194 GB, free: 89.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001473/1.008, allocations: 0.578 MB / 0.52 GB, free: 89.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 4.899e-06/1.008, allocations: 0 / 0.52 GB, free: 89.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=95): time 0.01054/1.018, allocations: 3.198 MB / 0.5231 GB, free: 88.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.595e-05/1.018, allocations: 176.3 kB / 0.5232 GB, free: 87.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003485/1.022, allocations: 1.266 MB / 0.5245 GB, free: 87.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002469/1.022, allocations: 49.58 kB / 0.5245 GB, free: 87.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006539/1.023, allocations: 0.7505 MB / 0.5253 GB, free: 86.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004063/1.023, allocations: 312.7 kB / 0.5256 GB, free: 86.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/1.023, allocations: 31.38 kB / 0.5256 GB, free: 86.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/1.024, allocations: 361.8 kB / 0.5259 GB, free: 86.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/1.025, allocations: 450.1 kB / 0.5264 GB, free: 85.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/1.026, allocations: 0.8772 MB / 0.5272 GB, free: 85.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/1.028, allocations: 0.5349 MB / 0.5277 GB, free: 85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/1.028, allocations: 6.906 kB / 0.5277 GB, free: 85 MB / 378.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.004146/1.032, allocations: 1.556 MB / 0.5293 GB, free: 84.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001084/1.033, allocations: 5.057 MB / 0.5342 GB, free: 78.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.929e-05/1.034, allocations: 12 kB / 0.5342 GB, free: 78.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009759/1.035, allocations: 194.9 kB / 0.5344 GB, free: 78.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002151/1.037, allocations: 306.5 kB / 0.5347 GB, free: 78.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00516/1.042, allocations: 3.831 MB / 0.5384 GB, free: 74.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002501/1.044, allocations: 171.9 kB / 0.5386 GB, free: 74.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003137/1.045, allocations: 55.95 kB / 0.5387 GB, free: 73.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/1.045, allocations: 7.938 kB / 0.5387 GB, free: 73.98 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003686/1.049, allocations: 1.469 MB / 0.5401 GB, free: 72.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-05/1.049, allocations: 12 kB / 0.5401 GB, free: 72.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000721/1.049, allocations: 201.7 kB / 0.5403 GB, free: 72.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00203/1.051, allocations: 303.6 kB / 0.5406 GB, free: 71.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004804/1.056, allocations: 3.8 MB / 0.5443 GB, free: 67.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/1.058, allocations: 99.98 kB / 0.5444 GB, free: 67.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/1.058, allocations: 56 kB / 0.5445 GB, free: 67.76 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.001229/1.059, allocations: 0.516 MB / 0.545 GB, free: 67.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004194/1.059, allocations: 142.2 kB / 0.5451 GB, free: 67.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003127/1.063, allocations: 1.207 MB / 0.5463 GB, free: 65.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/1.063, allocations: 11.95 kB / 0.5463 GB, free: 65.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/1.063, allocations: 0 / 0.5463 GB, free: 65.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/1.063, allocations: 7.922 kB / 0.5463 GB, free: 65.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006921/1.07, allocations: 2.746 MB / 0.549 GB, free: 63.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/1.07, allocations: 4.031 kB / 0.549 GB, free: 63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/1.071, allocations: 167.8 kB / 0.5491 GB, free: 62.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007698/1.072, allocations: 175.6 kB / 0.5493 GB, free: 62.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/1.072, allocations: 23.98 kB / 0.5493 GB, free: 62.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004841/1.077, allocations: 3.716 MB / 0.553 GB, free: 58.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.077, allocations: 4.031 kB / 0.553 GB, free: 58.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004586/1.082, allocations: 1.885 MB / 0.5548 GB, free: 56.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/1.083, allocations: 323.2 kB / 0.5551 GB, free: 56.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003727/1.083, allocations: 28 kB / 0.5551 GB, free: 56.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001653/1.085, allocations: 135.8 kB / 0.5553 GB, free: 56.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003666/1.085, allocations: 104.8 kB / 0.5554 GB, free: 56.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.95e-05/1.085, allocations: 31.98 kB / 0.5554 GB, free: 56.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002684/1.088, allocations: 0.9776 MB / 0.5563 GB, free: 55.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.088, allocations: 0 / 0.5563 GB, free: 55.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003549/1.092, allocations: 0.6366 MB / 0.557 GB, free: 54.44 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.005186/1.097, allocations: 2.992 MB / 0.5599 GB, free: 51.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005948/1.103, allocations: 2.409 MB / 0.5622 GB, free: 48.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/1.103, allocations: 3.938 kB / 0.5622 GB, free: 48.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002029/1.105, allocations: 0.8557 MB / 0.5631 GB, free: 48.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002458/1.107, allocations: 291.7 kB / 0.5634 GB, free: 47.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/1.12, allocations: 13.87 MB / 0.5769 GB, free: 33.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009995/1.121, allocations: 1.333 MB / 0.5782 GB, free: 31.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00123/1.122, allocations: 0.6086 MB / 0.5788 GB, free: 31.38 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/1.122, allocations: 0 / 0.5788 GB, free: 31.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.317/4.439, allocations: 41.15 MB / 0.619 GB, free: 6.176 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat