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.001568/0.001572, allocations: 186.4 kB / 16.41 MB, free: 5.727 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.94/1.94, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001177/0.001177, allocations: 91.55 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000407/0.000407, allocations: 16 kB / 327.1 MB, free: 84 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3508, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.137/0.4878, allocations: 84.72 MB / 459.4 MB, free: 12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003432/0.4882, allocations: 87.94 kB / 459.4 MB, free: 11.92 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04355/0.5318, allocations: 9.776 MB / 469.2 MB, free: 2.113 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.5319, allocations: 3.938 kB / 469.2 MB, free: 2.109 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.3e-05/0.5319, allocations: 16 kB / 469.2 MB, free: 2.094 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.002249/0.5342, allocations: 0.7505 MB / 470 MB, free: 1.297 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.5343, allocations: 12.03 kB / 470 MB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002458/0.5345, allocations: 78.47 kB / 470.1 MB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.5347, allocations: 55.34 kB / 470.1 MB, free: 1.145 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009812/0.5357, allocations: 375.1 kB / 470.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.496e-05/0.5358, allocations: 36.98 kB / 470.5 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.536, allocations: 44 kB / 470.6 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.5376, allocations: 478.9 kB / 471.1 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.51e-05/0.5377, allocations: 3.906 kB / 471.1 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.427e-05/0.5378, allocations: 19.98 kB / 471.1 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.5378, allocations: 12 kB / 471.1 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001616/0.5394, allocations: 375.8 kB / 471.5 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004412/0.5439, allocations: 1.581 MB / 473 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001853/0.5458, allocations: 415.3 kB / 473.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.802e-05/0.5459, allocations: 4.234 kB / 473.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008897/0.5468, allocations: 285.1 kB / 473.7 MB, free: 13.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 3.226e-06/0.5468, allocations: 0 / 473.7 MB, free: 13.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.002598/0.5494, allocations: 0.6121 MB / 474.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.672e-05/0.5495, allocations: 114.8 kB / 474.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005476/0.5501, allocations: 287.6 kB / 474.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.947e-05/0.5502, allocations: 41.7 kB / 474.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002499/0.5505, allocations: 282.6 kB / 475 MB, free: 12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.5506, allocations: 94.64 kB / 475.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.541e-05/0.5507, allocations: 12 kB / 475.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.5509, allocations: 326.8 kB / 475.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005967/0.5515, allocations: 144.8 kB / 475.6 MB, free: 11.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000735/0.5522, allocations: 290.8 kB / 475.9 MB, free: 11.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006184/0.5529, allocations: 155.9 kB / 476 MB, free: 10.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.5529, allocations: 4 kB / 476 MB, free: 10.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001617/0.5545, allocations: 474.7 kB / 476.5 MB, free: 10.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008269/0.5554, allocations: 1.671 MB / 478.2 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.121e-05/0.5554, allocations: 8 kB / 478.2 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003663/0.5558, allocations: 40.84 kB / 478.2 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005913/0.5564, allocations: 83.83 kB / 478.3 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/0.5585, allocations: 1.499 MB / 479.8 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006722/0.5592, allocations: 67.64 kB / 479.9 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.146e-05/0.5593, allocations: 23.94 kB / 479.9 MB, free: 6.781 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.5593, allocations: 12.02 kB / 479.9 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001374/0.5607, allocations: 400.6 kB / 480.3 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.5608, allocations: 4 kB / 480.3 MB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002239/0.561, allocations: 40.84 kB / 480.3 MB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005107/0.5615, allocations: 80.05 kB / 480.4 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/0.5634, allocations: 1.503 MB / 481.9 MB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005153/0.564, allocations: 55.75 kB / 482 MB, free: 4.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.766e-05/0.5641, allocations: 20 kB / 482 MB, free: 4.535 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 (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.000485/0.5645, allocations: 275.2 kB / 482.3 MB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.5647, allocations: 39.53 kB / 482.3 MB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.5648, allocations: 43.89 kB / 482.4 MB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.5648, allocations: 4 kB / 482.4 MB, free: 4.164 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.5649, allocations: 3.984 kB / 482.4 MB, free: 4.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.5649, allocations: 0 / 482.4 MB, free: 4.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002482/0.5674, allocations: 0.9216 MB / 483.3 MB, free: 3.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.5674, allocations: 3.984 kB / 483.3 MB, free: 3.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003983/0.5678, allocations: 40.09 kB / 483.3 MB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002449/0.5681, allocations: 48.78 kB / 483.4 MB, free: 3.086 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.067e-05/0.5681, allocations: 7.984 kB / 483.4 MB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001855/0.57, allocations: 1.425 MB / 484.8 MB, free: 1.523 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.57, allocations: 3.938 kB / 484.8 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/0.5722, allocations: 0.6364 MB / 485.4 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002763/0.5725, allocations: 136.6 kB / 485.6 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.726e-05/0.5726, allocations: 8 kB / 485.6 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005507/0.5732, allocations: 47.95 kB / 485.6 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.5733, allocations: 36.03 kB / 485.7 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/0.5734, allocations: 16.34 kB / 485.7 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003918/0.5738, allocations: 219 kB / 485.9 MB, free: 404 kB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5738, allocations: 0 / 485.9 MB, free: 404 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.001118/0.5749, allocations: 203.3 kB / 486.1 MB, free: 200 kB / 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 (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.002601/0.5775, allocations: 1.205 MB / 487.3 MB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002404/0.58, allocations: 0.7995 MB / 488.1 MB, free: 14.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.5801, allocations: 1 kB / 488.1 MB, free: 14.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008209/0.5809, allocations: 298.5 kB / 488.4 MB, free: 13.83 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006076/0.5815, allocations: 52.44 kB / 488.4 MB, free: 13.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004647/0.5862, allocations: 4.153 MB / 492.6 MB, free: 9.496 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005898/0.5868, allocations: 0.8434 MB / 493.4 MB, free: 8.625 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003798/0.5872, allocations: 143.4 kB / 493.6 MB, free: 8.484 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5872, allocations: 0 / 493.6 MB, free: 8.484 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.792/3.38, allocations: 8.428 MB / 0.4902 GB, free: 76 kB / 378.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