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_R.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_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",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.001062/0.001062, allocations: 180.9 kB / 16.38 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.319/1.319, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.0008408/0.0008407, allocations: 98.25 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002519/0.000252, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2246, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1072/0.3319, allocations: 88.92 MB / 490.5 MB, free: 7.531 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.3322, allocations: 91.95 kB / 490.6 MB, free: 7.441 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03738/0.3696, allocations: 14.41 MB / 0.4932 GB, free: 8.953 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3696, allocations: 0 / 0.4932 GB, free: 8.953 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.2e-05/0.3697, allocations: 19.94 kB / 0.4932 GB, free: 8.934 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: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.001964/0.3717, allocations: 0.9657 MB / 0.4941 GB, free: 7.906 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.3717, allocations: 15.97 kB / 0.4942 GB, free: 7.891 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001579/0.3719, allocations: 110.5 kB / 0.4943 GB, free: 7.773 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.3721, allocations: 90.97 kB / 0.4943 GB, free: 7.684 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008079/0.3729, allocations: 497.9 kB / 0.4948 GB, free: 7.156 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.337e-05/0.3729, allocations: 53.31 kB / 0.4949 GB, free: 7.105 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.3731, allocations: 67.98 kB / 0.4949 GB, free: 7.039 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.3744, allocations: 0.738 MB / 0.4957 GB, free: 6.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.3744, allocations: 7.938 kB / 0.4957 GB, free: 6.262 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.551e-05/0.3745, allocations: 28 kB / 0.4957 GB, free: 6.234 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.3745, allocations: 16 kB / 0.4957 GB, free: 6.219 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.3756, allocations: 0.5517 MB / 0.4962 GB, free: 5.668 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003923/0.3795, allocations: 2.682 MB / 0.4989 GB, free: 2.867 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.3806, allocations: 0.5527 MB / 0.4994 GB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.099e-05/0.3806, allocations: 4.438 kB / 0.4994 GB, free: 2.297 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007066/0.3814, allocations: 362.1 kB / 0.4998 GB, free: 1.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 2.685e-06/0.3814, allocations: 4 kB / 0.4998 GB, free: 1.926 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.002865/0.3842, allocations: 1.016 MB / 0.5008 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.294e-05/0.3843, allocations: 141.1 kB / 0.5009 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000569/0.3849, allocations: 453 kB / 0.5013 GB, free: 272 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.825e-05/0.385, allocations: 49.69 kB / 0.5014 GB, free: 216 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2005/0.5855, allocations: 307 kB / 0.5017 GB, free: 95.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000242/0.5858, allocations: 172.7 kB / 0.5018 GB, free: 95.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-05/0.5858, allocations: 12.78 kB / 0.5018 GB, free: 95.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.586, allocations: 367 kB / 0.5022 GB, free: 95.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005257/0.5865, allocations: 213.6 kB / 0.5024 GB, free: 95.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005289/0.587, allocations: 382.8 kB / 0.5028 GB, free: 95.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004441/0.5875, allocations: 229.8 kB / 0.503 GB, free: 95.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.5875, allocations: 1.562 kB / 0.503 GB, free: 95.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001431/0.5889, allocations: 0.724 MB / 0.5037 GB, free: 95.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003058/0.5893, allocations: 1.575 MB / 0.5052 GB, free: 93.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.5893, allocations: 9.641 kB / 0.5052 GB, free: 93.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005041/0.5898, allocations: 154 kB / 0.5054 GB, free: 93.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003589/0.5902, allocations: 92.8 kB / 0.5055 GB, free: 93.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/0.5929, allocations: 2.403 MB / 0.5078 GB, free: 92.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005153/0.5934, allocations: 91.39 kB / 0.5079 GB, free: 92.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.308e-05/0.5935, allocations: 21.47 kB / 0.5079 GB, free: 92.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.5935, allocations: 9.375 kB / 0.5079 GB, free: 92.07 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001077/0.5946, allocations: 0.6147 MB / 0.5085 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.5946, allocations: 3.969 kB / 0.5085 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004261/0.595, allocations: 159.3 kB / 0.5087 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002817/0.5953, allocations: 91.55 kB / 0.5088 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.5974, allocations: 2.386 MB / 0.5111 GB, free: 90.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000423/0.5978, allocations: 80.97 kB / 0.5112 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.5979, allocations: 21.56 kB / 0.5112 GB, free: 90.55 MB / 378.7 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_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 (63): * Single equations (assignments): 62 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.000387/0.5983, allocations: 326.8 kB / 0.5115 GB, free: 90.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.262e-05/0.5984, allocations: 61.44 kB / 0.5116 GB, free: 90.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.5985, allocations: 70.17 kB / 0.5116 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.5985, allocations: 7.031 kB / 0.5116 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.5985, allocations: 2 kB / 0.5116 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.5985, allocations: 3.609 kB / 0.5116 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.6002, allocations: 1.402 MB / 0.513 GB, free: 89.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.6002, allocations: 0 / 0.513 GB, free: 89.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.6004, allocations: 47.45 kB / 0.5131 GB, free: 89.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003399/0.6008, allocations: 143.5 kB / 0.5132 GB, free: 89.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.372e-05/0.6008, allocations: 12.88 kB / 0.5132 GB, free: 89.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.6028, allocations: 2.312 MB / 0.5155 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.023e-05/0.6029, allocations: 3.875 kB / 0.5155 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.604, allocations: 0.9391 MB / 0.5164 GB, free: 87.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/0.6042, allocations: 193.9 kB / 0.5166 GB, free: 86.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.313e-05/0.6043, allocations: 15.02 kB / 0.5166 GB, free: 86.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003349/0.6046, allocations: 42.84 kB / 0.5166 GB, free: 86.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.6048, allocations: 77.27 kB / 0.5167 GB, free: 86.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/0.6048, allocations: 18.47 kB / 0.5167 GB, free: 86.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003537/0.6052, allocations: 349.1 kB / 0.5171 GB, free: 86.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6052, allocations: 0 / 0.5171 GB, free: 86.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001009/0.6062, allocations: 347.6 kB / 0.5174 GB, free: 86.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * 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_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_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001418/0.6076, allocations: 1.525 MB / 0.5189 GB, free: 85.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.6094, allocations: 1.238 MB / 0.5201 GB, free: 85.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.6094, allocations: 0 / 0.5201 GB, free: 85.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005213/0.6099, allocations: 465.7 kB / 0.5205 GB, free: 84.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005345/0.6104, allocations: 106.1 kB / 0.5206 GB, free: 84.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.6132, allocations: 4.571 MB / 0.5251 GB, free: 80.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.6135, allocations: 0.9601 MB / 0.526 GB, free: 80.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003142/0.6139, allocations: 96.45 kB / 0.5261 GB, free: 80.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/0.6141, allocations: 230.4 kB / 0.5263 GB, free: 79.92 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.6141, allocations: 0 / 0.5263 GB, free: 79.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.6416, allocations: 15.5 MB / 0.5415 GB, free: 69.42 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.6418, allocations: 261 kB / 0.5417 GB, free: 69.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.355/2.997, allocations: 0 / 0.5417 GB, free: 69.06 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.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_R_res.mat does not exist to compare? outputFormat=mat