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_R.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_R,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",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.002399/0.002398, allocations: 179.4 kB / 8.364 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.012/2.012, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.00106/0.00106, allocations: 92.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.572e-05/2.567e-05, allocations: 4 kB / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3329, allocations: 47.56 MB / 362.4 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.142/0.475, allocations: 86.88 MB / 449.3 MB, free: 15.39 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003378/0.4754, allocations: 87.94 kB / 449.4 MB, free: 15.3 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05818/0.5336, allocations: 13.49 MB / 462.9 MB, free: 1.832 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5336, allocations: 0 / 462.9 MB, free: 1.832 MB / 347.1 MB Notification: Performance of Transformations before backend: time 6.965e-05/0.5337, allocations: 23.98 kB / 462.9 MB, free: 1.809 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002608/0.5363, allocations: 0.8676 MB / 463.8 MB, free: 0.8828 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/0.5364, allocations: 12.03 kB / 463.8 MB, free: 0.8711 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003528/0.5368, allocations: 79.06 kB / 463.9 MB, free: 0.793 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.5382, allocations: 0.4884 MB / 464.4 MB, free: 268 kB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.893e-05/0.5383, allocations: 31.92 kB / 464.4 MB, free: 236 kB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.5385, allocations: 36 kB / 464.4 MB, free: 200 kB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001514/0.54, allocations: 450.6 kB / 464.9 MB, free: 15.75 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.5417, allocations: 0.5746 MB / 465.5 MB, free: 15.15 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.275e-05/0.5418, allocations: 3.938 kB / 465.5 MB, free: 15.15 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.081e-05/0.5419, allocations: 11.98 kB / 465.5 MB, free: 15.14 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.752e-05/0.5419, allocations: 16 kB / 465.5 MB, free: 15.12 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006295/0.5482, allocations: 2.471 MB / 468 MB, free: 12.55 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.55, allocations: 0.5385 MB / 468.5 MB, free: 12 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005879/0.5506, allocations: 242.5 kB / 468.7 MB, free: 11.76 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.527e-05/0.5507, allocations: 4.438 kB / 468.7 MB, free: 11.76 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008365/0.5515, allocations: 332.9 kB / 469.1 MB, free: 11.41 MB / 363.1 MB Notification: Performance of pre-optimization done (n=55): time 3.196e-06/0.5515, allocations: 0 / 469.1 MB, free: 11.41 MB / 363.1 MB Notification: Performance of matching and sorting (n=55): time 0.001419/0.553, allocations: 475.4 kB / 469.5 MB, free: 10.94 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.086e-05/0.5531, allocations: 119.4 kB / 469.6 MB, free: 10.8 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007332/0.5538, allocations: 361.1 kB / 470 MB, free: 10.44 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.554, allocations: 37.69 kB / 470 MB, free: 10.4 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003396/0.5543, allocations: 346.7 kB / 470.4 MB, free: 10.06 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002257/0.5546, allocations: 161.7 kB / 470.5 MB, free: 9.898 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.5546, allocations: 0 / 470.5 MB, free: 9.898 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.5548, allocations: 334.8 kB / 470.9 MB, free: 9.562 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004736/0.5553, allocations: 169.5 kB / 471 MB, free: 9.398 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006361/0.5559, allocations: 319.9 kB / 471.3 MB, free: 9.02 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004972/0.5564, allocations: 186.1 kB / 471.5 MB, free: 8.84 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.5565, allocations: 0 / 471.5 MB, free: 8.84 MB / 363.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001534/0.558, allocations: 0.5583 MB / 472.1 MB, free: 8.273 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007572/0.5588, allocations: 1.57 MB / 473.6 MB, free: 6.578 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.196e-05/0.5588, allocations: 4 kB / 473.6 MB, free: 6.574 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008261/0.5597, allocations: 159.3 kB / 473.8 MB, free: 6.418 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006733/0.5604, allocations: 87.83 kB / 473.9 MB, free: 6.332 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004308/0.5647, allocations: 2.27 MB / 476.2 MB, free: 3.945 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008525/0.5656, allocations: 79.52 kB / 476.2 MB, free: 3.867 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.19e-05/0.5657, allocations: 32 kB / 476.3 MB, free: 3.836 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.5657, allocations: 4 kB / 476.3 MB, free: 3.832 MB / 363.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001407/0.5672, allocations: 0.4945 MB / 476.8 MB, free: 3.336 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.5672, allocations: 4 kB / 476.8 MB, free: 3.332 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006396/0.5678, allocations: 154.4 kB / 476.9 MB, free: 3.18 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005783/0.5684, allocations: 75.84 kB / 477 MB, free: 3.105 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004115/0.5726, allocations: 2.26 MB / 479.3 MB, free: 0.7344 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006057/0.5732, allocations: 51.7 kB / 479.3 MB, free: 0.6836 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.246e-05/0.5733, allocations: 28 kB / 479.3 MB, free: 0.6562 MB / 363.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.000279/0.5736, allocations: 150.1 kB / 479.5 MB, free: 0.5039 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001315/0.5749, allocations: 479.3 kB / 479.9 MB, free: 24 kB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.5751, allocations: 51.39 kB / 480 MB, free: 15.97 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002049/0.5753, allocations: 52.97 kB / 480 MB, free: 15.92 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.5754, allocations: 8 kB / 480.1 MB, free: 15.91 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.5754, allocations: 0 / 480.1 MB, free: 15.91 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.399e-05/0.5754, allocations: 7.938 kB / 480.1 MB, free: 15.9 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00297/0.5784, allocations: 1.202 MB / 481.3 MB, free: 14.66 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.5784, allocations: 0 / 481.3 MB, free: 14.66 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004101/0.5789, allocations: 43.92 kB / 481.3 MB, free: 14.61 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006802/0.5796, allocations: 132.8 kB / 481.4 MB, free: 14.48 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.586e-05/0.5796, allocations: 15.98 kB / 481.5 MB, free: 14.46 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004022/0.5837, allocations: 2.153 MB / 483.6 MB, free: 12.19 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.872e-06/0.5837, allocations: 0 / 483.6 MB, free: 12.19 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.5859, allocations: 0.8273 MB / 484.4 MB, free: 11.35 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004253/0.5864, allocations: 180.4 kB / 484.6 MB, free: 11.15 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.5865, allocations: 7.953 kB / 484.6 MB, free: 11.14 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005831/0.5871, allocations: 35.97 kB / 484.7 MB, free: 11.11 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003027/0.5874, allocations: 72.44 kB / 484.7 MB, free: 11.04 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.386e-05/0.5875, allocations: 16 kB / 484.7 MB, free: 11.02 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0005056/0.588, allocations: 275 kB / 485 MB, free: 10.75 MB / 379.1 MB Notification: Performance of sort global known variables: time 2.285e-06/0.588, allocations: 0 / 485 MB, free: 10.75 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001623/0.5897, allocations: 295 kB / 485.3 MB, free: 10.46 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * 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_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002623/0.5923, allocations: 1.397 MB / 486.7 MB, free: 9.039 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.002848/0.5952, allocations: 1.066 MB / 487.8 MB, free: 7.957 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/0.5953, allocations: 9.375 kB / 487.8 MB, free: 7.949 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.5963, allocations: 415.3 kB / 488.2 MB, free: 7.535 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008582/0.5972, allocations: 83.75 kB / 488.3 MB, free: 7.457 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.6008, allocations: 0.9729 MB / 489.2 MB, free: 6.434 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007374/0.6016, allocations: 0.9386 MB / 490.2 MB, free: 5.461 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005141/0.6021, allocations: 219.4 kB / 490.4 MB, free: 5.246 MB / 379.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6021, allocations: 0 / 490.4 MB, free: 5.246 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.902/3.504, allocations: 12.95 MB / 0.4915 GB, free: 8.309 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.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_R_res.mat does not exist to compare? outputFormat=mat