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_RL.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_RL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL",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.001584/0.001584, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.958/1.958, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 90.17 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.15e-05/2.138e-05, allocations: 0 / 314.9 MB, free: 9.031 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3361, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.5335, allocations: 87.18 MB / 449.6 MB, free: 15.01 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004843/0.534, allocations: 87.94 kB / 449.7 MB, free: 14.92 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08354/0.6176, allocations: 13.81 MB / 463.5 MB, free: 1.129 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6176, allocations: 0 / 463.5 MB, free: 1.129 MB / 347.1 MB Notification: Performance of Transformations before backend: time 9.583e-05/0.6178, allocations: 20 kB / 463.5 MB, free: 1.109 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.00366/0.6214, allocations: 0.8839 MB / 464.4 MB, free: 176 kB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.648e-05/0.6215, allocations: 12.02 kB / 464.4 MB, free: 164 kB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004675/0.622, allocations: 86.97 kB / 464.5 MB, free: 76 kB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.6241, allocations: 0.5 MB / 465 MB, free: 15.53 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.065e-05/0.6242, allocations: 28 kB / 465 MB, free: 15.5 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002396/0.6245, allocations: 40 kB / 465.1 MB, free: 15.46 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002304/0.6268, allocations: 462.5 kB / 465.5 MB, free: 15.01 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.6292, allocations: 0.598 MB / 466.1 MB, free: 14.39 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.829e-05/0.6293, allocations: 0 / 466.1 MB, free: 14.39 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.6295, allocations: 11.98 kB / 466.1 MB, free: 14.38 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.725e-05/0.6295, allocations: 19.94 kB / 466.2 MB, free: 14.36 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009453/0.639, allocations: 2.518 MB / 468.7 MB, free: 11.74 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002421/0.6415, allocations: 0.5412 MB / 469.2 MB, free: 11.18 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.643, allocations: 334.1 kB / 469.6 MB, free: 10.86 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-05/0.6431, allocations: 4.438 kB / 469.6 MB, free: 10.85 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001221/0.6444, allocations: 333.5 kB / 469.9 MB, free: 10.51 MB / 363.1 MB Notification: Performance of pre-optimization done (n=57): time 4.618e-06/0.6444, allocations: 0 / 469.9 MB, free: 10.51 MB / 363.1 MB Notification: Performance of matching and sorting (n=57): time 0.002194/0.6466, allocations: 0.4928 MB / 470.4 MB, free: 10 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.6468, allocations: 115.4 kB / 470.5 MB, free: 9.863 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001072/0.6479, allocations: 369.1 kB / 470.8 MB, free: 9.496 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001946/0.6482, allocations: 33.69 kB / 470.9 MB, free: 9.457 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006077/0.6488, allocations: 358.5 kB / 471.2 MB, free: 9.105 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003832/0.6492, allocations: 173.6 kB / 471.4 MB, free: 8.934 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.751e-05/0.6493, allocations: 4 kB / 471.4 MB, free: 8.93 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.6495, allocations: 334.8 kB / 471.7 MB, free: 8.594 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007421/0.6503, allocations: 177.5 kB / 471.9 MB, free: 8.422 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009582/0.6513, allocations: 331.8 kB / 472.2 MB, free: 8.035 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007971/0.6521, allocations: 194 kB / 472.4 MB, free: 7.848 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/0.6522, allocations: 4 kB / 472.4 MB, free: 7.844 MB / 363.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002541/0.6547, allocations: 0.5899 MB / 473 MB, free: 7.242 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001007/0.6558, allocations: 1.579 MB / 474.6 MB, free: 5.539 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.032e-05/0.6559, allocations: 4.938 kB / 474.6 MB, free: 5.535 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.657, allocations: 157.6 kB / 474.8 MB, free: 5.375 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.6581, allocations: 99.83 kB / 474.8 MB, free: 5.277 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007606/0.6657, allocations: 3.485 MB / 478.3 MB, free: 1.559 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.667, allocations: 79.55 kB / 478.4 MB, free: 1.48 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.6671, allocations: 24 kB / 478.4 MB, free: 1.457 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.6672, allocations: 7.953 kB / 478.4 MB, free: 1.449 MB / 363.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002146/0.6693, allocations: 0.53 MB / 479 MB, free: 0.9141 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.53e-05/0.6694, allocations: 4 kB / 479 MB, free: 0.9102 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008805/0.6703, allocations: 162.1 kB / 479.1 MB, free: 0.7461 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008672/0.6712, allocations: 88.08 kB / 479.2 MB, free: 0.6602 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007129/0.6784, allocations: 3.476 MB / 482.7 MB, free: 12.96 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008865/0.6793, allocations: 59.62 kB / 482.8 MB, free: 12.9 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.456e-05/0.6794, allocations: 24 kB / 482.8 MB, free: 12.88 MB / 379.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (65): * Single equations (assignments): 63 * 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: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003958/0.6799, allocations: 138 kB / 482.9 MB, free: 12.73 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001988/0.6819, allocations: 0.5001 MB / 483.4 MB, free: 12.22 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002249/0.6821, allocations: 51.34 kB / 483.5 MB, free: 12.17 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002713/0.6824, allocations: 61.58 kB / 483.5 MB, free: 12.11 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/0.6825, allocations: 8 kB / 483.5 MB, free: 12.1 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.6825, allocations: 4.125 kB / 483.5 MB, free: 12.1 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.6825, allocations: 3.984 kB / 483.5 MB, free: 12.09 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004653/0.6872, allocations: 1.262 MB / 484.8 MB, free: 10.78 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/0.6872, allocations: 4 kB / 484.8 MB, free: 10.77 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007073/0.688, allocations: 47.91 kB / 484.9 MB, free: 10.73 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009962/0.689, allocations: 141.6 kB / 485 MB, free: 10.58 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/0.6891, allocations: 12 kB / 485 MB, free: 10.57 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007496/0.6967, allocations: 3.387 MB / 488.4 MB, free: 6.949 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/0.6967, allocations: 4 kB / 488.4 MB, free: 6.945 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003425/0.7002, allocations: 0.8788 MB / 489.3 MB, free: 6.047 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000643/0.7009, allocations: 172.5 kB / 489.4 MB, free: 5.859 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/0.7011, allocations: 15.92 kB / 489.5 MB, free: 5.844 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008848/0.702, allocations: 31.97 kB / 489.5 MB, free: 5.812 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004247/0.7024, allocations: 76.45 kB / 489.6 MB, free: 5.738 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.989e-05/0.7025, allocations: 15.98 kB / 489.6 MB, free: 5.723 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0007871/0.7033, allocations: 275 kB / 489.8 MB, free: 5.453 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.022e-06/0.7034, allocations: 0 / 489.8 MB, free: 5.453 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.002889/0.7063, allocations: 307 kB / 490.1 MB, free: 5.152 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[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 (41): * Single equations (assignments): 34 * 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: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004158/0.7105, allocations: 1.438 MB / 491.6 MB, free: 3.676 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.004276/0.7148, allocations: 1.28 MB / 492.9 MB, free: 2.359 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/0.7149, allocations: 1.438 kB / 492.9 MB, free: 2.359 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001618/0.7165, allocations: 0.5051 MB / 493.4 MB, free: 1.836 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.7178, allocations: 79.5 kB / 493.4 MB, free: 1.762 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005634/0.7235, allocations: 1.054 MB / 494.5 MB, free: 0.6602 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/0.7248, allocations: 0.9465 MB / 495.4 MB, free: 15.68 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000881/0.7258, allocations: 231.3 kB / 495.7 MB, free: 15.46 MB / 395.1 MB Notification: Performance of SimCode: time 1.944e-06/0.7258, allocations: 96 / 495.7 MB, free: 15.46 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.315/4.04, allocations: 15.98 MB / 0.4997 GB, free: 117.7 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.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_RL_res.mat does not exist to compare? outputFormat=mat