Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.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.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R",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.001625/0.001625, allocations: 185.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001195/0.001195, allocations: 78.94 kB / 270.8 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003939/0.0003939, allocations: 8 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3349, allocations: 47.57 MB / 374.7 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1402/0.4751, allocations: 84.52 MB / 459.2 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003439/0.4755, allocations: 83.95 kB / 459.2 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04198/0.5175, allocations: 9.67 MB / 468.9 MB, free: 2.324 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5176, allocations: 0 / 468.9 MB, free: 2.324 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.099e-05/0.5176, allocations: 12 kB / 468.9 MB, free: 2.312 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.001996/0.5196, allocations: 0.7271 MB / 469.7 MB, free: 1.539 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.5197, allocations: 8.031 kB / 469.7 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001757/0.5199, allocations: 78.53 kB / 469.7 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.5201, allocations: 55.34 kB / 469.8 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008811/0.521, allocations: 375.1 kB / 470.2 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.956e-05/0.5211, allocations: 40.92 kB / 470.2 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.5212, allocations: 44 kB / 470.2 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.5225, allocations: 455 kB / 470.7 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.5225, allocations: 0 / 470.7 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-05/0.5226, allocations: 16 kB / 470.7 MB, free: 440 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.5226, allocations: 12 kB / 470.7 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/0.5238, allocations: 339.7 kB / 471 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004076/0.5279, allocations: 1.554 MB / 472.6 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007898/0.5288, allocations: 247.7 kB / 472.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.765e-05/0.5288, allocations: 0 / 472.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006054/0.5294, allocations: 229 kB / 473.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.224e-06/0.5294, allocations: 7.875 kB / 473.1 MB, free: 13.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001881/0.5313, allocations: 0.4995 MB / 473.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.818e-05/0.5315, allocations: 114.7 kB / 473.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006763/0.5322, allocations: 323.5 kB / 474 MB, free: 12.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.188e-05/0.5322, allocations: 41.69 kB / 474 MB, free: 12.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.5325, allocations: 278.6 kB / 474.3 MB, free: 12.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.5326, allocations: 90.8 kB / 474.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/0.5327, allocations: 8 kB / 474.4 MB, free: 12.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.5329, allocations: 326.8 kB / 474.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004455/0.5333, allocations: 128.8 kB / 474.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005907/0.5339, allocations: 263.1 kB / 475.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004895/0.5344, allocations: 149.1 kB / 475.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.5345, allocations: 4 kB / 475.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001329/0.5358, allocations: 432.9 kB / 475.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008122/0.5366, allocations: 1.663 MB / 477.3 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.5367, allocations: 4 kB / 477.4 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003526/0.537, allocations: 44.83 kB / 477.4 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005012/0.5375, allocations: 71.84 kB / 477.5 MB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/0.5396, allocations: 1.498 MB / 479 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006981/0.5403, allocations: 79.7 kB / 479 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.476e-05/0.5404, allocations: 27.83 kB / 479.1 MB, free: 7.523 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.5404, allocations: 4 kB / 479.1 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001064/0.5415, allocations: 356.5 kB / 479.4 MB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.5415, allocations: 4 kB / 479.4 MB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002174/0.5417, allocations: 48.77 kB / 479.5 MB, free: 7.113 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003783/0.5421, allocations: 56.05 kB / 479.5 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/0.544, allocations: 1.503 MB / 481 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004882/0.5445, allocations: 59.72 kB / 481.1 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.5446, allocations: 20 kB / 481.1 MB, free: 5.336 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,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_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004618/0.545, allocations: 271.2 kB / 481.4 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.5452, allocations: 31.62 kB / 481.4 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.5453, allocations: 44.06 kB / 481.4 MB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.5453, allocations: 4 kB / 481.5 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5453, allocations: 0 / 481.5 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.5453, allocations: 0 / 481.5 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002022/0.5474, allocations: 0.8464 MB / 482.3 MB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.5474, allocations: 11.94 kB / 482.3 MB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.5477, allocations: 19.94 kB / 482.3 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000219/0.5479, allocations: 36.83 kB / 482.4 MB, free: 4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.405e-05/0.548, allocations: 15.94 kB / 482.4 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001721/0.5497, allocations: 1.421 MB / 483.8 MB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5497, allocations: 0 / 483.8 MB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.5512, allocations: 0.5284 MB / 484.3 MB, free: 1.887 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002476/0.5515, allocations: 140.6 kB / 484.5 MB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.505e-05/0.5516, allocations: 8 kB / 484.5 MB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004455/0.552, allocations: 32.34 kB / 484.5 MB, free: 1.691 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.5522, allocations: 35.95 kB / 484.5 MB, free: 1.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.382e-05/0.5522, allocations: 12 kB / 484.6 MB, free: 1.645 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005119/0.5527, allocations: 247 kB / 484.8 MB, free: 1.406 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5528, allocations: 0 / 484.8 MB, free: 1.406 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001086/0.5539, allocations: 195.4 kB / 485 MB, free: 1.215 MB / 362.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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 19 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001829/0.5557, allocations: 1.08 MB / 486.1 MB, free: 108 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001889/0.5576, allocations: 0.7178 MB / 486.8 MB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.5577, allocations: 4 kB / 486.8 MB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005539/0.5582, allocations: 250.5 kB / 487 MB, free: 15.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006108/0.5588, allocations: 56.45 kB / 487.1 MB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004335/0.5632, allocations: 4.099 MB / 491.2 MB, free: 10.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005845/0.5638, allocations: 0.8471 MB / 492 MB, free: 9.941 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/0.5642, allocations: 139.4 kB / 492.2 MB, free: 9.805 MB / 378.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5642, allocations: 0 / 492.2 MB, free: 9.805 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.758/3.323, allocations: 8.267 MB / 0.4887 GB, free: 1.559 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat