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_RLV.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_RLV,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV",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.001429/0.001429, 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 1.98/1.98, 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.0011/0.0011, allocations: 94.23 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.353e-05/2.365e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3409, allocations: 47.57 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.4837, allocations: 87.43 MB / 449.9 MB, free: 14.76 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003156/0.484, allocations: 84.95 kB / 450 MB, free: 14.68 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06166/0.5457, allocations: 14.07 MB / 464 MB, free: 0.625 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5458, allocations: 0 / 464 MB, free: 0.625 MB / 347.1 MB Notification: Performance of Transformations before backend: time 7.811e-05/0.5459, allocations: 23.94 kB / 464.1 MB, free: 0.6016 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002936/0.5488, allocations: 0.9089 MB / 465 MB, free: 15.63 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.5489, allocations: 8.031 kB / 465 MB, free: 15.62 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003975/0.5493, allocations: 90.92 kB / 465.1 MB, free: 15.54 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001536/0.5509, allocations: 0.4968 MB / 465.6 MB, free: 15 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.438e-05/0.551, allocations: 27.94 kB / 465.6 MB, free: 14.97 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001876/0.5512, allocations: 44 kB / 465.6 MB, free: 14.93 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001507/0.5527, allocations: 471.9 kB / 466.1 MB, free: 14.47 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.5544, allocations: 0.6171 MB / 466.7 MB, free: 13.83 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.908e-05/0.5545, allocations: 3.906 kB / 466.7 MB, free: 13.82 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.5546, allocations: 0 / 466.7 MB, free: 13.82 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.706e-05/0.5547, allocations: 16 kB / 466.7 MB, free: 13.81 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00676/0.5614, allocations: 2.569 MB / 469.3 MB, free: 11.14 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.5633, allocations: 0.5534 MB / 469.8 MB, free: 10.57 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/0.5645, allocations: 366.5 kB / 470.2 MB, free: 10.21 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.062e-05/0.5646, allocations: 8.422 kB / 470.2 MB, free: 10.21 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008817/0.5655, allocations: 336.5 kB / 470.5 MB, free: 9.855 MB / 363.1 MB Notification: Performance of pre-optimization done (n=58): time 3.677e-06/0.5655, allocations: 0 / 470.5 MB, free: 9.855 MB / 363.1 MB Notification: Performance of matching and sorting (n=58): time 0.001575/0.5671, allocations: 0.5001 MB / 471 MB, free: 9.344 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.599e-05/0.5672, allocations: 115.4 kB / 471.2 MB, free: 9.207 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007961/0.568, allocations: 365.2 kB / 471.5 MB, free: 8.844 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001388/0.5682, allocations: 33.69 kB / 471.5 MB, free: 8.805 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003722/0.5686, allocations: 370.4 kB / 471.9 MB, free: 8.441 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002693/0.5689, allocations: 173.5 kB / 472.1 MB, free: 8.27 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-05/0.5689, allocations: 0 / 472.1 MB, free: 8.27 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.5691, allocations: 338.8 kB / 472.4 MB, free: 7.93 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005274/0.5697, allocations: 185.5 kB / 472.6 MB, free: 7.746 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006603/0.5703, allocations: 327.9 kB / 472.9 MB, free: 7.367 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000585/0.5709, allocations: 194.1 kB / 473.1 MB, free: 7.176 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.571, allocations: 4 kB / 473.1 MB, free: 7.172 MB / 363.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001744/0.5727, allocations: 0.5939 MB / 473.7 MB, free: 6.566 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007867/0.5735, allocations: 1.584 MB / 475.3 MB, free: 4.859 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/0.5736, allocations: 7.938 kB / 475.3 MB, free: 4.852 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008595/0.5745, allocations: 157.7 kB / 475.4 MB, free: 4.691 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007909/0.5753, allocations: 99.83 kB / 475.5 MB, free: 4.594 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005464/0.5808, allocations: 3.497 MB / 479 MB, free: 0.8633 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009165/0.5817, allocations: 75.61 kB / 479.1 MB, free: 0.7891 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.4e-05/0.5818, allocations: 24 kB / 479.1 MB, free: 0.7656 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.5819, allocations: 4 kB / 479.1 MB, free: 0.7617 MB / 363.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001615/0.5835, allocations: 0.5339 MB / 479.7 MB, free: 228 kB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.5835, allocations: 4 kB / 479.7 MB, free: 224 kB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006701/0.5842, allocations: 170.2 kB / 479.8 MB, free: 48 kB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006739/0.5849, allocations: 91.78 kB / 479.9 MB, free: 15.96 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005346/0.5903, allocations: 3.468 MB / 483.4 MB, free: 12.26 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007186/0.591, allocations: 55.72 kB / 483.5 MB, free: 12.2 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-05/0.5911, allocations: 24 kB / 483.5 MB, free: 12.18 MB / 379.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 (66): * Single equations (assignments): 64 * 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.0003083/0.5915, allocations: 146 kB / 483.6 MB, free: 12.04 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001462/0.5929, allocations: 0.4962 MB / 484.1 MB, free: 11.53 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.5931, allocations: 55.34 kB / 484.2 MB, free: 11.47 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/0.5933, allocations: 61.61 kB / 484.2 MB, free: 11.41 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.5934, allocations: 8 kB / 484.2 MB, free: 11.4 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.5934, allocations: 3.938 kB / 484.2 MB, free: 11.4 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.5934, allocations: 7.938 kB / 484.2 MB, free: 11.39 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003312/0.5967, allocations: 1.277 MB / 485.5 MB, free: 10.06 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.5968, allocations: 8 kB / 485.5 MB, free: 10.05 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005314/0.5973, allocations: 51.91 kB / 485.6 MB, free: 10 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007187/0.5981, allocations: 153.6 kB / 485.7 MB, free: 9.848 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-05/0.5982, allocations: 4 kB / 485.7 MB, free: 9.844 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005286/0.6035, allocations: 3.383 MB / 489.1 MB, free: 6.234 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.6035, allocations: 96 / 489.1 MB, free: 6.234 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.6059, allocations: 0.8867 MB / 490 MB, free: 5.324 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000464/0.6064, allocations: 184.3 kB / 490.2 MB, free: 5.125 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001354/0.6066, allocations: 0 / 490.2 MB, free: 5.125 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006192/0.6072, allocations: 35.97 kB / 490.2 MB, free: 5.09 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002989/0.6076, allocations: 84.33 kB / 490.3 MB, free: 5.008 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.676e-05/0.6076, allocations: 16 kB / 490.3 MB, free: 4.992 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0005321/0.6082, allocations: 283 kB / 490.6 MB, free: 4.715 MB / 379.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6082, allocations: 0 / 490.6 MB, free: 4.715 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001871/0.6101, allocations: 311 kB / 490.9 MB, free: 4.41 MB / 379.1 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * 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.002893/0.613, allocations: 1.453 MB / 492.4 MB, free: 2.918 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.0032/0.6163, allocations: 1.289 MB / 493.6 MB, free: 1.594 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/0.6163, allocations: 4 kB / 493.6 MB, free: 1.59 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/0.6175, allocations: 0.5054 MB / 494.2 MB, free: 1.066 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009511/0.6185, allocations: 77.47 kB / 494.2 MB, free: 0.9922 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/0.6227, allocations: 1.089 MB / 495.3 MB, free: 15.85 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007892/0.6236, allocations: 0.9544 MB / 496.3 MB, free: 14.87 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005851/0.6242, allocations: 235.3 kB / 496.5 MB, free: 14.64 MB / 395.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6242, allocations: 0 / 496.5 MB, free: 14.64 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.436/4.06, allocations: 16.31 MB / 0.5008 GB, free: 118.2 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV.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_RLV_res.mat does not exist to compare? outputFormat=mat