Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV.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.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_RLV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_RLV",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.001155/0.001155, allocations: 175.2 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.356/1.356, allocations: 221.3 MB / 235.5 MB, free: 2.922 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.0008446/0.0008448, allocations: 87.86 kB / 286.5 MB, free: 188 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.682e-05, allocations: 8 kB / 344 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09603, allocations: 50.4 MB / 394.4 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3133/0.4094, allocations: 88.99 MB / 483.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.4097, allocations: 91.92 kB / 483.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03704/0.4467, allocations: 14.07 MB / 497.5 MB, free: 272 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4468, allocations: 0 / 497.5 MB, free: 272 kB / 362.7 MB Notification: Performance of Transformations before backend: time 3.649e-05/0.4468, allocations: 16 kB / 497.5 MB, free: 256 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.00152/0.4483, allocations: 0.8767 MB / 498.4 MB, free: 15.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.4484, allocations: 8.031 kB / 498.4 MB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001401/0.4486, allocations: 106.5 kB / 498.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.4487, allocations: 82.97 kB / 498.6 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008448/0.4496, allocations: 498.2 kB / 499.1 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.341e-05/0.4496, allocations: 57.3 kB / 499.1 MB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.937e-05/0.4497, allocations: 64 kB / 499.2 MB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.4509, allocations: 0.6584 MB / 499.8 MB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.4509, allocations: 3.984 kB / 499.9 MB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.214e-05/0.451, allocations: 24 kB / 499.9 MB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.451, allocations: 16 kB / 499.9 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008117/0.4518, allocations: 469.1 kB / 0.4886 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003584/0.4554, allocations: 2.422 MB / 0.491 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006931/0.4561, allocations: 437 kB / 0.4914 GB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004584/0.4566, allocations: 256.8 kB / 0.4916 GB, free: 10.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.4567, allocations: 4 kB / 0.4917 GB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004845/0.4572, allocations: 320.6 kB / 0.492 GB, free: 9.723 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.785e-06/0.4572, allocations: 0 / 0.492 GB, free: 9.723 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007767/0.458, allocations: 448.3 kB / 0.4924 GB, free: 9.273 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.671e-05/0.4581, allocations: 170.6 kB / 0.4925 GB, free: 9.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005325/0.4586, allocations: 431.7 kB / 0.493 GB, free: 8.641 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.367e-05/0.4587, allocations: 45.69 kB / 0.493 GB, free: 8.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002167/0.4589, allocations: 332.2 kB / 0.4933 GB, free: 8.258 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.459, allocations: 146 kB / 0.4935 GB, free: 8.113 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-05/0.459, allocations: 12 kB / 0.4935 GB, free: 8.102 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4592, allocations: 370.7 kB / 0.4938 GB, free: 7.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002591/0.4594, allocations: 157.5 kB / 0.494 GB, free: 7.578 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.4598, allocations: 327.7 kB / 0.4943 GB, free: 7.184 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.4601, allocations: 185.5 kB / 0.4945 GB, free: 7.004 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.4601, allocations: 4 kB / 0.4945 GB, free: 7 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008861/0.461, allocations: 0.5784 MB / 0.495 GB, free: 6.414 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005502/0.4616, allocations: 1.653 MB / 0.4966 GB, free: 4.621 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.4616, allocations: 8 kB / 0.4967 GB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003219/0.4619, allocations: 88.73 kB / 0.4967 GB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003965/0.4623, allocations: 99.77 kB / 0.4968 GB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001736/0.4641, allocations: 1.737 MB / 0.4985 GB, free: 2.555 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005472/0.4647, allocations: 95.55 kB / 0.4986 GB, free: 2.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.736e-05/0.4647, allocations: 20 kB / 0.4986 GB, free: 2.441 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.4647, allocations: 5.406 kB / 0.4986 GB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007961/0.4655, allocations: 0.4988 MB / 0.4991 GB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.4656, allocations: 4 kB / 0.4991 GB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002255/0.4658, allocations: 73.36 kB / 0.4992 GB, free: 1.859 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003484/0.4662, allocations: 95.83 kB / 0.4993 GB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/0.4679, allocations: 1.737 MB / 0.501 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005108/0.4684, allocations: 75.5 kB / 0.5011 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.024e-05/0.4685, allocations: 24.06 kB / 0.5011 GB, free: 15.8 MB / 394.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: 25 ($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_p.off,rectifier.thyristor_p.off,$PRE.rectifier.thyristor_n.off,rectifier.thyristor_n.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 (64): * Single equations (assignments): 63 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002127/0.4687, allocations: 152 kB / 0.5012 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.4688, allocations: 59.3 kB / 0.5013 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001677/0.469, allocations: 61.38 kB / 0.5014 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.469, allocations: 4 kB / 0.5014 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.469, allocations: 7.922 kB / 0.5014 GB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.469, allocations: 0 / 0.5014 GB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001972/0.471, allocations: 1.335 MB / 0.5027 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.471, allocations: 0 / 0.5027 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002715/0.4713, allocations: 51.91 kB / 0.5027 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002383/0.4715, allocations: 80.8 kB / 0.5028 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.4716, allocations: 19.88 kB / 0.5028 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/0.4732, allocations: 1.641 MB / 0.5044 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4732, allocations: 3.984 kB / 0.5044 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.4744, allocations: 0.7908 MB / 0.5052 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000268/0.4747, allocations: 180.4 kB / 0.5054 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.275e-05/0.4748, allocations: 12 kB / 0.5054 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003468/0.4751, allocations: 47.95 kB / 0.5054 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.4752, allocations: 52.3 kB / 0.5055 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-05/0.4753, allocations: 20 kB / 0.5055 GB, free: 11.04 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000401/0.4757, allocations: 325.6 kB / 0.5058 GB, free: 10.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4757, allocations: 0 / 0.5058 GB, free: 10.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009421/0.4766, allocations: 303.1 kB / 0.5061 GB, free: 10.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 18 (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_p.off,rectifier.thyristor_n.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: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n.off,rectifier.thyristor_p.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001473/0.4781, allocations: 1.446 MB / 0.5075 GB, free: 8.941 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001481/0.4796, allocations: 0.9609 MB / 0.5084 GB, free: 7.957 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.4796, allocations: 4 kB / 0.5084 GB, free: 7.953 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004351/0.4801, allocations: 356.9 kB / 0.5088 GB, free: 7.586 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004992/0.4806, allocations: 95.31 kB / 0.5089 GB, free: 7.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.4826, allocations: 1.04 MB / 0.5099 GB, free: 6.418 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004617/0.483, allocations: 0.9502 MB / 0.5108 GB, free: 5.438 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004298/0.4835, allocations: 124.6 kB / 0.5109 GB, free: 5.316 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002586/0.4838, allocations: 223.4 kB / 0.5111 GB, free: 5.098 MB / 394.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4838, allocations: 0 / 0.5111 GB, free: 5.098 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03705/0.5208, allocations: 13.36 MB / 0.5242 GB, free: 8.07 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002765/0.5211, allocations: 241.4 kB / 0.5244 GB, free: 7.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.414/2.936, allocations: 0 / 0.5244 GB, free: 7.75 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_RLV_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2Pulse_ThyristorCenterTap2Pulse_RLV.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2Pulse.ThyristorCenterTap2Pulse_RLV_res.mat does not exist to compare? outputFormat=mat