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: 174.4 kB / 13.63 MB, free: 1.684 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.356/1.356, allocations: 221.3 MB / 235.5 MB, free: 2.934 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.0008375/0.0008375, allocations: 93.91 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.305e-05/2.309e-05, allocations: 0 / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09962/0.09966, allocations: 50.42 MB / 394.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.307/0.4067, allocations: 88.84 MB / 483.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.407, allocations: 91.94 kB / 483.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03687/0.4439, allocations: 14.41 MB / 497.7 MB, free: 20 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4439, allocations: 0 / 497.7 MB, free: 20 kB / 362.7 MB Notification: Performance of Transformations before backend: time 3.948e-05/0.444, allocations: 12 kB / 497.7 MB, free: 8 kB / 362.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.001443/0.4454, allocations: 0.8878 MB / 498.6 MB, free: 15.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.4455, allocations: 8.031 kB / 498.6 MB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001476/0.4456, allocations: 110.5 kB / 498.7 MB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.4458, allocations: 86.97 kB / 498.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007395/0.4465, allocations: 0.5056 MB / 499.3 MB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.609e-05/0.4466, allocations: 49.31 kB / 499.4 MB, free: 14.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-05/0.4467, allocations: 68 kB / 499.4 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.4478, allocations: 0.7108 MB / 0.4884 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.4479, allocations: 0 / 0.4884 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.531e-05/0.4479, allocations: 28 kB / 0.4884 GB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.448, allocations: 16 kB / 0.4885 GB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008333/0.4488, allocations: 0.505 MB / 0.489 GB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003769/0.4526, allocations: 2.682 MB / 0.4916 GB, free: 10.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008509/0.4535, allocations: 0.5288 MB / 0.4921 GB, free: 9.562 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005789/0.454, allocations: 318.5 kB / 0.4924 GB, free: 9.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.4541, allocations: 4.438 kB / 0.4924 GB, free: 9.246 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005514/0.4547, allocations: 362 kB / 0.4927 GB, free: 8.875 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 2.906e-06/0.4547, allocations: 0 / 0.4927 GB, free: 8.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.000942/0.4556, allocations: 0.5266 MB / 0.4933 GB, free: 8.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.764e-05/0.4557, allocations: 153 kB / 0.4934 GB, free: 8.156 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005031/0.4562, allocations: 431.8 kB / 0.4938 GB, free: 7.727 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.965e-05/0.4563, allocations: 49.62 kB / 0.4939 GB, free: 7.672 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.4565, allocations: 320.2 kB / 0.4942 GB, free: 7.352 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.4566, allocations: 169.7 kB / 0.4943 GB, free: 7.184 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.792e-05/0.4567, allocations: 12 kB / 0.4943 GB, free: 7.172 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.4568, allocations: 366.8 kB / 0.4947 GB, free: 6.805 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003088/0.4571, allocations: 189.5 kB / 0.4949 GB, free: 6.617 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004425/0.4576, allocations: 354.9 kB / 0.4952 GB, free: 6.203 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003288/0.4579, allocations: 207.2 kB / 0.4954 GB, free: 6.004 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4579, allocations: 0 / 0.4954 GB, free: 6.004 MB / 378.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001011/0.459, allocations: 0.6707 MB / 0.4961 GB, free: 5.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005395/0.4595, allocations: 1.58 MB / 0.4976 GB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.4595, allocations: 4 kB / 0.4976 GB, free: 3.617 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004776/0.46, allocations: 152.7 kB / 0.4978 GB, free: 3.465 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003519/0.4604, allocations: 91.83 kB / 0.4978 GB, free: 3.375 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002654/0.463, allocations: 2.338 MB / 0.5001 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005299/0.4636, allocations: 103.5 kB / 0.5002 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.4636, allocations: 24 kB / 0.5002 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.4637, allocations: 4 kB / 0.5002 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009479/0.4646, allocations: 0.5995 MB / 0.5008 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.4646, allocations: 4 kB / 0.5008 GB, free: 172 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003678/0.465, allocations: 146.2 kB / 0.501 GB, free: 24 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.4653, allocations: 83.83 kB / 0.5011 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/0.468, allocations: 2.337 MB / 0.5033 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000517/0.4685, allocations: 71.7 kB / 0.5034 GB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.308e-05/0.4685, allocations: 27.95 kB / 0.5034 GB, free: 13.38 MB / 394.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 () * 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.000236/0.4688, allocations: 161 kB / 0.5036 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.4689, allocations: 63.23 kB / 0.5036 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001845/0.4691, allocations: 61.59 kB / 0.5037 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.4691, allocations: 8 kB / 0.5037 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4691, allocations: 0 / 0.5037 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.4692, allocations: 7.984 kB / 0.5037 GB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.4713, allocations: 1.387 MB / 0.5051 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.4713, allocations: 4 kB / 0.5051 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002203/0.4715, allocations: 59.8 kB / 0.5051 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003742/0.4719, allocations: 146.1 kB / 0.5053 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/0.472, allocations: 12 kB / 0.5053 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00258/0.4746, allocations: 2.241 MB / 0.5075 GB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4746, allocations: 4 kB / 0.5075 GB, free: 9.027 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.4761, allocations: 0.9162 MB / 0.5084 GB, free: 8.082 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003116/0.4764, allocations: 188.3 kB / 0.5086 GB, free: 7.879 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.241e-05/0.4765, allocations: 16 kB / 0.5086 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003736/0.4769, allocations: 47.95 kB / 0.5086 GB, free: 7.816 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.4771, allocations: 72.45 kB / 0.5087 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.573e-05/0.4771, allocations: 19.98 kB / 0.5087 GB, free: 7.727 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004637/0.4776, allocations: 333.6 kB / 0.509 GB, free: 7.406 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4776, allocations: 0 / 0.509 GB, free: 7.406 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001051/0.4787, allocations: 343.1 kB / 0.5093 GB, free: 7.07 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * 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.001775/0.4804, allocations: 1.567 MB / 0.5109 GB, free: 5.465 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002087/0.4825, allocations: 1.202 MB / 0.5121 GB, free: 4.238 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.4826, allocations: 0 / 0.5121 GB, free: 4.238 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007108/0.4833, allocations: 450.7 kB / 0.5125 GB, free: 3.785 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006625/0.484, allocations: 111 kB / 0.5126 GB, free: 3.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002622/0.4866, allocations: 1.081 MB / 0.5136 GB, free: 2.555 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007269/0.4873, allocations: 0.9556 MB / 0.5146 GB, free: 1.57 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005001/0.4879, allocations: 124.9 kB / 0.5147 GB, free: 1.445 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003327/0.4882, allocations: 223.4 kB / 0.5149 GB, free: 1.227 MB / 394.7 MB Notification: Performance of SimCode: time 1.172e-06/0.4882, allocations: 0 / 0.5149 GB, free: 1.227 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03346/0.5217, allocations: 16.3 MB / 0.5308 GB, free: 1.273 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/0.5219, allocations: 234.2 kB / 0.531 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.418/2.94, allocations: 0 / 0.531 GB, free: 0.9648 MB / 410.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