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_RL.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_RL,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009355/0.0009356, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008809/0.0008809, allocations: 95.11 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.205e-05/2.206e-05, allocations: 4 kB / 337.2 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1056, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3556/0.4613, allocations: 88.52 MB / 476.1 MB, free: 6.168 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/0.4616, allocations: 79.95 kB / 476.2 MB, free: 6.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03788/0.4995, allocations: 14.62 MB / 490.8 MB, free: 7.402 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4995, allocations: 0 / 490.8 MB, free: 7.402 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.799e-05/0.4996, allocations: 16 kB / 490.8 MB, free: 7.387 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.001605/0.5012, allocations: 0.9046 MB / 491.7 MB, free: 6.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.5013, allocations: 8.031 kB / 491.7 MB, free: 6.422 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001682/0.5014, allocations: 90.97 kB / 491.8 MB, free: 6.332 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007299/0.5022, allocations: 0.5123 MB / 492.3 MB, free: 5.773 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.811e-05/0.5022, allocations: 28 kB / 492.4 MB, free: 5.746 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.247e-05/0.5023, allocations: 43.95 kB / 492.4 MB, free: 5.703 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008148/0.5031, allocations: 487.9 kB / 492.9 MB, free: 5.227 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.5042, allocations: 0.6453 MB / 493.5 MB, free: 4.551 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.5042, allocations: 4 kB / 493.5 MB, free: 4.547 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.476e-05/0.5043, allocations: 4 kB / 493.5 MB, free: 4.543 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.5043, allocations: 16 kB / 493.5 MB, free: 4.527 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003556/0.5078, allocations: 2.583 MB / 496.1 MB, free: 1.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007388/0.5086, allocations: 0.5168 MB / 496.6 MB, free: 1.312 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005904/0.5092, allocations: 348.6 kB / 497 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.905e-05/0.5092, allocations: 9 kB / 497 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005181/0.5098, allocations: 344.6 kB / 497.3 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.204e-06/0.5098, allocations: 3.938 kB / 497.3 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.0008664/0.5107, allocations: 0.5119 MB / 497.8 MB, free: 80 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.329e-05/0.5108, allocations: 141.1 kB / 498 MB, free: 15.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004086/0.5112, allocations: 381 kB / 498.3 MB, free: 15.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.078e-05/0.5112, allocations: 33.7 kB / 498.4 MB, free: 15.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.5114, allocations: 328.1 kB / 498.7 MB, free: 15.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.5116, allocations: 173.5 kB / 498.9 MB, free: 15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.5116, allocations: 0 / 498.9 MB, free: 15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5118, allocations: 366.7 kB / 499.2 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003106/0.5121, allocations: 185.5 kB / 499.4 MB, free: 14.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003823/0.5125, allocations: 341.4 kB / 499.7 MB, free: 14.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.5128, allocations: 214 kB / 500 MB, free: 13.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5128, allocations: 0 / 500 MB, free: 13.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009972/0.5138, allocations: 0.6447 MB / 0.4889 GB, free: 13.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005225/0.5143, allocations: 1.574 MB / 0.4904 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.5143, allocations: 4 kB / 0.4904 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004559/0.5148, allocations: 157.6 kB / 0.4906 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003897/0.5152, allocations: 95.83 kB / 0.4906 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003315/0.5185, allocations: 3.516 MB / 0.4941 GB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005841/0.5191, allocations: 79.55 kB / 0.4942 GB, free: 7.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.266e-05/0.5192, allocations: 20 kB / 0.4942 GB, free: 7.371 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.5192, allocations: 5.406 kB / 0.4942 GB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009745/0.5202, allocations: 0.5538 MB / 0.4947 GB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.5202, allocations: 7.938 kB / 0.4947 GB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000378/0.5206, allocations: 157.6 kB / 0.4949 GB, free: 6.641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003391/0.521, allocations: 95.89 kB / 0.495 GB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003044/0.524, allocations: 3.493 MB / 0.4984 GB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004694/0.5245, allocations: 67.56 kB / 0.4984 GB, free: 2.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.815e-05/0.5245, allocations: 24 kB / 0.4985 GB, free: 2.73 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_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 (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 8,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002033/0.5248, allocations: 138.2 kB / 0.4986 GB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007841/0.5255, allocations: 0.5238 MB / 0.4991 GB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.43e-05/0.5256, allocations: 59.33 kB / 0.4992 GB, free: 2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.5258, allocations: 65.61 kB / 0.4992 GB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.5258, allocations: 8 kB / 0.4992 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.5258, allocations: 3.938 kB / 0.4992 GB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5258, allocations: 3.984 kB / 0.4992 GB, free: 1.918 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001799/0.5276, allocations: 1.308 MB / 0.5005 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.5276, allocations: 4 kB / 0.5005 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.5279, allocations: 47.97 kB / 0.5006 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003911/0.5283, allocations: 145.6 kB / 0.5007 GB, free: 368 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/0.5284, allocations: 8 kB / 0.5007 GB, free: 360 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002954/0.5313, allocations: 3.386 MB / 0.504 GB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.5313, allocations: 0 / 0.504 GB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.5327, allocations: 0.9101 MB / 0.5049 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.5329, allocations: 192.2 kB / 0.5051 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.977e-05/0.533, allocations: 4 kB / 0.5051 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003536/0.5334, allocations: 36.03 kB / 0.5051 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.5335, allocations: 76.44 kB / 0.5052 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.4e-05/0.5336, allocations: 16 kB / 0.5052 GB, free: 11.47 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003097/0.5339, allocations: 283 kB / 0.5055 GB, free: 11.19 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5339, allocations: 4 kB / 0.5055 GB, free: 11.19 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001173/0.5351, allocations: 323.2 kB / 0.5058 GB, free: 10.87 MB / 394.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_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 (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 8,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001593/0.5367, allocations: 1.477 MB / 0.5073 GB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.5386, allocations: 1.329 MB / 0.5085 GB, free: 7.992 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5386, allocations: 0 / 0.5085 GB, free: 7.992 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006142/0.5392, allocations: 0.5139 MB / 0.5091 GB, free: 7.461 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.5398, allocations: 88.53 kB / 0.5091 GB, free: 7.371 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.542, allocations: 1.092 MB / 0.5102 GB, free: 6.234 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004933/0.5425, allocations: 0.9669 MB / 0.5111 GB, free: 5.242 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004148/0.543, allocations: 112.7 kB / 0.5113 GB, free: 5.129 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002675/0.5432, allocations: 223.4 kB / 0.5115 GB, free: 4.91 MB / 394.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5432, allocations: 0 / 0.5115 GB, free: 4.91 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03845/0.5817, allocations: 14.87 MB / 0.526 GB, free: 6.195 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002904/0.5821, allocations: 198.9 kB / 0.5262 GB, free: 5.934 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.229/2.812, allocations: 0 / 0.5262 GB, free: 5.934 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.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_RL_res.mat does not exist to compare? outputFormat=mat