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.001154/0.001154, allocations: 180 kB / 17.01 MB, free: 5.125 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.385/1.385, allocations: 205.4 MB / 223.1 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.0007563/0.0007561, allocations: 86.61 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002271/0.0002272, allocations: 8 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.219, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09166/0.3107, allocations: 84.51 MB / 460.4 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.311, allocations: 87.94 kB / 460.5 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02499/0.336, allocations: 9.669 MB / 470.2 MB, free: 2.344 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3361, allocations: 0 / 470.2 MB, free: 2.344 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.421e-05/0.3361, allocations: 8 kB / 470.2 MB, free: 2.336 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.00119/0.3373, allocations: 0.7271 MB / 470.9 MB, free: 1.562 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.3374, allocations: 12.03 kB / 470.9 MB, free: 1.551 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.3375, allocations: 82.52 kB / 471 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.269e-05/0.3376, allocations: 55.34 kB / 471.1 MB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005199/0.3381, allocations: 371.1 kB / 471.4 MB, free: 1.008 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.3381, allocations: 29 kB / 471.5 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.166e-05/0.3382, allocations: 47.94 kB / 471.5 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000753/0.339, allocations: 459 kB / 472 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.339, allocations: 0 / 472 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.12e-05/0.3391, allocations: 16 kB / 472 MB, free: 464 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.3391, allocations: 8 kB / 472 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006201/0.3397, allocations: 343.7 kB / 472.3 MB, free: 112 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002198/0.3419, allocations: 1.554 MB / 473.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004339/0.3424, allocations: 247.7 kB / 474.1 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.3424, allocations: 4 kB / 474.1 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003517/0.3427, allocations: 225 kB / 474.3 MB, free: 13.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.502e-06/0.3428, allocations: 3.938 kB / 474.3 MB, free: 13.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009866/0.3438, allocations: 0.4995 MB / 474.8 MB, free: 13.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.914e-05/0.3438, allocations: 118.7 kB / 475 MB, free: 13.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003556/0.3442, allocations: 323.5 kB / 475.3 MB, free: 12.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.3442, allocations: 37.7 kB / 475.3 MB, free: 12.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.3444, allocations: 232.2 kB / 475.5 MB, free: 12.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.507e-05/0.3445, allocations: 90.73 kB / 475.6 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.867e-05/0.3445, allocations: 16 kB / 475.6 MB, free: 12.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3446, allocations: 342.8 kB / 476 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.3448, allocations: 120.8 kB / 476.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003252/0.3452, allocations: 271.1 kB / 476.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.3454, allocations: 145.1 kB / 476.5 MB, free: 11.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3454, allocations: 0 / 476.5 MB, free: 11.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006853/0.3461, allocations: 452.7 kB / 476.9 MB, free: 11.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005933/0.3467, allocations: 1.663 MB / 478.6 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.425e-06/0.3467, allocations: 4 kB / 478.6 MB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001957/0.3469, allocations: 44.83 kB / 478.6 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.3472, allocations: 67.84 kB / 478.7 MB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.3485, allocations: 1.514 MB / 480.2 MB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000335/0.3489, allocations: 83.61 kB / 480.3 MB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/0.3489, allocations: 19.95 kB / 480.3 MB, free: 7.551 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.478e-06/0.3489, allocations: 4 kB / 480.3 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005502/0.3495, allocations: 360.4 kB / 480.7 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3495, allocations: 4 kB / 480.7 MB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001157/0.3496, allocations: 44.95 kB / 480.7 MB, free: 7.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.3498, allocations: 67.84 kB / 480.8 MB, free: 7.074 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.3509, allocations: 1.495 MB / 482.3 MB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002734/0.3512, allocations: 67.75 kB / 482.4 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.3512, allocations: 16 kB / 482.4 MB, free: 5.355 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.0003144/0.3516, allocations: 275.6 kB / 482.6 MB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.655e-05/0.3516, allocations: 39.52 kB / 482.7 MB, free: 5.035 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.389e-05/0.3517, allocations: 40.06 kB / 482.7 MB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3517, allocations: 4 kB / 482.7 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.3517, allocations: 0 / 482.7 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3517, allocations: 0 / 482.7 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.3528, allocations: 0.8388 MB / 483.6 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3528, allocations: 3.938 kB / 483.6 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.3529, allocations: 23.92 kB / 483.6 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000115/0.3531, allocations: 40.83 kB / 483.6 MB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.3531, allocations: 11.95 kB / 483.6 MB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.3541, allocations: 1.425 MB / 485.1 MB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3541, allocations: 4.031 kB / 485.1 MB, free: 2.449 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007235/0.3549, allocations: 0.5322 MB / 485.6 MB, free: 1.898 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.355, allocations: 128.8 kB / 485.7 MB, free: 1.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.705e-05/0.3551, allocations: 8.375 kB / 485.7 MB, free: 1.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.3553, allocations: 35.95 kB / 485.8 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.606e-05/0.3554, allocations: 31.95 kB / 485.8 MB, free: 1.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.3554, allocations: 16 kB / 485.8 MB, free: 1.664 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002725/0.3557, allocations: 247 kB / 486.1 MB, free: 1.426 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3557, allocations: 4 kB / 486.1 MB, free: 1.422 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006696/0.3564, allocations: 191.4 kB / 486.3 MB, free: 1.234 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.001012/0.3574, allocations: 1.088 MB / 487.3 MB, free: 120 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.3585, allocations: 0.7178 MB / 488.1 MB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3585, allocations: 3.938 kB / 488.1 MB, free: 15.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002862/0.3588, allocations: 254.4 kB / 488.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.3591, allocations: 40.73 kB / 488.4 MB, free: 15.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002499/0.3616, allocations: 4.093 MB / 492.4 MB, free: 10.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.362, allocations: 0.8393 MB / 493.3 MB, free: 9.984 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002207/0.3622, allocations: 71.17 kB / 493.4 MB, free: 9.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001659/0.3624, allocations: 131.4 kB / 493.5 MB, free: 9.781 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3624, allocations: 4 kB / 493.5 MB, free: 9.777 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.3831, allocations: 8.042 MB / 0.4898 GB, free: 1.762 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002196/0.3834, allocations: 250.7 kB / 0.49 GB, free: 1.461 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.051/2.434, allocations: 0 / 0.49 GB, free: 1.461 MB / 378.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