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.001135/0.001135, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.312/1.312, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008343/0.0008342, allocations: 87.06 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.458e-05/2.459e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1002, allocations: 50.42 MB / 394.4 MB, free: 1.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3724/0.4726, allocations: 85.79 MB / 480.1 MB, free: 1.664 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.473, allocations: 83.94 kB / 480.2 MB, free: 1.582 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02777/0.5007, allocations: 10.37 MB / 490.6 MB, free: 7.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5008, allocations: 0 / 490.6 MB, free: 7.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.525e-05/0.5008, allocations: 8 kB / 490.6 MB, free: 7.172 MB / 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.001149/0.502, allocations: 0.7034 MB / 491.3 MB, free: 6.422 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.502, allocations: 12.03 kB / 491.3 MB, free: 6.41 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.5021, allocations: 74.53 kB / 491.4 MB, free: 6.328 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.5023, allocations: 63.31 kB / 491.5 MB, free: 6.266 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.5028, allocations: 383 kB / 491.8 MB, free: 5.852 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.653e-05/0.5029, allocations: 36.98 kB / 491.9 MB, free: 5.812 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.944e-05/0.503, allocations: 44 kB / 491.9 MB, free: 5.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007718/0.5037, allocations: 475.9 kB / 492.4 MB, free: 5.289 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.5038, allocations: 3.906 kB / 492.4 MB, free: 5.285 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.828e-05/0.5038, allocations: 19.94 kB / 492.4 MB, free: 5.266 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.5038, allocations: 8 kB / 492.4 MB, free: 5.258 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00055/0.5044, allocations: 319.9 kB / 492.7 MB, free: 4.941 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002497/0.5069, allocations: 1.646 MB / 494.4 MB, free: 3.203 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005648/0.5075, allocations: 286.7 kB / 494.7 MB, free: 2.914 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.5077, allocations: 108.8 kB / 494.8 MB, free: 2.805 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.5077, allocations: 4 kB / 494.8 MB, free: 2.801 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003671/0.5081, allocations: 221 kB / 495 MB, free: 2.566 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.794e-06/0.5081, allocations: 0 / 495 MB, free: 2.566 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006657/0.5088, allocations: 326.2 kB / 495.3 MB, free: 2.238 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.074e-05/0.5089, allocations: 152.5 kB / 495.4 MB, free: 2.059 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003511/0.5092, allocations: 307.5 kB / 495.7 MB, free: 1.746 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.595e-05/0.5093, allocations: 37.7 kB / 495.8 MB, free: 1.703 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.5095, allocations: 248 kB / 496 MB, free: 1.453 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.427e-05/0.5095, allocations: 90.7 kB / 496.1 MB, free: 1.363 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.898e-05/0.5096, allocations: 8 kB / 496.1 MB, free: 1.355 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5097, allocations: 354.8 kB / 496.5 MB, free: 1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.5099, allocations: 112.8 kB / 496.6 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002885/0.5102, allocations: 268.2 kB / 496.8 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.5104, allocations: 131.9 kB / 497 MB, free: 440 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.5104, allocations: 8 kB / 497 MB, free: 432 kB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006606/0.5111, allocations: 430.2 kB / 497.4 MB, free: 15.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006372/0.5118, allocations: 1.655 MB / 499 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.5118, allocations: 4 kB / 499.1 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002227/0.512, allocations: 52.81 kB / 499.1 MB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002572/0.5123, allocations: 75.84 kB / 499.2 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.5136, allocations: 1.487 MB / 0.4889 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.514, allocations: 83.61 kB / 0.489 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/0.514, allocations: 23.95 kB / 0.489 GB, free: 12.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.544e-06/0.514, allocations: 4 kB / 0.489 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005571/0.5146, allocations: 361 kB / 0.4894 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.5146, allocations: 8 kB / 0.4894 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001625/0.5148, allocations: 48.84 kB / 0.4894 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.515, allocations: 67.84 kB / 0.4895 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.5162, allocations: 1.483 MB / 0.4909 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.5165, allocations: 59.59 kB / 0.491 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.5165, allocations: 24.06 kB / 0.491 GB, free: 10.17 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 () * 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.0001418/0.5167, allocations: 155.8 kB / 0.4912 GB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.898e-05/0.5167, allocations: 35.62 kB / 0.4912 GB, free: 9.977 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.884e-05/0.5168, allocations: 36.31 kB / 0.4912 GB, free: 9.934 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.5168, allocations: 4 kB / 0.4913 GB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.5168, allocations: 4 kB / 0.4913 GB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.5168, allocations: 0 / 0.4913 GB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.518, allocations: 0.8777 MB / 0.4921 GB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.518, allocations: 0 / 0.4921 GB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.5182, allocations: 27.92 kB / 0.4921 GB, free: 8.961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001229/0.5183, allocations: 44.83 kB / 0.4922 GB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.5183, allocations: 11.95 kB / 0.4922 GB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.5194, allocations: 1.41 MB / 0.4936 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.5194, allocations: 4 kB / 0.4936 GB, free: 7.355 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007311/0.5202, allocations: 0.5359 MB / 0.4941 GB, free: 6.797 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001517/0.5203, allocations: 144.6 kB / 0.4942 GB, free: 6.637 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.963e-05/0.5204, allocations: 8 kB / 0.4942 GB, free: 6.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.5207, allocations: 39.97 kB / 0.4943 GB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.61e-05/0.5208, allocations: 35.98 kB / 0.4943 GB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-05/0.5208, allocations: 11.98 kB / 0.4943 GB, free: 6.543 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000255/0.5211, allocations: 238.2 kB / 0.4946 GB, free: 6.312 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5211, allocations: 0 / 0.4946 GB, free: 6.312 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007219/0.5218, allocations: 211.4 kB / 0.4948 GB, free: 6.105 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) * 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.001104/0.5229, allocations: 1.109 MB / 0.4958 GB, free: 4.961 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.524, allocations: 0.7197 MB / 0.4965 GB, free: 4.219 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.524, allocations: 4 kB / 0.4965 GB, free: 4.215 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.5243, allocations: 252.1 kB / 0.4968 GB, free: 3.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.5247, allocations: 53.19 kB / 0.4968 GB, free: 3.902 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.5261, allocations: 0.7153 MB / 0.4975 GB, free: 3.152 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.5265, allocations: 0.8545 MB / 0.4984 GB, free: 2.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003564/0.5268, allocations: 95.45 kB / 0.4985 GB, free: 2.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.527, allocations: 143.4 kB / 0.4986 GB, free: 2.039 MB / 378.7 MB Notification: Performance of SimCode: time 2.044e-06/0.527, allocations: 0 / 0.4986 GB, free: 2.039 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.55, allocations: 8.926 MB / 0.5073 GB, free: 9.367 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.5503, allocations: 218.6 kB / 0.5075 GB, free: 9.145 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.09/2.64, allocations: 0 / 0.5075 GB, free: 9.145 MB / 394.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