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.001514/0.001514, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 205.3 MB / 214.4 MB, free: 1.668 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.0009429/0.0009428, allocations: 78.72 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.031e-05/2.032e-05, allocations: 0 / 315.6 MB, free: 22.6 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08975/0.08979, allocations: 47.59 MB / 363.2 MB, free: 6.949 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3243/0.4141, allocations: 105.3 MB / 468.5 MB, free: 6.332 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.4144, allocations: 94.62 kB / 468.6 MB, free: 6.277 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09448/0.5089, allocations: 36.19 MB / 0.493 GB, free: 7.672 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.509, allocations: 0 / 0.493 GB, free: 7.672 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001223/0.5091, allocations: 40.16 kB / 0.493 GB, free: 7.633 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.003116/0.5122, allocations: 1.732 MB / 0.4947 GB, free: 5.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.5123, allocations: 12.03 kB / 0.4947 GB, free: 5.828 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007521/0.513, allocations: 245.5 kB / 0.495 GB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002344/0.5154, allocations: 1.271 MB / 0.4962 GB, free: 4.258 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.145e-05/0.5155, allocations: 55.92 kB / 0.4963 GB, free: 4.203 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/0.5157, allocations: 91.91 kB / 0.4963 GB, free: 4.113 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001862/0.5175, allocations: 1.064 MB / 0.4974 GB, free: 3.047 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002426/0.52, allocations: 1.285 MB / 0.4986 GB, free: 1.695 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.052e-05/0.52, allocations: 11.89 kB / 0.4986 GB, free: 1.684 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.5201, allocations: 11.94 kB / 0.4987 GB, free: 1.672 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.692e-05/0.5202, allocations: 32 kB / 0.4987 GB, free: 1.641 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008657/0.5288, allocations: 6.098 MB / 0.5046 GB, free: 11.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.5304, allocations: 0.9824 MB / 0.5056 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007586/0.5312, allocations: 0.5197 MB / 0.5061 GB, free: 9.773 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.646e-05/0.5313, allocations: 8.781 kB / 0.5061 GB, free: 9.766 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007655/0.532, allocations: 0.52 MB / 0.5066 GB, free: 9.223 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 3.276e-06/0.532, allocations: 0 / 0.5066 GB, free: 9.223 MB / 394.7 MB Notification: Performance of matching and sorting (n=95): time 0.004101/0.5361, allocations: 2.237 MB / 0.5088 GB, free: 6.906 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.5363, allocations: 167 kB / 0.509 GB, free: 6.703 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001692/0.538, allocations: 0.981 MB / 0.5099 GB, free: 5.711 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.725e-05/0.5381, allocations: 37.69 kB / 0.51 GB, free: 5.668 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006373/0.5387, allocations: 0.7753 MB / 0.5107 GB, free: 4.883 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002482/0.539, allocations: 303.7 kB / 0.511 GB, free: 4.582 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-05/0.539, allocations: 0 / 0.511 GB, free: 4.582 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.5392, allocations: 353.9 kB / 0.5113 GB, free: 4.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005584/0.5398, allocations: 386.5 kB / 0.5117 GB, free: 3.855 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007849/0.5405, allocations: 0.7921 MB / 0.5125 GB, free: 2.867 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006926/0.5412, allocations: 490.1 kB / 0.513 GB, free: 2.391 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.5413, allocations: 4 kB / 0.513 GB, free: 2.387 MB / 394.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002129/0.5434, allocations: 1.428 MB / 0.5144 GB, free: 0.9258 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001703/0.5451, allocations: 5.057 MB / 0.5193 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.26e-05/0.5451, allocations: 12 kB / 0.5193 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005738/0.5457, allocations: 213.7 kB / 0.5195 GB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.5468, allocations: 307.5 kB / 0.5198 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003609/0.5505, allocations: 3.796 MB / 0.5235 GB, free: 6.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.5519, allocations: 155.8 kB / 0.5237 GB, free: 6.777 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.552, allocations: 56 kB / 0.5237 GB, free: 6.723 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.552, allocations: 4 kB / 0.5237 GB, free: 6.719 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001881/0.5539, allocations: 1.248 MB / 0.5249 GB, free: 5.445 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.5539, allocations: 16.12 kB / 0.5249 GB, free: 5.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004725/0.5544, allocations: 205.8 kB / 0.5251 GB, free: 5.223 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009975/0.5554, allocations: 307.5 kB / 0.5254 GB, free: 4.922 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003735/0.5592, allocations: 3.8 MB / 0.5291 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001637/0.5608, allocations: 131.8 kB / 0.5293 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.561, allocations: 56 kB / 0.5293 GB, free: 0.7109 MB / 410.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.0004513/0.5614, allocations: 162.8 kB / 0.5295 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.203/0.7644, allocations: 1.055 MB / 0.5305 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005029/0.765, allocations: 128.2 kB / 0.5306 GB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002182/0.7672, allocations: 1.111 MB / 0.5317 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.7672, allocations: 10.78 kB / 0.5317 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.769e-06/0.7672, allocations: 4.844 kB / 0.5317 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.7673, allocations: 5.766 kB / 0.5317 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004373/0.7716, allocations: 2.452 MB / 0.5341 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.7717, allocations: 1.156 kB / 0.5341 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007403/0.7724, allocations: 158.1 kB / 0.5343 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005472/0.773, allocations: 186.3 kB / 0.5345 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-05/0.7731, allocations: 17.17 kB / 0.5345 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003246/0.7763, allocations: 3.676 MB / 0.5381 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.7764, allocations: 2.547 kB / 0.5381 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.7787, allocations: 1.712 MB / 0.5397 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006276/0.7793, allocations: 308.7 kB / 0.54 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002957/0.7796, allocations: 16.91 kB / 0.5401 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008575/0.7805, allocations: 125.5 kB / 0.5402 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002606/0.7808, allocations: 103.3 kB / 0.5403 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.75e-05/0.7808, allocations: 31.45 kB / 0.5403 GB, free: 106.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009987/0.7818, allocations: 0.7209 MB / 0.541 GB, free: 106 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7818, allocations: 0 / 0.541 GB, free: 106 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00204/0.7839, allocations: 0.5386 MB / 0.5415 GB, free: 106 MB / 410.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.002735/0.7866, allocations: 2.791 MB / 0.5443 GB, free: 104.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00308/0.7897, allocations: 2.216 MB / 0.5464 GB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.7897, allocations: 1 kB / 0.5464 GB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.7908, allocations: 0.7924 MB / 0.5472 GB, free: 104 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.792, allocations: 253.9 kB / 0.5474 GB, free: 104 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005113/0.7971, allocations: 2.637 MB / 0.55 GB, free: 103.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000715/0.7979, allocations: 1.34 MB / 0.5513 GB, free: 102.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001309/0.7992, allocations: 408.8 kB / 0.5517 GB, free: 102.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000528/0.7997, allocations: 0.5704 MB / 0.5523 GB, free: 102.6 MB / 410.7 MB Notification: Performance of SimCode: time 9.91e-07/0.7997, allocations: 0 / 0.5523 GB, free: 102.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05352/0.8533, allocations: 32.2 MB / 0.5837 GB, free: 95.87 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/0.8535, allocations: 201.2 kB / 0.5839 GB, free: 95.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.069/3.922, allocations: 0 / 0.5839 GB, free: 95.6 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