Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001252/0.001252, allocations: 176.9 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007646/0.0007646, allocations: 78.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.207e-05/1.209e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08461/0.08464, allocations: 47.59 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.325/0.4097, allocations: 84.01 MB / 447.2 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.4099, allocations: 79.64 kB / 447.3 MB, free: 11.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02406/0.434, allocations: 9.567 MB / 456.8 MB, free: 3.379 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.434, allocations: 0 / 456.8 MB, free: 3.379 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.528e-05/0.4341, allocations: 8 kB / 456.8 MB, free: 3.371 MB / 330.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.001041/0.4351, allocations: 0.6835 MB / 457.5 MB, free: 2.672 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.4352, allocations: 12.03 kB / 457.5 MB, free: 2.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.622e-05/0.4353, allocations: 47.44 kB / 457.6 MB, free: 2.613 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005013/0.4358, allocations: 381.2 kB / 458 MB, free: 2.254 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.4358, allocations: 12 kB / 458 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.321e-05/0.4359, allocations: 28 kB / 458 MB, free: 2.215 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004431/0.4363, allocations: 275.9 kB / 458.3 MB, free: 2.047 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005681/0.4369, allocations: 374.3 kB / 458.6 MB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.4369, allocations: 4 kB / 458.6 MB, free: 1.762 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.437, allocations: 0 / 458.6 MB, free: 1.762 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.437, allocations: 11.94 kB / 458.6 MB, free: 1.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.4391, allocations: 1.477 MB / 460.1 MB, free: 488 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.4395, allocations: 217.7 kB / 460.3 MB, free: 336 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.4396, allocations: 84.62 kB / 460.4 MB, free: 280 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.4397, allocations: 0 / 460.4 MB, free: 280 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000307/0.44, allocations: 213.4 kB / 460.6 MB, free: 92 kB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/0.44, allocations: 0 / 460.6 MB, free: 92 kB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005337/0.4405, allocations: 276.5 kB / 460.9 MB, free: 15.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.4406, allocations: 109.9 kB / 461 MB, free: 15.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/0.4409, allocations: 282.8 kB / 461.3 MB, free: 15.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.4409, allocations: 33.52 kB / 461.3 MB, free: 15.47 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.4411, allocations: 238.6 kB / 461.5 MB, free: 15.28 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.142e-05/0.4411, allocations: 83.2 kB / 461.6 MB, free: 15.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.54e-05/0.4412, allocations: 0 / 461.6 MB, free: 15.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.4413, allocations: 347.6 kB / 462 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.4414, allocations: 91.42 kB / 462.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002203/0.4416, allocations: 241.5 kB / 462.3 MB, free: 14.56 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.4418, allocations: 116.6 kB / 462.4 MB, free: 14.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4418, allocations: 4 kB / 462.4 MB, free: 14.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005379/0.4424, allocations: 364.5 kB / 462.8 MB, free: 14.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005161/0.4429, allocations: 1.663 MB / 464.4 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4429, allocations: 4 kB / 464.4 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001834/0.4431, allocations: 44.14 kB / 464.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002281/0.4433, allocations: 67.22 kB / 464.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/0.4444, allocations: 1.438 MB / 466 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.4448, allocations: 67.7 kB / 466 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.76e-05/0.4448, allocations: 18.94 kB / 466.1 MB, free: 10.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/0.4448, allocations: 4 kB / 466.1 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004161/0.4452, allocations: 296.3 kB / 466.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.4453, allocations: 4 kB / 466.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001047/0.4454, allocations: 47.92 kB / 466.4 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/0.4456, allocations: 62.97 kB / 466.5 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.4466, allocations: 1.449 MB / 467.9 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.4469, allocations: 51.78 kB / 468 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.528e-05/0.4469, allocations: 19.12 kB / 468 MB, free: 8.91 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 (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.0001372/0.4471, allocations: 127 kB / 468.1 MB, free: 8.785 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004264/0.4475, allocations: 273.8 kB / 468.4 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.323e-05/0.4475, allocations: 35.56 kB / 468.4 MB, free: 8.527 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.074e-05/0.4476, allocations: 38.62 kB / 468.5 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.4476, allocations: 0 / 468.5 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4477, allocations: 7.953 kB / 468.5 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.4477, allocations: 0 / 468.5 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000933/0.4486, allocations: 0.7343 MB / 469.2 MB, free: 7.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4486, allocations: 0 / 469.2 MB, free: 7.867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/0.4488, allocations: 27.92 kB / 469.2 MB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001092/0.4489, allocations: 43.39 kB / 469.3 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.4489, allocations: 0 / 469.3 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008899/0.4498, allocations: 1.355 MB / 470.6 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.4498, allocations: 3.938 kB / 470.6 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005994/0.4504, allocations: 483 kB / 471.1 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.4506, allocations: 135.5 kB / 471.2 MB, free: 5.898 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.842e-05/0.4506, allocations: 7.125 kB / 471.2 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.4509, allocations: 32.03 kB / 471.3 MB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.947e-05/0.451, allocations: 31.91 kB / 471.3 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.451, allocations: 15.86 kB / 471.3 MB, free: 5.824 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001939/0.4512, allocations: 213 kB / 471.5 MB, free: 5.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4512, allocations: 0 / 471.5 MB, free: 5.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007191/0.4519, allocations: 175.4 kB / 471.7 MB, free: 5.488 MB / 346.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 (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.0009187/0.4528, allocations: 1.027 MB / 472.7 MB, free: 4.543 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008774/0.4537, allocations: 0.6324 MB / 473.4 MB, free: 4.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4537, allocations: 2.125 kB / 473.4 MB, free: 4.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002855/0.454, allocations: 227 kB / 473.6 MB, free: 3.828 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.4544, allocations: 44.08 kB / 473.6 MB, free: 3.797 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.4557, allocations: 0.6319 MB / 474.3 MB, free: 3.191 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.4562, allocations: 0.8458 MB / 475.1 MB, free: 2.324 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002703/0.4564, allocations: 83.42 kB / 475.2 MB, free: 2.242 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.4566, allocations: 134 kB / 475.3 MB, free: 2.203 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4566, allocations: 3.938 kB / 475.3 MB, free: 2.199 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.4841, allocations: 7.546 MB / 482.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.4844, allocations: 194 kB / 483 MB, free: 10.45 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.005/2.49, allocations: 0 / 483 MB, free: 10.45 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R.fmu > Modelica_3.2.3_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_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat