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.001434/0.001434, allocations: 176.8 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009146/0.0009148, allocations: 83.38 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.282e-05/2.284e-05, allocations: 4 kB / 337.2 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0901/0.09014, allocations: 50.43 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3075/0.3977, allocations: 106.5 MB / 494 MB, free: 4.191 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.398, allocations: 85.55 kB / 494.1 MB, free: 4.109 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09327/0.4913, allocations: 36.7 MB / 0.5184 GB, free: 15.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4914, allocations: 0 / 0.5184 GB, free: 15.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001225/0.4915, allocations: 43.88 kB / 0.5184 GB, free: 15.13 MB / 410.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.003058/0.4946, allocations: 1.756 MB / 0.5201 GB, free: 13.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.4946, allocations: 12.03 kB / 0.5201 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006245/0.4952, allocations: 241.5 kB / 0.5204 GB, free: 13.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002264/0.4975, allocations: 1.29 MB / 0.5216 GB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.317e-05/0.4976, allocations: 52 kB / 0.5217 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.4978, allocations: 95.89 kB / 0.5218 GB, free: 11.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001771/0.4995, allocations: 1.087 MB / 0.5228 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/0.5016, allocations: 1.318 MB / 0.5241 GB, free: 9.098 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.792e-05/0.5017, allocations: 11.84 kB / 0.5241 GB, free: 9.086 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.761e-05/0.5018, allocations: 0 / 0.5241 GB, free: 9.086 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.569e-05/0.5018, allocations: 36 kB / 0.5242 GB, free: 9.051 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007683/0.5095, allocations: 6.184 MB / 0.5302 GB, free: 2.621 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.511, allocations: 0.9279 MB / 0.5311 GB, free: 1.684 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000823/0.5118, allocations: 0.5276 MB / 0.5316 GB, free: 1.152 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.361e-05/0.5119, allocations: 12.72 kB / 0.5316 GB, free: 1.137 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008743/0.5128, allocations: 0.5318 MB / 0.5322 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of pre-optimization done (n=94): time 3.497e-06/0.5128, allocations: 0 / 0.5322 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of matching and sorting (n=97): time 0.004336/0.5171, allocations: 2.284 MB / 0.5344 GB, free: 14.22 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.849e-05/0.5173, allocations: 196.7 kB / 0.5346 GB, free: 13.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/0.5186, allocations: 0.9852 MB / 0.5355 GB, free: 12.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.5187, allocations: 37.7 kB / 0.5356 GB, free: 12.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005901/0.5193, allocations: 0.791 MB / 0.5363 GB, free: 12.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.5196, allocations: 299.6 kB / 0.5366 GB, free: 11.85 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.673e-05/0.5196, allocations: 4 kB / 0.5366 GB, free: 11.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.5197, allocations: 361.9 kB / 0.537 GB, free: 11.48 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005475/0.5203, allocations: 391.9 kB / 0.5374 GB, free: 11.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007974/0.5211, allocations: 0.8139 MB / 0.5382 GB, free: 10.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006697/0.5218, allocations: 498 kB / 0.5386 GB, free: 9.602 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.5218, allocations: 7.938 kB / 0.5386 GB, free: 9.594 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.002097/0.5239, allocations: 1.447 MB / 0.54 GB, free: 8.113 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001461/0.5254, allocations: 5.07 MB / 0.545 GB, free: 2.656 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.5254, allocations: 12 kB / 0.545 GB, free: 2.645 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005636/0.526, allocations: 213.7 kB / 0.5452 GB, free: 2.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.5271, allocations: 311.5 kB / 0.5455 GB, free: 2.125 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2003/0.7274, allocations: 3.798 MB / 0.5492 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.729, allocations: 146.6 kB / 0.5494 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.7291, allocations: 54.38 kB / 0.5494 GB, free: 110.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.7291, allocations: 3.5 kB / 0.5494 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00201/0.7311, allocations: 1.28 MB / 0.5507 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.7312, allocations: 15.81 kB / 0.5507 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004769/0.7317, allocations: 207.7 kB / 0.5509 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.7327, allocations: 306.9 kB / 0.5512 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003287/0.736, allocations: 3.804 MB / 0.5549 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00127/0.7373, allocations: 133.4 kB / 0.555 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.805e-05/0.7374, allocations: 57.94 kB / 0.5551 GB, free: 107.7 MB / 426.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 () * 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%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002735/0.7377, allocations: 167 kB / 0.5552 GB, free: 107.6 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001602/0.7393, allocations: 1.09 MB / 0.5563 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.7394, allocations: 131.8 kB / 0.5564 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001711/0.7412, allocations: 1.132 MB / 0.5575 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/0.7412, allocations: 15.03 kB / 0.5575 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.7412, allocations: 1.719 kB / 0.5575 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.7412, allocations: 5.156 kB / 0.5575 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003685/0.7449, allocations: 2.496 MB / 0.56 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.7449, allocations: 4.062 kB / 0.56 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007481/0.7457, allocations: 164.9 kB / 0.5601 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004975/0.7462, allocations: 196.2 kB / 0.5603 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-05/0.7463, allocations: 15.55 kB / 0.5603 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003043/0.7493, allocations: 3.673 MB / 0.5639 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.7493, allocations: 2 kB / 0.5639 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002201/0.7515, allocations: 1.753 MB / 0.5656 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004868/0.752, allocations: 315.9 kB / 0.5659 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.7522, allocations: 15.16 kB / 0.566 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008649/0.7531, allocations: 123.9 kB / 0.5661 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000216/0.7533, allocations: 101.1 kB / 0.5662 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.893e-05/0.7534, allocations: 29.25 kB / 0.5662 GB, free: 103.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009815/0.7544, allocations: 0.7276 MB / 0.5669 GB, free: 103.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7544, allocations: 0 / 0.5669 GB, free: 103.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002098/0.7565, allocations: 0.5438 MB / 0.5674 GB, free: 103.6 MB / 426.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_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * 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%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002671/0.7592, allocations: 2.846 MB / 0.5702 GB, free: 102.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003102/0.7623, allocations: 2.248 MB / 0.5724 GB, free: 101.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.7623, allocations: 1.25 kB / 0.5724 GB, free: 101.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.7634, allocations: 0.8092 MB / 0.5732 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001285/0.7647, allocations: 262.5 kB / 0.5735 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005445/0.7701, allocations: 2.675 MB / 0.5761 GB, free: 100.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006949/0.7708, allocations: 1.359 MB / 0.5774 GB, free: 100 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001338/0.7722, allocations: 428.9 kB / 0.5778 GB, free: 99.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005296/0.7727, allocations: 0.5862 MB / 0.5784 GB, free: 99.5 MB / 426.7 MB Notification: Performance of SimCode: time 5.91e-07/0.7727, allocations: 0 / 0.5784 GB, free: 99.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05278/0.8255, allocations: 32.61 MB / 0.6102 GB, free: 91.91 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002473/0.8258, allocations: 214.2 kB / 0.6104 GB, free: 91.62 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.106/3.932, allocations: 0 / 0.6104 GB, free: 91.62 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