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_DC_Drive.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_DC_Drive,fileNamePrefix="Modelica_3_2_3_cpp_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_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.002251/0.00225, allocations: 178 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.095/2.095, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001122/0.001121, allocations: 95.45 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.07e-05/2.069e-05, allocations: 0 / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3349, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1726/0.5075, allocations: 105.1 MB / 467.6 MB, free: 13.06 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/0.508, allocations: 87.95 kB / 467.6 MB, free: 12.98 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1901/0.6981, allocations: 36.21 MB / 0.492 GB, free: 8.641 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6982, allocations: 0 / 0.492 GB, free: 8.641 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002/0.6984, allocations: 36 kB / 0.4921 GB, free: 8.605 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 366 * Number of variables: 366 Notification: Performance of Generate backend data structure: time 0.006176/0.7046, allocations: 1.728 MB / 0.4938 GB, free: 6.82 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.7046, allocations: 8.031 kB / 0.4938 GB, free: 6.812 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001501/0.7062, allocations: 245.5 kB / 0.494 GB, free: 6.57 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004831/0.711, allocations: 1.274 MB / 0.4952 GB, free: 5.238 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.7112, allocations: 48 kB / 0.4953 GB, free: 5.191 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003968/0.7116, allocations: 99.89 kB / 0.4954 GB, free: 5.094 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003622/0.7152, allocations: 1.064 MB / 0.4964 GB, free: 4.027 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004192/0.7195, allocations: 1.289 MB / 0.4977 GB, free: 2.672 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.372e-05/0.7196, allocations: 7.906 kB / 0.4977 GB, free: 2.664 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000184/0.7198, allocations: 15.94 kB / 0.4977 GB, free: 2.648 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.564e-05/0.7199, allocations: 36 kB / 0.4977 GB, free: 2.613 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3877/1.108, allocations: 6.089 MB / 0.5037 GB, free: 99.29 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003971/1.112, allocations: 0.977 MB / 0.5046 GB, free: 99.25 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002038/1.114, allocations: 0.5106 MB / 0.5051 GB, free: 99.24 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001246/1.114, allocations: 11.08 kB / 0.5052 GB, free: 99.24 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001853/1.116, allocations: 0.5198 MB / 0.5057 GB, free: 99.16 MB / 395.1 MB Notification: Performance of pre-optimization done (n=92): time 6.532e-06/1.116, allocations: 0 / 0.5057 GB, free: 99.16 MB / 395.1 MB Notification: Performance of matching and sorting (n=95): time 0.008627/1.124, allocations: 2.234 MB / 0.5078 GB, free: 98.55 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/1.125, allocations: 172.2 kB / 0.508 GB, free: 98.36 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003376/1.128, allocations: 0.9765 MB / 0.509 GB, free: 98.21 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003296/1.128, allocations: 34.02 kB / 0.509 GB, free: 98.18 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/1.129, allocations: 0.7698 MB / 0.5097 GB, free: 97.83 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006542/1.13, allocations: 300 kB / 0.51 GB, free: 97.68 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/1.13, allocations: 0 / 0.51 GB, free: 97.68 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/1.13, allocations: 363.3 kB / 0.5104 GB, free: 97.37 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/1.132, allocations: 389.1 kB / 0.5107 GB, free: 97.36 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/1.134, allocations: 0.7931 MB / 0.5115 GB, free: 96.87 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/1.135, allocations: 487 kB / 0.512 GB, free: 96.85 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.93e-05/1.135, allocations: 3.5 kB / 0.512 GB, free: 96.85 MB / 395.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.005046/1.141, allocations: 1.355 MB / 0.5133 GB, free: 96.65 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001487/1.142, allocations: 5.056 MB / 0.5183 GB, free: 91.39 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.868e-05/1.142, allocations: 12.72 kB / 0.5183 GB, free: 91.39 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/1.144, allocations: 208.2 kB / 0.5185 GB, free: 91.38 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003077/1.147, allocations: 316.7 kB / 0.5188 GB, free: 91.37 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007384/1.154, allocations: 3.794 MB / 0.5225 GB, free: 88.78 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003408/1.158, allocations: 146.8 kB / 0.5226 GB, free: 88.78 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003702/1.158, allocations: 55.34 kB / 0.5227 GB, free: 88.78 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/1.158, allocations: 9.609 kB / 0.5227 GB, free: 88.77 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004647/1.163, allocations: 1.257 MB / 0.5239 GB, free: 88.63 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-05/1.163, allocations: 13.22 kB / 0.5239 GB, free: 88.63 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/1.164, allocations: 202.7 kB / 0.5241 GB, free: 88.62 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002738/1.167, allocations: 306.2 kB / 0.5244 GB, free: 88.62 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006886/1.174, allocations: 3.78 MB / 0.5281 GB, free: 85.92 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/1.176, allocations: 72.95 kB / 0.5282 GB, free: 85.92 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002623/1.176, allocations: 63.64 kB / 0.5282 GB, free: 85.91 MB / 395.1 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,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (144): * Single equations (assignments): 142 * 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.000571/1.177, allocations: 169 kB / 0.5284 GB, free: 85.79 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003552/1.18, allocations: 1.064 MB / 0.5294 GB, free: 85.3 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005485/1.181, allocations: 125.1 kB / 0.5295 GB, free: 85.24 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003636/1.184, allocations: 1.111 MB / 0.5306 GB, free: 84.72 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/1.184, allocations: 11.78 kB / 0.5306 GB, free: 84.72 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/1.184, allocations: 0 / 0.5306 GB, free: 84.72 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.146e-05/1.184, allocations: 14.69 kB / 0.5306 GB, free: 84.71 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007828/1.192, allocations: 2.44 MB / 0.533 GB, free: 83.54 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/1.192, allocations: 3.75 kB / 0.533 GB, free: 83.54 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001714/1.194, allocations: 172.3 kB / 0.5332 GB, free: 83.52 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/1.195, allocations: 186.4 kB / 0.5334 GB, free: 83.45 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001579/1.195, allocations: 17.42 kB / 0.5334 GB, free: 83.45 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006605/1.202, allocations: 3.667 MB / 0.537 GB, free: 80.35 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.321e-05/1.202, allocations: 4.016 kB / 0.537 GB, free: 80.35 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005643/1.208, allocations: 1.709 MB / 0.5386 GB, free: 79.41 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001613/1.209, allocations: 314.8 kB / 0.5389 GB, free: 79.19 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005377/1.21, allocations: 7.344 kB / 0.539 GB, free: 79.18 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002336/1.212, allocations: 120 kB / 0.5391 GB, free: 79.18 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005558/1.213, allocations: 110.4 kB / 0.5392 GB, free: 79.15 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/1.213, allocations: 27.53 kB / 0.5392 GB, free: 79.15 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002168/1.215, allocations: 0.7226 MB / 0.5399 GB, free: 78.82 MB / 395.1 MB Notification: Performance of sort global known variables: time 7.61e-07/1.215, allocations: 0 / 0.5399 GB, free: 78.82 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00545/1.221, allocations: 0.5335 MB / 0.5404 GB, free: 78.81 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 66 * 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.006148/1.227, allocations: 2.788 MB / 0.5431 GB, free: 76.98 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.006632/1.234, allocations: 2.176 MB / 0.5453 GB, free: 75.9 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/1.234, allocations: 4.562 kB / 0.5453 GB, free: 75.9 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002418/1.236, allocations: 0.7913 MB / 0.5461 GB, free: 75.45 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00313/1.239, allocations: 254 kB / 0.5463 GB, free: 75.38 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/1.251, allocations: 2.649 MB / 0.5489 GB, free: 74.22 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001469/1.253, allocations: 1.328 MB / 0.5502 GB, free: 73.46 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001749/1.255, allocations: 0.5884 MB / 0.5508 GB, free: 73 MB / 395.1 MB Notification: Performance of SimCode: time 1.353e-06/1.255, allocations: 0 / 0.5508 GB, free: 73 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.34/4.595, allocations: 40.62 MB / 0.5904 GB, free: 45.78 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.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_DC_Drive_res.mat does not exist to compare? outputFormat=mat