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.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_cpp_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_cpp_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.002105/0.00211, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.12/2.12, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 92.16 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.31e-05/2.315e-05, allocations: 4 kB / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.327, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1354/0.4625, allocations: 83.77 MB / 446.2 MB, free: 2.43 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.4628, allocations: 79.95 kB / 446.3 MB, free: 2.352 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04054/0.5034, allocations: 9.566 MB / 455.9 MB, free: 8.84 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5034, allocations: 0 / 455.9 MB, free: 8.84 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.882e-05/0.5035, allocations: 8 kB / 455.9 MB, free: 8.832 MB / 347.1 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.001643/0.5051, allocations: 0.6728 MB / 456.5 MB, free: 8.113 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.5052, allocations: 16.02 kB / 456.6 MB, free: 8.098 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.5053, allocations: 47.44 kB / 456.6 MB, free: 8.051 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008094/0.5062, allocations: 378.8 kB / 457 MB, free: 7.641 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.1e-05/0.5062, allocations: 20 kB / 457 MB, free: 7.621 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.621e-05/0.5063, allocations: 24 kB / 457 MB, free: 7.598 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007912/0.5071, allocations: 269.5 kB / 457.3 MB, free: 7.332 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000935/0.5081, allocations: 382.1 kB / 457.7 MB, free: 6.945 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.327e-05/0.5081, allocations: 5.016 kB / 457.7 MB, free: 6.941 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.385e-05/0.5082, allocations: 0 / 457.7 MB, free: 6.941 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.5082, allocations: 8 kB / 457.7 MB, free: 6.934 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003638/0.5119, allocations: 1.477 MB / 459.1 MB, free: 5.375 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006079/0.5125, allocations: 215.8 kB / 459.4 MB, free: 5.156 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.5128, allocations: 92.83 kB / 459.4 MB, free: 5.062 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.5128, allocations: 0 / 459.4 MB, free: 5.062 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000484/0.5133, allocations: 207.1 kB / 459.6 MB, free: 4.844 MB / 347.1 MB Notification: Performance of pre-optimization done (n=29): time 4.068e-06/0.5133, allocations: 4 kB / 459.6 MB, free: 4.84 MB / 347.1 MB Notification: Performance of matching and sorting (n=29): time 0.0008956/0.5142, allocations: 276.7 kB / 459.9 MB, free: 4.562 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.932e-05/0.5143, allocations: 110.8 kB / 460 MB, free: 4.43 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004768/0.5148, allocations: 281 kB / 460.3 MB, free: 4.148 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.078e-05/0.5149, allocations: 29.69 kB / 460.3 MB, free: 4.113 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000237/0.5151, allocations: 290.5 kB / 460.6 MB, free: 3.824 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.5152, allocations: 82.89 kB / 460.7 MB, free: 3.742 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.566e-05/0.5153, allocations: 0 / 460.7 MB, free: 3.742 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.5154, allocations: 330.8 kB / 461 MB, free: 3.41 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002581/0.5157, allocations: 100.8 kB / 461.1 MB, free: 3.312 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003895/0.5161, allocations: 235.8 kB / 461.3 MB, free: 3.008 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.5164, allocations: 114 kB / 461.5 MB, free: 2.898 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5164, allocations: 0 / 461.5 MB, free: 2.898 MB / 347.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008506/0.5173, allocations: 344.5 kB / 461.8 MB, free: 2.555 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006987/0.518, allocations: 1.663 MB / 463.5 MB, free: 0.7617 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.518, allocations: 4 kB / 463.5 MB, free: 0.7578 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000295/0.5183, allocations: 48.83 kB / 463.5 MB, free: 0.707 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004454/0.5188, allocations: 63.91 kB / 463.6 MB, free: 0.6445 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.5205, allocations: 1.439 MB / 465 MB, free: 15.09 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006374/0.5211, allocations: 71.83 kB / 465.1 MB, free: 15.02 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.209e-05/0.5212, allocations: 26 kB / 465.1 MB, free: 15 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.5212, allocations: 6.5 kB / 465.1 MB, free: 14.99 MB / 363.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008017/0.522, allocations: 288.4 kB / 465.4 MB, free: 14.71 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.5221, allocations: 7.938 kB / 465.4 MB, free: 14.7 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001846/0.5223, allocations: 45.33 kB / 465.4 MB, free: 14.65 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000366/0.5227, allocations: 71.84 kB / 465.5 MB, free: 14.58 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.5242, allocations: 1.436 MB / 467 MB, free: 13.03 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000433/0.5246, allocations: 47.72 kB / 467 MB, free: 12.98 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.718e-05/0.5247, allocations: 16 kB / 467 MB, free: 12.96 MB / 363.1 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.0002023/0.5249, allocations: 123.1 kB / 467.1 MB, free: 12.84 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007777/0.5257, allocations: 282.2 kB / 467.4 MB, free: 12.55 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.914e-05/0.5258, allocations: 31.62 kB / 467.4 MB, free: 12.52 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.5259, allocations: 36.31 kB / 467.5 MB, free: 12.49 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.5259, allocations: 0 / 467.5 MB, free: 12.49 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.5259, allocations: 7.953 kB / 467.5 MB, free: 12.48 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.526, allocations: 8.062 kB / 467.5 MB, free: 12.47 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001555/0.5275, allocations: 0.7377 MB / 468.2 MB, free: 11.69 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5276, allocations: 0 / 468.2 MB, free: 11.69 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002354/0.5278, allocations: 23.92 kB / 468.3 MB, free: 11.66 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000197/0.528, allocations: 36.84 kB / 468.3 MB, free: 11.62 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.227e-05/0.5281, allocations: 7.984 kB / 468.3 MB, free: 11.62 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00152/0.5296, allocations: 1.354 MB / 469.7 MB, free: 10.15 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.5296, allocations: 0.9375 kB / 469.7 MB, free: 10.15 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.5307, allocations: 488.7 kB / 470.1 MB, free: 9.652 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.531, allocations: 132.6 kB / 470.3 MB, free: 9.504 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.664e-05/0.5311, allocations: 8 kB / 470.3 MB, free: 9.496 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004436/0.5315, allocations: 35.89 kB / 470.3 MB, free: 9.461 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.5317, allocations: 31.95 kB / 470.3 MB, free: 9.43 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.5317, allocations: 8 kB / 470.3 MB, free: 9.422 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0003488/0.5321, allocations: 212.6 kB / 470.5 MB, free: 9.215 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5321, allocations: 0 / 470.5 MB, free: 9.215 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001183/0.5333, allocations: 171.4 kB / 470.7 MB, free: 9.047 MB / 363.1 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.001494/0.5348, allocations: 1.031 MB / 471.7 MB, free: 7.988 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.5362, allocations: 0.6236 MB / 472.4 MB, free: 7.348 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.5363, allocations: 4.062 kB / 472.4 MB, free: 7.344 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004267/0.5367, allocations: 222.1 kB / 472.6 MB, free: 7.117 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005463/0.5373, allocations: 47.11 kB / 472.6 MB, free: 7.078 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.5395, allocations: 0.6551 MB / 473.3 MB, free: 6.379 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.54, allocations: 0.8425 MB / 474.1 MB, free: 5.512 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002953/0.5403, allocations: 139.4 kB / 474.3 MB, free: 5.375 MB / 363.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5403, allocations: 4 kB / 474.3 MB, free: 5.371 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.811/3.352, allocations: 8.238 MB / 482.5 MB, free: 13.15 MB / 379.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat