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.002545/0.002545, allocations: 181.2 kB / 13.66 MB, free: 1.664 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.053/2.053, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001135/0.001135, allocations: 94.58 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.218e-05/3.234e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.0956, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4476/0.5433, allocations: 105.8 MB / 475 MB, free: 3.398 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003393/0.5437, allocations: 88.31 kB / 475 MB, free: 3.352 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1605/0.7041, allocations: 36.67 MB / 0.4997 GB, free: 248 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.7042, allocations: 3.938 kB / 0.4997 GB, free: 244 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002031/0.7044, allocations: 43.98 kB / 0.4998 GB, free: 200 kB / 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.006166/0.7106, allocations: 1.724 MB / 0.5015 GB, free: 14.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.918e-05/0.7107, allocations: 12.03 kB / 0.5015 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007991/0.7115, allocations: 229.9 kB / 0.5017 GB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001223/0.7127, allocations: 241.5 kB / 0.5019 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004748/0.7175, allocations: 1.278 MB / 0.5032 GB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001625/0.7177, allocations: 110.9 kB / 0.5033 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004526/0.7182, allocations: 155.8 kB / 0.5034 GB, free: 12.33 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004538/0.7227, allocations: 1.502 MB / 0.5049 GB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.327e-05/0.7228, allocations: 7.938 kB / 0.5049 GB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002225/0.7231, allocations: 60 kB / 0.5049 GB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.818e-05/0.7231, allocations: 39.95 kB / 0.505 GB, free: 10.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003971/0.7271, allocations: 1.151 MB / 0.5061 GB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01719/0.7443, allocations: 6.4 MB / 0.5124 GB, free: 2.828 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003205/0.7476, allocations: 1.005 MB / 0.5133 GB, free: 1.805 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001847/0.7495, allocations: 0.5822 MB / 0.5139 GB, free: 1.219 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.7496, allocations: 12.78 kB / 0.5139 GB, free: 1.207 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001475/0.7511, allocations: 0.5566 MB / 0.5145 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 3.677e-06/0.7511, allocations: 0 / 0.5145 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of matching and sorting (n=95): time 0.007161/0.7583, allocations: 2.389 MB / 0.5168 GB, free: 14.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.7585, allocations: 171 kB / 0.517 GB, free: 13.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003/0.7615, allocations: 1.145 MB / 0.5181 GB, free: 12.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002921/0.7619, allocations: 53.69 kB / 0.5181 GB, free: 12.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008778/0.7627, allocations: 0.7428 MB / 0.5189 GB, free: 11.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005371/0.7633, allocations: 315.6 kB / 0.5192 GB, free: 11.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.7634, allocations: 24 kB / 0.5192 GB, free: 11.65 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.7636, allocations: 362.8 kB / 0.5195 GB, free: 11.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.7649, allocations: 410.5 kB / 0.5199 GB, free: 10.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.7665, allocations: 0.8372 MB / 0.5207 GB, free: 9.852 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.768, allocations: 0.4954 MB / 0.5212 GB, free: 9.359 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.768, allocations: 8 kB / 0.5212 GB, free: 9.352 MB / 410.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.00411/0.7721, allocations: 1.484 MB / 0.5227 GB, free: 7.836 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00239/0.7746, allocations: 5.049 MB / 0.5276 GB, free: 2.395 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.326e-05/0.7746, allocations: 12 kB / 0.5276 GB, free: 2.383 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.7758, allocations: 220.6 kB / 0.5278 GB, free: 2.164 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002276/0.7781, allocations: 315.5 kB / 0.5281 GB, free: 1.855 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2981/1.076, allocations: 3.913 MB / 0.532 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002366/1.079, allocations: 169.8 kB / 0.5321 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000171/1.079, allocations: 55.66 kB / 0.5322 GB, free: 105.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/1.079, allocations: 3.375 kB / 0.5322 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003587/1.082, allocations: 1.419 MB / 0.5336 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.711e-05/1.083, allocations: 16.92 kB / 0.5336 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008374/1.083, allocations: 209 kB / 0.5338 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002075/1.085, allocations: 302.8 kB / 0.5341 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005289/1.091, allocations: 3.904 MB / 0.5379 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/1.092, allocations: 101.7 kB / 0.538 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/1.092, allocations: 56.14 kB / 0.538 GB, free: 102.4 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.0004102/1.093, allocations: 202.8 kB / 0.5382 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004572/1.093, allocations: 142.4 kB / 0.5384 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003227/1.096, allocations: 1.196 MB / 0.5395 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/1.096, allocations: 10.08 kB / 0.5395 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/1.097, allocations: 2.375 kB / 0.5395 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/1.097, allocations: 8.406 kB / 0.5395 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006673/1.103, allocations: 2.73 MB / 0.5422 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/1.103, allocations: 2.375 kB / 0.5422 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001326/1.105, allocations: 163.5 kB / 0.5424 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008504/1.105, allocations: 198 kB / 0.5426 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/1.106, allocations: 27.95 kB / 0.5426 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005183/1.111, allocations: 3.813 MB / 0.5463 GB, free: 99.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/1.111, allocations: 4.969 kB / 0.5463 GB, free: 99.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004312/1.115, allocations: 1.841 MB / 0.5481 GB, free: 98.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/1.116, allocations: 320 kB / 0.5484 GB, free: 98.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003109/1.117, allocations: 35.16 kB / 0.5484 GB, free: 98.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001655/1.118, allocations: 132.9 kB / 0.5486 GB, free: 98.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004258/1.119, allocations: 107.8 kB / 0.5487 GB, free: 98.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.139e-05/1.119, allocations: 29.81 kB / 0.5487 GB, free: 98.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002048/1.121, allocations: 0.8557 MB / 0.5495 GB, free: 98.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.121, allocations: 0 / 0.5495 GB, free: 98.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00348/1.124, allocations: 0.6337 MB / 0.5502 GB, free: 98.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.005074/1.13, allocations: 3.085 MB / 0.5532 GB, free: 96.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005334/1.135, allocations: 2.319 MB / 0.5554 GB, free: 96.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/1.135, allocations: 0 / 0.5554 GB, free: 96.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001941/1.137, allocations: 0.8506 MB / 0.5563 GB, free: 95.94 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002299/1.139, allocations: 303.4 kB / 0.5566 GB, free: 95.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007937/1.147, allocations: 2.762 MB / 0.5593 GB, free: 94.72 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009986/1.148, allocations: 1.331 MB / 0.5606 GB, free: 93.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/1.15, allocations: 0.6094 MB / 0.5611 GB, free: 93.49 MB / 410.7 MB Notification: Performance of SimCode: time 1.533e-06/1.15, allocations: 0 / 0.5611 GB, free: 93.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.383/4.533, allocations: 41.7 MB / 0.6019 GB, free: 74.65 MB / 410.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