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_Characteristic.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_Characteristic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",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.00218/0.002179, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.00114/0.00114, allocations: 94.61 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.123e-05/3.147e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/0.09683, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4243/0.5212, allocations: 84.62 MB / 453.8 MB, free: 8.285 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000458/0.5218, allocations: 85.56 kB / 453.9 MB, free: 8.234 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04603/0.5678, allocations: 9.76 MB / 463.7 MB, free: 15.95 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5679, allocations: 0 / 463.7 MB, free: 15.95 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.092e-05/0.5679, allocations: 16 kB / 463.7 MB, free: 15.94 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.001939/0.5699, allocations: 0.6987 MB / 464.4 MB, free: 15.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.5699, allocations: 12.03 kB / 464.4 MB, free: 15.21 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001727/0.5701, allocations: 77.91 kB / 464.5 MB, free: 15.15 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.5703, allocations: 55.34 kB / 464.5 MB, free: 15.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009601/0.5713, allocations: 384.8 kB / 464.9 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.017e-05/0.5714, allocations: 29.84 kB / 464.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.5715, allocations: 49.05 kB / 465 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.5726, allocations: 432.7 kB / 465.4 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.447e-05/0.5727, allocations: 0 / 465.4 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.591e-05/0.5728, allocations: 19.31 kB / 465.4 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.5728, allocations: 8 kB / 465.4 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008346/0.5736, allocations: 298.4 kB / 465.7 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004191/0.5778, allocations: 1.585 MB / 467.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.5793, allocations: 348.7 kB / 467.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/0.5796, allocations: 105.3 kB / 467.7 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.282e-05/0.5796, allocations: 12.16 kB / 467.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005953/0.5802, allocations: 237.2 kB / 468 MB, free: 12.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 2.745e-06/0.5803, allocations: 0 / 468 MB, free: 12.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.00107/0.5813, allocations: 310 kB / 468.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.696e-05/0.5815, allocations: 114.8 kB / 468.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005192/0.582, allocations: 278.6 kB / 468.7 MB, free: 11.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.931e-05/0.5821, allocations: 45.69 kB / 468.7 MB, free: 11.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/0.5823, allocations: 286.5 kB / 469 MB, free: 10.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.5825, allocations: 98.58 kB / 469.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.132e-05/0.5825, allocations: 8 kB / 469.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.5827, allocations: 330.8 kB / 469.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003441/0.583, allocations: 104.9 kB / 469.5 MB, free: 10.42 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004632/0.5835, allocations: 254.9 kB / 469.8 MB, free: 10.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003532/0.5839, allocations: 116.4 kB / 469.9 MB, free: 9.988 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.5839, allocations: 4 kB / 469.9 MB, free: 9.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001025/0.585, allocations: 394.1 kB / 470.3 MB, free: 9.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007901/0.5858, allocations: 1.666 MB / 471.9 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.5858, allocations: 4 kB / 471.9 MB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00034/0.5861, allocations: 40.84 kB / 472 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005701/0.5867, allocations: 83.83 kB / 472.1 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001911/0.5887, allocations: 1.495 MB / 473.6 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006902/0.5894, allocations: 75.8 kB / 473.6 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.611e-05/0.5895, allocations: 19.95 kB / 473.7 MB, free: 5.941 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.5895, allocations: 4 kB / 473.7 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009284/0.5904, allocations: 352.3 kB / 474 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.5904, allocations: 4 kB / 474 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002248/0.5907, allocations: 48.83 kB / 474.1 MB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004907/0.5912, allocations: 64.44 kB / 474.1 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/0.593, allocations: 1.487 MB / 475.6 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005193/0.5935, allocations: 71.7 kB / 475.7 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.242e-05/0.5936, allocations: 16 kB / 475.7 MB, free: 3.77 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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.0002329/0.5938, allocations: 139.1 kB / 475.8 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.594, allocations: 35.62 kB / 475.9 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001462/0.5941, allocations: 44.08 kB / 475.9 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.5941, allocations: 0 / 475.9 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.5941, allocations: 7.938 kB / 475.9 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.5942, allocations: 3.984 kB / 475.9 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001936/0.5961, allocations: 0.8387 MB / 476.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.5962, allocations: 4 kB / 476.8 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004104/0.5966, allocations: 48 kB / 476.8 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002247/0.5968, allocations: 40.81 kB / 476.8 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.892e-05/0.5969, allocations: 8 kB / 476.9 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/0.5986, allocations: 1.417 MB / 478.3 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5986, allocations: 0 / 478.3 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.5999, allocations: 0.5314 MB / 478.8 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002421/0.6002, allocations: 140.7 kB / 478.9 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.221e-05/0.6003, allocations: 11.94 kB / 479 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005426/0.6009, allocations: 47.95 kB / 479 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.601, allocations: 27.95 kB / 479 MB, free: 196 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.6011, allocations: 19.98 kB / 479 MB, free: 176 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004017/0.6015, allocations: 218.1 kB / 479.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6015, allocations: 4 kB / 479.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001088/0.6026, allocations: 195.3 kB / 479.5 MB, free: 15.77 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 22 * 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.001783/0.6044, allocations: 1.092 MB / 480.5 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.6062, allocations: 0.6991 MB / 481.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.6062, allocations: 0.8125 kB / 481.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005473/0.6068, allocations: 258.4 kB / 481.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005794/0.6074, allocations: 45.56 kB / 481.5 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002468/0.6099, allocations: 0.7133 MB / 482.3 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000563/0.6105, allocations: 0.8395 MB / 483.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003784/0.6109, allocations: 147.4 kB / 483.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.6109, allocations: 0 / 483.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.885/3.496, allocations: 8.544 MB / 491.8 MB, free: 3.289 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.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_Characteristic_res.mat does not exist to compare? outputFormat=mat