Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.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.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",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.001129/0.001128, allocations: 175.1 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.292/1.292, allocations: 221.3 MB / 235.5 MB, free: 2.914 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.0008985/0.0008985, allocations: 97.83 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.78e-05/2.782e-05, allocations: 0 / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1009, allocations: 50.42 MB / 394.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3279/0.4288, allocations: 107.1 MB / 0.4897 GB, free: 12.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.4292, allocations: 91.92 kB / 0.4898 GB, free: 12.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09875/0.5279, allocations: 37.15 MB / 0.5261 GB, free: 6.797 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.528, allocations: 0 / 0.5261 GB, free: 6.797 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001246/0.5281, allocations: 47.92 kB / 0.5261 GB, free: 6.75 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 373 * Number of variables: 373 Notification: Performance of Generate backend data structure: time 0.003291/0.5314, allocations: 1.756 MB / 0.5279 GB, free: 4.938 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.5314, allocations: 8.031 kB / 0.5279 GB, free: 4.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003559/0.5318, allocations: 226.3 kB / 0.5281 GB, free: 4.695 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000682/0.5325, allocations: 245.5 kB / 0.5283 GB, free: 4.453 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002517/0.535, allocations: 1.286 MB / 0.5296 GB, free: 3.109 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.5352, allocations: 118.9 kB / 0.5297 GB, free: 2.992 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002424/0.5354, allocations: 155.9 kB / 0.5298 GB, free: 2.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002709/0.5381, allocations: 1.543 MB / 0.5313 GB, free: 1.227 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.868e-05/0.5382, allocations: 8 kB / 0.5313 GB, free: 1.219 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.5383, allocations: 60 kB / 0.5314 GB, free: 1.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/0.5384, allocations: 39.94 kB / 0.5314 GB, free: 1.121 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/0.5404, allocations: 1.182 MB / 0.5326 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0095/0.5499, allocations: 6.478 MB / 0.5389 GB, free: 9.191 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.5514, allocations: 0.9662 MB / 0.5399 GB, free: 8.211 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.5524, allocations: 0.5977 MB / 0.5405 GB, free: 7.609 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.713e-05/0.5525, allocations: 12.73 kB / 0.5405 GB, free: 7.598 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008512/0.5534, allocations: 0.5645 MB / 0.541 GB, free: 7.012 MB / 426.7 MB Notification: Performance of pre-optimization done (n=94): time 2.424e-06/0.5534, allocations: 0 / 0.541 GB, free: 7.012 MB / 426.7 MB Notification: Performance of matching and sorting (n=97): time 0.004479/0.5579, allocations: 2.444 MB / 0.5434 GB, free: 4.484 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.558, allocations: 196.7 kB / 0.5436 GB, free: 4.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001761/0.5598, allocations: 1.149 MB / 0.5447 GB, free: 3.086 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000118/0.5599, allocations: 57.7 kB / 0.5448 GB, free: 3.023 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005948/0.5605, allocations: 0.7802 MB / 0.5455 GB, free: 2.234 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002509/0.5608, allocations: 323.5 kB / 0.5458 GB, free: 1.914 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.287e-05/0.5608, allocations: 24 kB / 0.5459 GB, free: 1.891 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.561, allocations: 353.9 kB / 0.5462 GB, free: 1.539 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006436/0.5616, allocations: 423.9 kB / 0.5466 GB, free: 1.125 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008608/0.5625, allocations: 0.8526 MB / 0.5474 GB, free: 76 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2259/0.7884, allocations: 0.5074 MB / 0.5479 GB, free: 109.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.7885, allocations: 3.812 kB / 0.5479 GB, free: 109.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.002879/0.7913, allocations: 1.596 MB / 0.5495 GB, free: 109.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008458/0.7922, allocations: 5.101 MB / 0.5545 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/0.7922, allocations: 12.62 kB / 0.5545 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005914/0.7928, allocations: 218.3 kB / 0.5547 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.794, allocations: 313.4 kB / 0.555 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003262/0.7973, allocations: 3.921 MB / 0.5588 GB, free: 101.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.7987, allocations: 178.7 kB / 0.559 GB, free: 101.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.915e-05/0.7988, allocations: 55.22 kB / 0.559 GB, free: 101.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.928e-06/0.7988, allocations: 3.812 kB / 0.559 GB, free: 101.5 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002376/0.8012, allocations: 1.442 MB / 0.5605 GB, free: 101.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-05/0.8012, allocations: 12.38 kB / 0.5605 GB, free: 101.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005532/0.8018, allocations: 215.5 kB / 0.5607 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.8029, allocations: 304.8 kB / 0.561 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003288/0.8062, allocations: 3.913 MB / 0.5648 GB, free: 98.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/0.8077, allocations: 158.5 kB / 0.5649 GB, free: 98.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.8078, allocations: 58.45 kB / 0.565 GB, free: 98.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 29 ($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,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,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_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 144 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003807/0.8082, allocations: 207.6 kB / 0.5652 GB, free: 98.58 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002266/0.8084, allocations: 152 kB / 0.5653 GB, free: 98.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00237/0.8108, allocations: 1.222 MB / 0.5665 GB, free: 98.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.8108, allocations: 9.781 kB / 0.5665 GB, free: 98.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.8109, allocations: 1 kB / 0.5665 GB, free: 98.38 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.8109, allocations: 10.06 kB / 0.5665 GB, free: 98.38 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004761/0.8156, allocations: 2.778 MB / 0.5693 GB, free: 97.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.8157, allocations: 2.156 kB / 0.5693 GB, free: 97.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007554/0.8164, allocations: 170.5 kB / 0.5694 GB, free: 97.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006135/0.8171, allocations: 200 kB / 0.5696 GB, free: 97.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.439e-05/0.8172, allocations: 27.78 kB / 0.5696 GB, free: 97.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003495/0.8207, allocations: 3.809 MB / 0.5734 GB, free: 95.21 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.8207, allocations: 2.438 kB / 0.5734 GB, free: 95.21 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.8234, allocations: 1.88 MB / 0.5752 GB, free: 94.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007978/0.8242, allocations: 328.7 kB / 0.5755 GB, free: 94.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002216/0.8244, allocations: 31.16 kB / 0.5755 GB, free: 94.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009752/0.8254, allocations: 136.3 kB / 0.5757 GB, free: 94.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000433/0.8258, allocations: 107.2 kB / 0.5758 GB, free: 94.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.044e-05/0.8259, allocations: 30.5 kB / 0.5758 GB, free: 94.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002022/0.828, allocations: 0.8645 MB / 0.5767 GB, free: 93.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.828, allocations: 0 / 0.5767 GB, free: 93.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003142/0.8311, allocations: 0.6521 MB / 0.5773 GB, free: 93.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twoPulse.filter[1].firstOrder.y,pulse2.twoPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twoPulse.filter[1].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.i) * Number of discrete variables: 20 (pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.003392/0.8345, allocations: 3.135 MB / 0.5803 GB, free: 91.83 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003691/0.8383, allocations: 2.401 MB / 0.5827 GB, free: 90.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.8383, allocations: 3.969 kB / 0.5827 GB, free: 90.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.8395, allocations: 0.8666 MB / 0.5835 GB, free: 90.17 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001594/0.8411, allocations: 309.5 kB / 0.5838 GB, free: 90.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006184/0.8473, allocations: 2.789 MB / 0.5866 GB, free: 88.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007815/0.8481, allocations: 1.355 MB / 0.5879 GB, free: 88.08 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001549/0.8497, allocations: 451.8 kB / 0.5883 GB, free: 88.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005721/0.8502, allocations: 0.5942 MB / 0.5889 GB, free: 87.55 MB / 426.7 MB Notification: Performance of SimCode: time 1.894e-06/0.8503, allocations: 3.375 kB / 0.5889 GB, free: 87.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06335/0.9136, allocations: 38.34 MB / 0.6263 GB, free: 72.42 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/0.9138, allocations: 239.4 kB / 0.6266 GB, free: 72.09 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.271/4.184, allocations: 2.344 kB / 0.6266 GB, free: 72.09 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat