Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 180.7 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000924/0.0009238, allocations: 97.34 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002607/0.0002606, allocations: 8 kB / 351.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2226, allocations: 50.42 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1181/0.3407, allocations: 107.2 MB / 0.4969 GB, free: 5.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.341, allocations: 91.94 kB / 0.497 GB, free: 5.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2765/0.6175, allocations: 37.16 MB / 0.5332 GB, free: 81.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.6175, allocations: 0 / 0.5332 GB, free: 81.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001298/0.6177, allocations: 39.94 kB / 0.5333 GB, free: 81.54 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: 373 * Number of variables: 373 Notification: Performance of Generate backend data structure: time 0.004079/0.6217, allocations: 2.1 MB / 0.5353 GB, free: 79.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.6218, allocations: 15.97 kB / 0.5353 GB, free: 79.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003873/0.6222, allocations: 222.3 kB / 0.5356 GB, free: 79.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006083/0.6228, allocations: 245.5 kB / 0.5358 GB, free: 78.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002609/0.6254, allocations: 1.403 MB / 0.5372 GB, free: 77.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.491e-05/0.6255, allocations: 111 kB / 0.5373 GB, free: 77.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.6257, allocations: 159.8 kB / 0.5374 GB, free: 77.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002253/0.628, allocations: 1.601 MB / 0.539 GB, free: 75.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.812e-05/0.628, allocations: 4 kB / 0.539 GB, free: 75.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.6281, allocations: 67.97 kB / 0.5391 GB, free: 75.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.6282, allocations: 36 kB / 0.5391 GB, free: 75.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.6301, allocations: 1.283 MB / 0.5403 GB, free: 74.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007671/0.6378, allocations: 6.471 MB / 0.5467 GB, free: 67.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/0.6392, allocations: 1.006 MB / 0.5476 GB, free: 66.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.596e-05/0.6393, allocations: 12.98 kB / 0.5477 GB, free: 66.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007684/0.64, allocations: 0.5951 MB / 0.5482 GB, free: 65.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=94): time 3.377e-06/0.64, allocations: 0 / 0.5482 GB, free: 65.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.005593/0.6456, allocations: 3.249 MB / 0.5514 GB, free: 62.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.209e-05/0.6458, allocations: 204.9 kB / 0.5516 GB, free: 62.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002196/0.648, allocations: 1.268 MB / 0.5528 GB, free: 60.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.365e-05/0.6481, allocations: 49.7 kB / 0.5529 GB, free: 60.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005891/0.6487, allocations: 0.788 MB / 0.5537 GB, free: 59.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/0.6489, allocations: 315.5 kB / 0.554 GB, free: 59.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/0.649, allocations: 31.94 kB / 0.554 GB, free: 59.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.6491, allocations: 361.9 kB / 0.5543 GB, free: 59.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006526/0.6498, allocations: 463.7 kB / 0.5548 GB, free: 58.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007978/0.6506, allocations: 0.8916 MB / 0.5557 GB, free: 57.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000756/0.6513, allocations: 0.5565 MB / 0.5562 GB, free: 57.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.6514, allocations: 4 kB / 0.5562 GB, free: 57.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.002224/0.6536, allocations: 1.666 MB / 0.5578 GB, free: 55.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007824/0.6544, allocations: 5.105 MB / 0.5628 GB, free: 50.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-05/0.6544, allocations: 20.06 kB / 0.5628 GB, free: 50.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005079/0.6549, allocations: 192.4 kB / 0.563 GB, free: 49.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.656, allocations: 323.5 kB / 0.5633 GB, free: 49.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002859/0.6588, allocations: 3.816 MB / 0.567 GB, free: 45.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/0.6602, allocations: 183.9 kB / 0.5672 GB, free: 45.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.6604, allocations: 52 kB / 0.5673 GB, free: 45.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.6604, allocations: 4 kB / 0.5673 GB, free: 45.18 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001951/0.6623, allocations: 1.495 MB / 0.5687 GB, free: 43.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.6624, allocations: 16.06 kB / 0.5688 GB, free: 43.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004223/0.6628, allocations: 193.6 kB / 0.5689 GB, free: 43.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009485/0.6638, allocations: 311.5 kB / 0.5692 GB, free: 43.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00266/0.6664, allocations: 3.813 MB / 0.573 GB, free: 39.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.6678, allocations: 163.8 kB / 0.5731 GB, free: 38.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.687e-05/0.6679, allocations: 56 kB / 0.5732 GB, free: 38.86 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_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$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 (148): * Single equations (assignments): 146 * 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.0008113/0.6687, allocations: 0.5084 MB / 0.5737 GB, free: 38.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002364/0.6689, allocations: 146.2 kB / 0.5738 GB, free: 38.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001782/0.6707, allocations: 1.234 MB / 0.575 GB, free: 36.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.6707, allocations: 12 kB / 0.575 GB, free: 36.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.6707, allocations: 0 / 0.575 GB, free: 36.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.6708, allocations: 3.984 kB / 0.575 GB, free: 36.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003517/0.6743, allocations: 2.813 MB / 0.5778 GB, free: 33.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.6743, allocations: 4 kB / 0.5778 GB, free: 33.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006788/0.675, allocations: 163.8 kB / 0.5779 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003983/0.6754, allocations: 177.7 kB / 0.5781 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/0.6755, allocations: 27.98 kB / 0.5781 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002635/0.6781, allocations: 3.732 MB / 0.5818 GB, free: 29.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.6781, allocations: 3.953 kB / 0.5818 GB, free: 29.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002329/0.6805, allocations: 1.917 MB / 0.5836 GB, free: 27.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000647/0.6811, allocations: 331.2 kB / 0.584 GB, free: 27.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001827/0.6813, allocations: 31.94 kB / 0.584 GB, free: 27.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008776/0.6822, allocations: 135.8 kB / 0.5841 GB, free: 27.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.6824, allocations: 108.8 kB / 0.5842 GB, free: 26.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.912e-05/0.6825, allocations: 23.98 kB / 0.5843 GB, free: 26.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001543/0.684, allocations: 0.9856 MB / 0.5852 GB, free: 25.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6841, allocations: 4 kB / 0.5852 GB, free: 25.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002219/0.6863, allocations: 0.6406 MB / 0.5858 GB, free: 25.34 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_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,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_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 70 * 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.002821/0.6891, allocations: 3.048 MB / 0.5888 GB, free: 22.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003156/0.6923, allocations: 2.45 MB / 0.5912 GB, free: 19.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.6923, allocations: 1.812 kB / 0.5912 GB, free: 19.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.6934, allocations: 0.863 MB / 0.5921 GB, free: 18.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001512/0.6949, allocations: 304.6 kB / 0.5923 GB, free: 18.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007461/0.7024, allocations: 13.91 MB / 0.6059 GB, free: 4.074 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007089/0.7031, allocations: 1.356 MB / 0.6073 GB, free: 2.688 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00116/0.7043, allocations: 303.4 kB / 0.6075 GB, free: 2.387 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006296/0.7049, allocations: 0.6047 MB / 0.6081 GB, free: 1.781 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.7049, allocations: 0 / 0.6081 GB, free: 1.781 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06343/0.7684, allocations: 35.55 MB / 0.6429 GB, free: 14.76 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002286/0.7686, allocations: 281.1 kB / 0.6431 GB, free: 14.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.072/3.841, allocations: 2.812 kB / 0.6431 GB, free: 14.39 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat