Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_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.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 179.9 kB / 16.39 MB, free: 5.762 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.273/1.273, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008072/0.0008072, allocations: 90.88 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002532/0.0002532, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2094, allocations: 50.39 MB / 401.6 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0961/0.3055, allocations: 85.86 MB / 487.4 MB, free: 10.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.3058, allocations: 91.92 kB / 487.5 MB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02574/0.3316, allocations: 10.4 MB / 497.9 MB, free: 96 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3316, allocations: 0 / 497.9 MB, free: 96 kB / 362.7 MB Notification: Performance of Transformations before backend: time 2.364e-05/0.3316, allocations: 12 kB / 497.9 MB, free: 84 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.00116/0.3328, allocations: 0.7465 MB / 498.7 MB, free: 15.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.3329, allocations: 12.03 kB / 498.7 MB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.802e-05/0.333, allocations: 86.45 kB / 498.8 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.403e-05/0.3331, allocations: 59.34 kB / 498.8 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005331/0.3336, allocations: 375.1 kB / 499.2 MB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.3337, allocations: 33 kB / 499.2 MB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.297e-05/0.3337, allocations: 48 kB / 499.3 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007583/0.3345, allocations: 0.4957 MB / 499.8 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.3345, allocations: 0 / 499.8 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.515e-05/0.3346, allocations: 20 kB / 499.8 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.3346, allocations: 16 kB / 499.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006333/0.3352, allocations: 359.8 kB / 0.4885 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.3376, allocations: 1.646 MB / 0.4901 GB, free: 12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005626/0.3381, allocations: 297.2 kB / 0.4903 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.3382, allocations: 4 kB / 0.4903 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000377/0.3386, allocations: 249.7 kB / 0.4906 GB, free: 11.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.693e-06/0.3386, allocations: 0 / 0.4906 GB, free: 11.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.00105/0.3396, allocations: 0.5341 MB / 0.4911 GB, free: 10.87 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/0.3397, allocations: 136.5 kB / 0.4912 GB, free: 10.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003677/0.3401, allocations: 328.8 kB / 0.4915 GB, free: 10.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.3401, allocations: 37.69 kB / 0.4916 GB, free: 10.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.3403, allocations: 251.9 kB / 0.4918 GB, free: 10.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.804e-05/0.3404, allocations: 90.8 kB / 0.4919 GB, free: 9.996 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.786e-05/0.3404, allocations: 8 kB / 0.4919 GB, free: 9.988 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.529e-05/0.3405, allocations: 350.8 kB / 0.4923 GB, free: 9.637 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.3407, allocations: 136.7 kB / 0.4924 GB, free: 9.504 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003293/0.3411, allocations: 295.1 kB / 0.4927 GB, free: 9.145 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.3414, allocations: 159.9 kB / 0.4928 GB, free: 8.988 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3414, allocations: 0 / 0.4928 GB, free: 8.988 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007708/0.3421, allocations: 475.1 kB / 0.4933 GB, free: 8.516 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008147/0.343, allocations: 1.658 MB / 0.4949 GB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.343, allocations: 8 kB / 0.4949 GB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002383/0.3432, allocations: 48.83 kB / 0.4949 GB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00025/0.3435, allocations: 67.91 kB / 0.495 GB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.3449, allocations: 1.506 MB / 0.4965 GB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.3452, allocations: 83.83 kB / 0.4966 GB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.3453, allocations: 16 kB / 0.4966 GB, free: 4.867 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.3453, allocations: 7.953 kB / 0.4966 GB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006839/0.346, allocations: 392.4 kB / 0.497 GB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.346, allocations: 4 kB / 0.497 GB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001215/0.3461, allocations: 40.84 kB / 0.497 GB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.3464, allocations: 67.84 kB / 0.4971 GB, free: 4.359 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.3477, allocations: 1.503 MB / 0.4985 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003021/0.348, allocations: 67.72 kB / 0.4986 GB, free: 2.656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.677e-05/0.348, allocations: 16 kB / 0.4986 GB, free: 2.641 MB / 378.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_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,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 (48): * Single equations (assignments): 47 * 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.0003666/0.3484, allocations: 292 kB / 0.4989 GB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.748e-05/0.3485, allocations: 31.62 kB / 0.4989 GB, free: 2.316 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.112e-05/0.3486, allocations: 44.06 kB / 0.499 GB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3486, allocations: 4 kB / 0.499 GB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3486, allocations: 0 / 0.499 GB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.3486, allocations: 3.984 kB / 0.499 GB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.3499, allocations: 0.8981 MB / 0.4998 GB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3499, allocations: 0 / 0.4998 GB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.3501, allocations: 27.98 kB / 0.4999 GB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001338/0.3502, allocations: 36.83 kB / 0.4999 GB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.3503, allocations: 15.89 kB / 0.4999 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1681/0.5183, allocations: 1.412 MB / 0.5013 GB, free: 97.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.5184, allocations: 1.781 kB / 0.5013 GB, free: 97.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.5196, allocations: 0.5622 MB / 0.5019 GB, free: 96.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002046/0.5198, allocations: 138.3 kB / 0.502 GB, free: 96.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.75e-05/0.5199, allocations: 6.109 kB / 0.502 GB, free: 96.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.5202, allocations: 38.73 kB / 0.502 GB, free: 96.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.5203, allocations: 38.78 kB / 0.5021 GB, free: 96.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.5204, allocations: 9.109 kB / 0.5021 GB, free: 96.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000355/0.5207, allocations: 259.9 kB / 0.5023 GB, free: 96.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5207, allocations: 0 / 0.5023 GB, free: 96.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009371/0.5217, allocations: 210.9 kB / 0.5025 GB, free: 96.8 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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,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 (27): * Single equations (assignments): 21 * 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.001082/0.5228, allocations: 1.135 MB / 0.5036 GB, free: 96.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.5239, allocations: 0.7527 MB / 0.5044 GB, free: 95.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.524, allocations: 3.375 kB / 0.5044 GB, free: 95.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003035/0.5243, allocations: 267.7 kB / 0.5046 GB, free: 95.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.5246, allocations: 52.08 kB / 0.5047 GB, free: 95.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.5272, allocations: 4.16 MB / 0.5087 GB, free: 92.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.5276, allocations: 0.8645 MB / 0.5096 GB, free: 91.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002961/0.5279, allocations: 71.66 kB / 0.5097 GB, free: 91.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.5282, allocations: 143.3 kB / 0.5098 GB, free: 91.54 MB / 378.7 MB Notification: Performance of SimCode: time 4.569e-06/0.5282, allocations: 0 / 0.5098 GB, free: 91.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.5477, allocations: 8.441 MB / 0.518 GB, free: 91.13 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/0.5479, allocations: 253.9 kB / 0.5183 GB, free: 90.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.099/2.647, allocations: 3.688 kB / 0.5183 GB, free: 90.8 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat