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.001533/0.001533, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.203/2.203, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.26e-05/5.278e-05, allocations: 0 / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09763/0.09773, allocations: 47.57 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4339/0.5317, allocations: 87.53 MB / 456.7 MB, free: 5.363 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003747/0.5321, allocations: 87.69 kB / 456.8 MB, free: 5.312 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05827/0.5904, allocations: 13.62 MB / 470.4 MB, free: 9.695 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5905, allocations: 0 / 470.4 MB, free: 9.695 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.843e-05/0.5906, allocations: 16 kB / 470.5 MB, free: 9.68 MB / 346.7 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.002658/0.5932, allocations: 0.8676 MB / 471.3 MB, free: 8.758 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.5933, allocations: 8.031 kB / 471.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003021/0.5936, allocations: 110.5 kB / 471.4 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002764/0.5939, allocations: 79.06 kB / 471.5 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.5952, allocations: 497.8 kB / 472 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.444e-05/0.5953, allocations: 57.3 kB / 472.1 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.5955, allocations: 64 kB / 472.1 MB, free: 7.906 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001921/0.5974, allocations: 0.667 MB / 472.8 MB, free: 7.211 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/0.5975, allocations: 3.938 kB / 472.8 MB, free: 7.207 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.5976, allocations: 31.98 kB / 472.8 MB, free: 7.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.5977, allocations: 12 kB / 472.8 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.5991, allocations: 493 kB / 473.3 MB, free: 6.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006636/0.6058, allocations: 2.608 MB / 475.9 MB, free: 3.957 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.6077, allocations: 0.564 MB / 476.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009941/0.6088, allocations: 314.4 kB / 476.8 MB, free: 3.066 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.118e-05/0.6088, allocations: 4.438 kB / 476.8 MB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008573/0.6097, allocations: 342.6 kB / 477.1 MB, free: 2.711 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 4.098e-06/0.6097, allocations: 0 / 477.1 MB, free: 2.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.00156/0.6113, allocations: 0.5032 MB / 477.6 MB, free: 2.199 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.6114, allocations: 115.8 kB / 477.8 MB, free: 2.059 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009295/0.6124, allocations: 427.7 kB / 478.2 MB, free: 1.637 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.6125, allocations: 45.69 kB / 478.2 MB, free: 1.586 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003365/0.6129, allocations: 346.9 kB / 478.6 MB, free: 1.246 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.6131, allocations: 165.7 kB / 478.7 MB, free: 1.082 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.6132, allocations: 20 kB / 478.7 MB, free: 1.062 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.6133, allocations: 330.8 kB / 479.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005248/0.6138, allocations: 177.5 kB / 479.2 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006758/0.6145, allocations: 338.3 kB / 479.6 MB, free: 168 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005588/0.6151, allocations: 191.3 kB / 479.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.6151, allocations: 7.953 kB / 479.8 MB, free: 15.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001675/0.6168, allocations: 0.6125 MB / 480.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007726/0.6176, allocations: 1.585 MB / 482 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.6176, allocations: 4 kB / 482 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008102/0.6185, allocations: 156.7 kB / 482.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006894/0.6192, allocations: 91.83 kB / 482.2 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004671/0.6239, allocations: 2.335 MB / 484.5 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009496/0.6249, allocations: 99.38 kB / 484.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.535e-05/0.625, allocations: 20 kB / 484.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.625, allocations: 4 kB / 484.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00165/0.6267, allocations: 0.5721 MB / 485.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.6267, allocations: 4 kB / 485.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006565/0.6274, allocations: 145.3 kB / 485.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005833/0.628, allocations: 83.84 kB / 485.5 MB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004449/0.6325, allocations: 2.325 MB / 487.8 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006728/0.6332, allocations: 71.7 kB / 487.9 MB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.024e-05/0.6333, allocations: 28 kB / 487.9 MB, free: 7.441 MB / 362.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,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.0002987/0.6336, allocations: 156.8 kB / 488 MB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.6338, allocations: 59.25 kB / 488.1 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002211/0.6341, allocations: 65.3 kB / 488.2 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.6341, allocations: 7.953 kB / 488.2 MB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.6341, allocations: 4 kB / 488.2 MB, free: 7.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.6341, allocations: 3.984 kB / 488.2 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003467/0.6376, allocations: 1.337 MB / 489.5 MB, free: 5.742 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.6377, allocations: 4.031 kB / 489.5 MB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003894/0.6381, allocations: 39.98 kB / 489.5 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007083/0.6388, allocations: 144.8 kB / 489.7 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.886e-05/0.6389, allocations: 19.92 kB / 489.7 MB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004241/0.6431, allocations: 2.252 MB / 492 MB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.6432, allocations: 0 / 492 MB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/0.6456, allocations: 0.8884 MB / 492.8 MB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004144/0.646, allocations: 180.3 kB / 493 MB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.6462, allocations: 19.98 kB / 493 MB, free: 2.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006164/0.6468, allocations: 39.97 kB / 493.1 MB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002862/0.6471, allocations: 80.28 kB / 493.2 MB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.284e-05/0.6472, allocations: 23.92 kB / 493.2 MB, free: 1.883 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006471/0.6479, allocations: 325.6 kB / 493.5 MB, free: 1.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6479, allocations: 0 / 493.5 MB, free: 1.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001488/0.6494, allocations: 323.2 kB / 493.8 MB, free: 1.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.002912/0.6523, allocations: 1.551 MB / 495.4 MB, free: 15.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002948/0.6553, allocations: 1.133 MB / 496.5 MB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.6553, allocations: 0 / 496.5 MB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00107/0.6564, allocations: 444.7 kB / 496.9 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009088/0.6573, allocations: 101.4 kB / 497 MB, free: 13.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003531/0.6609, allocations: 1.034 MB / 498.1 MB, free: 12.87 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007347/0.6617, allocations: 0.9429 MB / 499 MB, free: 11.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005305/0.6622, allocations: 227.4 kB / 499.2 MB, free: 11.68 MB / 378.7 MB Notification: Performance of SimCode: time 1.553e-06/0.6622, allocations: 0 / 499.2 MB, free: 11.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.857/3.519, allocations: 13.3 MB / 0.5005 GB, free: 14.35 MB / 394.7 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