Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.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.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL",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.001515/0.001515, allocations: 185.5 kB / 16.4 MB, free: 5.699 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.974/1.974, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001172/0.001171, allocations: 92.41 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004057/0.0004055, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3615/0.3619, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1432/0.5052, allocations: 87.93 MB / 462.6 MB, free: 8.684 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003402/0.5056, allocations: 87.94 kB / 462.7 MB, free: 8.598 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05927/0.5649, allocations: 13.95 MB / 476.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5649, allocations: 0 / 476.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.766e-05/0.565, allocations: 20 kB / 476.6 MB, free: 10.55 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: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.002749/0.5678, allocations: 0.9618 MB / 477.6 MB, free: 9.527 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.5678, allocations: 8.031 kB / 477.6 MB, free: 9.52 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002599/0.5681, allocations: 114.5 kB / 477.7 MB, free: 9.398 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002202/0.5683, allocations: 86.97 kB / 477.8 MB, free: 9.312 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.5696, allocations: 0.4979 MB / 478.3 MB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.331e-05/0.5697, allocations: 53.31 kB / 478.4 MB, free: 8.719 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001634/0.5699, allocations: 64 kB / 478.4 MB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.5719, allocations: 0.7137 MB / 479.1 MB, free: 7.914 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.095e-05/0.572, allocations: 3.984 kB / 479.1 MB, free: 7.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/0.5721, allocations: 32 kB / 479.2 MB, free: 7.879 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.194e-05/0.5722, allocations: 12 kB / 479.2 MB, free: 7.867 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/0.574, allocations: 0.536 MB / 479.7 MB, free: 7.332 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006671/0.5807, allocations: 2.666 MB / 482.4 MB, free: 4.547 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.5826, allocations: 0.5929 MB / 483 MB, free: 3.941 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.01e-05/0.5827, allocations: 4.438 kB / 483 MB, free: 3.938 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009504/0.5837, allocations: 357.6 kB / 483.3 MB, free: 3.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 3.477e-06/0.5837, allocations: 0 / 483.3 MB, free: 3.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.003687/0.5874, allocations: 0.9801 MB / 484.3 MB, free: 2.543 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.466e-05/0.5875, allocations: 119.3 kB / 484.4 MB, free: 2.402 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.5885, allocations: 445 kB / 484.9 MB, free: 1.961 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001375/0.5887, allocations: 53.69 kB / 484.9 MB, free: 1.902 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000331/0.589, allocations: 350.8 kB / 485.2 MB, free: 1.559 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002298/0.5893, allocations: 173.6 kB / 485.4 MB, free: 1.387 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.263e-05/0.5894, allocations: 16 kB / 485.4 MB, free: 1.371 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5895, allocations: 330.9 kB / 485.8 MB, free: 1.039 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007154/0.5902, allocations: 209.2 kB / 486 MB, free: 0.832 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008634/0.5911, allocations: 380.1 kB / 486.3 MB, free: 412 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007337/0.5919, allocations: 218.1 kB / 486.5 MB, free: 192 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.5919, allocations: 4 kB / 486.6 MB, free: 188 kB / 362.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002043/0.594, allocations: 0.6725 MB / 487.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006645/0.5947, allocations: 1.574 MB / 488.8 MB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.5947, allocations: 8 kB / 488.8 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008208/0.5955, allocations: 145.6 kB / 488.9 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007438/0.5963, allocations: 99.83 kB / 489 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005131/0.6014, allocations: 3.474 MB / 492.5 MB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009534/0.6024, allocations: 91.55 kB / 492.6 MB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.646e-05/0.6025, allocations: 24 kB / 492.6 MB, free: 9.688 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.6025, allocations: 4 kB / 492.6 MB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00178/0.6043, allocations: 0.608 MB / 493.2 MB, free: 9.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.6044, allocations: 4 kB / 493.2 MB, free: 9.066 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006549/0.605, allocations: 150.2 kB / 493.4 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006344/0.6057, allocations: 92.33 kB / 493.5 MB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005195/0.6109, allocations: 3.467 MB / 497 MB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006686/0.6116, allocations: 67.61 kB / 497 MB, free: 5.027 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.398e-05/0.6117, allocations: 28 kB / 497 MB, free: 5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 65 * 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: 0 * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006337/0.6123, allocations: 317 kB / 497.4 MB, free: 4.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.6125, allocations: 59.25 kB / 497.4 MB, free: 4.621 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.6128, allocations: 77.52 kB / 497.5 MB, free: 4.543 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.6128, allocations: 4 kB / 497.5 MB, free: 4.539 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.6128, allocations: 0.5 kB / 497.5 MB, free: 4.539 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.6128, allocations: 7.938 kB / 497.5 MB, free: 4.531 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003479/0.6163, allocations: 1.39 MB / 498.9 MB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.6164, allocations: 0 / 498.9 MB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004965/0.6169, allocations: 51.91 kB / 498.9 MB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006597/0.6175, allocations: 133.6 kB / 499.1 MB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.685e-05/0.6176, allocations: 12 kB / 499.1 MB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2797/0.8974, allocations: 3.312 MB / 0.4906 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.8974, allocations: 0.5625 kB / 0.4906 GB, free: 103.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003082/0.9005, allocations: 0.9257 MB / 0.4915 GB, free: 103.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005085/0.9011, allocations: 189.3 kB / 0.4917 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001537/0.9013, allocations: 11.88 kB / 0.4917 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006732/0.9019, allocations: 47.56 kB / 0.4918 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003459/0.9023, allocations: 74.42 kB / 0.4918 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.726e-05/0.9024, allocations: 19.06 kB / 0.4919 GB, free: 103.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008383/0.9032, allocations: 347.2 kB / 0.4922 GB, free: 103.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.9033, allocations: 1.781 kB / 0.4922 GB, free: 103.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001857/0.9051, allocations: 334.3 kB / 0.4925 GB, free: 103.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[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,rootMeanSquareVoltage.mean.y,meanCurrent.y,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 36 * 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: 0 * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002911/0.9081, allocations: 1.502 MB / 0.494 GB, free: 102.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003208/0.9113, allocations: 1.381 MB / 0.4953 GB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.9114, allocations: 1.25 kB / 0.4953 GB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.9125, allocations: 0.5304 MB / 0.4958 GB, free: 101.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009247/0.9134, allocations: 114.7 kB / 0.4959 GB, free: 101.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00495/0.9184, allocations: 4.64 MB / 0.5005 GB, free: 98.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006101/0.9191, allocations: 0.9426 MB / 0.5014 GB, free: 97.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005119/0.9196, allocations: 232.1 kB / 0.5016 GB, free: 97.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.202e-06/0.9196, allocations: 3.406 kB / 0.5016 GB, free: 97.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.923/3.843, allocations: 16.15 MB / 0.5174 GB, free: 93.54 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL_res.mat does not exist to compare? outputFormat=mat