Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.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_RLV,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 196.7 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009624/0.0009624, allocations: 90.58 kB / 292.1 MB, free: 5.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.319e-05/4.321e-05, allocations: 7.984 kB / 350.7 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1064, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3407/0.4471, allocations: 90.3 MB / 492.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/0.4474, allocations: 86.45 kB / 492.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03951/0.487, allocations: 15.16 MB / 0.4958 GB, free: 1.582 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.776e-06/0.487, allocations: 1.594 kB / 0.4958 GB, free: 1.582 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.242e-05/0.4871, allocations: 16 kB / 0.4958 GB, free: 1.566 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 175 * Number of variables: 175 Notification: Performance of Generate backend data structure: time 0.002379/0.4895, allocations: 0.9304 MB / 0.4967 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.4896, allocations: 8.031 kB / 0.4967 GB, free: 0.5781 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002921/0.4899, allocations: 115.4 kB / 0.4968 GB, free: 468 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003806/0.4903, allocations: 110.5 kB / 0.4969 GB, free: 360 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.4914, allocations: 0.5142 MB / 0.4974 GB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.72e-05/0.4915, allocations: 61.98 kB / 0.4975 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.4916, allocations: 72 kB / 0.4976 GB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.493, allocations: 0.7404 MB / 0.4983 GB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.4931, allocations: 8 kB / 0.4983 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.187e-05/0.4931, allocations: 31.98 kB / 0.4983 GB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.4932, allocations: 16 kB / 0.4983 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.4942, allocations: 0.5309 MB / 0.4989 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004584/0.4988, allocations: 2.794 MB / 0.5016 GB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008751/0.4997, allocations: 0.5598 MB / 0.5021 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008363/0.5006, allocations: 432.7 kB / 0.5026 GB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.463e-05/0.5006, allocations: 12.52 kB / 0.5026 GB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005914/0.5012, allocations: 362.2 kB / 0.5029 GB, free: 10.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=60): time 2.935e-06/0.5012, allocations: 0 / 0.5029 GB, free: 10.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=60): time 0.001123/0.5024, allocations: 0.5664 MB / 0.5035 GB, free: 9.453 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.5025, allocations: 145.1 kB / 0.5036 GB, free: 9.281 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000988/0.5035, allocations: 444.7 kB / 0.504 GB, free: 8.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.487e-05/0.5036, allocations: 45.7 kB / 0.5041 GB, free: 8.789 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/0.504, allocations: 348.1 kB / 0.5044 GB, free: 8.441 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/0.5043, allocations: 185.4 kB / 0.5046 GB, free: 8.258 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-05/0.5043, allocations: 12 kB / 0.5046 GB, free: 8.246 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002136/0.5046, allocations: 370.8 kB / 0.5049 GB, free: 7.875 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005741/0.5052, allocations: 201.5 kB / 0.5051 GB, free: 7.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007831/0.506, allocations: 372.2 kB / 0.5055 GB, free: 7.242 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005532/0.5065, allocations: 215.2 kB / 0.5057 GB, free: 7.035 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.5065, allocations: 4 kB / 0.5057 GB, free: 7.031 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001841/0.5084, allocations: 0.7261 MB / 0.5064 GB, free: 6.289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009286/0.5093, allocations: 1.573 MB / 0.5079 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.5094, allocations: 4 kB / 0.5079 GB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007395/0.5101, allocations: 167.3 kB / 0.5081 GB, free: 4.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/0.5107, allocations: 99.81 kB / 0.5082 GB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005299/0.516, allocations: 3.588 MB / 0.5117 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009409/0.517, allocations: 99.45 kB / 0.5118 GB, free: 380 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.455e-05/0.5171, allocations: 24 kB / 0.5118 GB, free: 356 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.5171, allocations: 4 kB / 0.5118 GB, free: 352 kB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001829/0.519, allocations: 0.647 MB / 0.5125 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.519, allocations: 4.5 kB / 0.5125 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007021/0.5197, allocations: 165.6 kB / 0.5126 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005867/0.5203, allocations: 95.81 kB / 0.5127 GB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005488/0.5258, allocations: 3.598 MB / 0.5162 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009168/0.5268, allocations: 71.56 kB / 0.5163 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.631e-05/0.5269, allocations: 24 kB / 0.5163 GB, free: 11.46 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 (68): * Single equations (assignments): 66 * 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.0003366/0.5272, allocations: 164.8 kB / 0.5165 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.5274, allocations: 67.3 kB / 0.5165 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002761/0.5277, allocations: 73.81 kB / 0.5166 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.818e-05/0.5278, allocations: 4 kB / 0.5166 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.5278, allocations: 0 / 0.5166 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.5278, allocations: 3.984 kB / 0.5166 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.5305, allocations: 1.497 MB / 0.5181 GB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.5306, allocations: 0 / 0.5181 GB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002834/0.5308, allocations: 59.91 kB / 0.5181 GB, free: 9.531 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003963/0.5312, allocations: 161.4 kB / 0.5183 GB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.145e-05/0.5313, allocations: 12 kB / 0.5183 GB, free: 9.359 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003467/0.5348, allocations: 3.499 MB / 0.5217 GB, free: 5.598 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.273e-06/0.5348, allocations: 7.969 kB / 0.5217 GB, free: 5.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.5365, allocations: 1.003 MB / 0.5227 GB, free: 4.555 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003192/0.5369, allocations: 204.2 kB / 0.5229 GB, free: 4.336 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.369e-05/0.537, allocations: 12 kB / 0.5229 GB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003746/0.5374, allocations: 47.97 kB / 0.523 GB, free: 4.277 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.5376, allocations: 80.38 kB / 0.523 GB, free: 4.199 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-05/0.5376, allocations: 16 kB / 0.523 GB, free: 4.184 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004537/0.5381, allocations: 345.6 kB / 0.5234 GB, free: 3.848 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5381, allocations: 0 / 0.5234 GB, free: 3.848 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001163/0.5392, allocations: 359.1 kB / 0.5237 GB, free: 3.496 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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_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_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 37 * 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.002107/0.5414, allocations: 1.661 MB / 0.5253 GB, free: 1.793 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002163/0.5435, allocations: 1.424 MB / 0.5267 GB, free: 332 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5436, allocations: 1.062 kB / 0.5267 GB, free: 332 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007274/0.5443, allocations: 0.5664 MB / 0.5273 GB, free: 15.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005688/0.5449, allocations: 105.3 kB / 0.5274 GB, free: 15.63 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.5472, allocations: 1.182 MB / 0.5285 GB, free: 14.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005268/0.5477, allocations: 0.9865 MB / 0.5295 GB, free: 13.39 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004346/0.5481, allocations: 125 kB / 0.5296 GB, free: 13.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002852/0.5484, allocations: 239.3 kB / 0.5299 GB, free: 13.04 MB / 410.7 MB Notification: Performance of SimCode: time 3.6e-07/0.5484, allocations: 4 kB / 0.5299 GB, free: 13.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03418/0.5826, allocations: 16.99 MB / 0.5464 GB, free: 12.47 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003073/0.583, allocations: 230.6 kB / 0.5467 GB, free: 12.16 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.624/3.207, allocations: 0 / 0.5467 GB, free: 12.16 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_res.mat does not exist to compare? outputFormat=mat