Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001138/0.001138, allocations: 197 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008224/0.0008225, allocations: 102.2 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000201/0.0002012, allocations: 4 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1921/0.1924, allocations: 51.47 MB / 409.5 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1032/0.2956, allocations: 89.75 MB / 499.3 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.2959, allocations: 87.94 kB / 499.3 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03639/0.3323, allocations: 14.57 MB / 0.5019 GB, free: 2.141 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3323, allocations: 0 / 0.5019 GB, free: 2.141 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.059e-05/0.3324, allocations: 12 kB / 0.5019 GB, free: 2.129 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.002123/0.3345, allocations: 0.9774 MB / 0.5028 GB, free: 1.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3346, allocations: 8.031 kB / 0.5028 GB, free: 1.082 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002171/0.3348, allocations: 110.5 kB / 0.5029 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00032/0.3351, allocations: 106.9 kB / 0.503 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009476/0.3361, allocations: 0.5017 MB / 0.5035 GB, free: 324 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.47e-05/0.3362, allocations: 49.31 kB / 0.5036 GB, free: 276 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.3363, allocations: 75.92 kB / 0.5037 GB, free: 200 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1969/0.5332, allocations: 0.7212 MB / 0.5044 GB, free: 90.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.5333, allocations: 4.281 kB / 0.5044 GB, free: 90.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.53e-05/0.5334, allocations: 29.45 kB / 0.5044 GB, free: 90.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.5334, allocations: 15.34 kB / 0.5044 GB, free: 90.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.5345, allocations: 0.5553 MB / 0.505 GB, free: 90.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003863/0.5384, allocations: 2.701 MB / 0.5076 GB, free: 89.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009149/0.5393, allocations: 0.5489 MB / 0.5081 GB, free: 89.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.904e-05/0.5394, allocations: 5.812 kB / 0.5081 GB, free: 89.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005793/0.5399, allocations: 363.9 kB / 0.5085 GB, free: 89.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 3.657e-06/0.54, allocations: 3.938 kB / 0.5085 GB, free: 89.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.002419/0.5424, allocations: 1.014 MB / 0.5095 GB, free: 89.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.5425, allocations: 145.1 kB / 0.5096 GB, free: 89.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006907/0.5432, allocations: 457.2 kB / 0.51 GB, free: 89.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.81e-05/0.5432, allocations: 44.73 kB / 0.5101 GB, free: 89.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.5434, allocations: 323.8 kB / 0.5104 GB, free: 88.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.5436, allocations: 176 kB / 0.5106 GB, free: 88.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.949e-05/0.5436, allocations: 10.88 kB / 0.5106 GB, free: 88.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.5437, allocations: 370.4 kB / 0.5109 GB, free: 88.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004602/0.5442, allocations: 218.3 kB / 0.5111 GB, free: 88.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004575/0.5446, allocations: 379 kB / 0.5115 GB, free: 88.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00038/0.545, allocations: 238 kB / 0.5117 GB, free: 88.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.545, allocations: 0.9062 kB / 0.5117 GB, free: 88.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.000987/0.546, allocations: 0.7219 MB / 0.5124 GB, free: 87.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002839/0.5463, allocations: 1.571 MB / 0.514 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.5463, allocations: 3.094 kB / 0.514 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004462/0.5468, allocations: 163.5 kB / 0.5141 GB, free: 85.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003191/0.5471, allocations: 94.36 kB / 0.5142 GB, free: 85.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002241/0.5494, allocations: 2.392 MB / 0.5165 GB, free: 84.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004203/0.5498, allocations: 99.86 kB / 0.5166 GB, free: 84.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/0.5499, allocations: 23.06 kB / 0.5167 GB, free: 84.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.061e-06/0.5499, allocations: 3.875 kB / 0.5167 GB, free: 84.06 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008048/0.5507, allocations: 0.6133 MB / 0.5173 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.5507, allocations: 4.438 kB / 0.5173 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000331/0.551, allocations: 159.1 kB / 0.5174 GB, free: 83.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.5513, allocations: 87.53 kB / 0.5175 GB, free: 83.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.5533, allocations: 2.396 MB / 0.5198 GB, free: 81.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.5537, allocations: 72.95 kB / 0.5199 GB, free: 81.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.243e-05/0.5537, allocations: 22.12 kB / 0.5199 GB, free: 81.8 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.0003151/0.554, allocations: 323.6 kB / 0.5202 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.545e-05/0.5541, allocations: 61.56 kB / 0.5203 GB, free: 81.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.5542, allocations: 73.59 kB / 0.5204 GB, free: 81.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.5543, allocations: 7.812 kB / 0.5204 GB, free: 81.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5543, allocations: 0 / 0.5204 GB, free: 81.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.5543, allocations: 3.891 kB / 0.5204 GB, free: 81.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.556, allocations: 1.407 MB / 0.5218 GB, free: 80.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.556, allocations: 0 / 0.5218 GB, free: 80.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002113/0.5562, allocations: 46.94 kB / 0.5218 GB, free: 80.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003296/0.5565, allocations: 148.3 kB / 0.5219 GB, free: 80.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/0.5566, allocations: 19.78 kB / 0.522 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001972/0.5585, allocations: 2.303 MB / 0.5242 GB, free: 78.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5586, allocations: 0 / 0.5242 GB, free: 78.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.5597, allocations: 0.9454 MB / 0.5251 GB, free: 78.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001816/0.5599, allocations: 186.1 kB / 0.5253 GB, free: 78.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.826e-05/0.56, allocations: 11.78 kB / 0.5253 GB, free: 78.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003303/0.5603, allocations: 47.66 kB / 0.5254 GB, free: 78.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.5604, allocations: 69.56 kB / 0.5254 GB, free: 78.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-05/0.5605, allocations: 21.2 kB / 0.5255 GB, free: 78.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003454/0.5608, allocations: 356.4 kB / 0.5258 GB, free: 77.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5608, allocations: 0 / 0.5258 GB, free: 77.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008586/0.5617, allocations: 348.1 kB / 0.5261 GB, free: 77.89 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.001352/0.5631, allocations: 1.531 MB / 0.5276 GB, free: 76.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.5647, allocations: 1.243 MB / 0.5288 GB, free: 76.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5647, allocations: 0 / 0.5288 GB, free: 76.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004942/0.5652, allocations: 469.8 kB / 0.5293 GB, free: 75.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004617/0.5657, allocations: 114.2 kB / 0.5294 GB, free: 75.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002582/0.5682, allocations: 4.585 MB / 0.5339 GB, free: 71.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.5686, allocations: 0.9563 MB / 0.5348 GB, free: 70.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002865/0.5689, allocations: 104.5 kB / 0.5349 GB, free: 70.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002261/0.5691, allocations: 228.5 kB / 0.5351 GB, free: 70.71 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.5691, allocations: 0 / 0.5351 GB, free: 70.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02887/0.598, allocations: 15.66 MB / 0.5504 GB, free: 57.71 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002451/0.5983, allocations: 261.8 kB / 0.5507 GB, free: 57.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/2.774, allocations: 0 / 0.5507 GB, free: 57.36 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat does not exist to compare? outputFormat=mat