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.HalfControlledBridge2Pulse.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.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",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.001503/0.001508, allocations: 187.9 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.977/1.977, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001162/0.001161, allocations: 88.44 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003973/0.0003973, allocations: 8 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3394, allocations: 47.57 MB / 374.7 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1445/0.4839, allocations: 87.73 MB / 462.4 MB, free: 8.887 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003451/0.4843, allocations: 83.95 kB / 462.5 MB, free: 8.805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04777/0.5321, allocations: 10.92 MB / 473.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.5322, allocations: 0 / 473.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.756e-05/0.5322, allocations: 19.98 kB / 473.4 MB, free: 13.8 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002737/0.535, allocations: 0.9421 MB / 474.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.5351, allocations: 8.031 kB / 474.4 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002898/0.5354, allocations: 106.5 kB / 474.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002462/0.5356, allocations: 86.95 kB / 474.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.5369, allocations: 497.9 kB / 475 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.549e-05/0.537, allocations: 49.31 kB / 475.1 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.5372, allocations: 60 kB / 475.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002044/0.5392, allocations: 0.6903 MB / 475.8 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.942e-05/0.5393, allocations: 3.984 kB / 475.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/0.5395, allocations: 28 kB / 475.9 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.332e-05/0.5395, allocations: 16 kB / 475.9 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001783/0.5413, allocations: 0.5243 MB / 476.4 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006176/0.5475, allocations: 2.59 MB / 479 MB, free: 7.969 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001941/0.5495, allocations: 0.5746 MB / 479.6 MB, free: 7.383 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.263e-05/0.5496, allocations: 4.438 kB / 479.6 MB, free: 7.379 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000923/0.5505, allocations: 357.6 kB / 479.9 MB, free: 7.012 MB / 362.7 MB Notification: Performance of pre-optimization done (n=55): time 3.106e-06/0.5505, allocations: 0 / 479.9 MB, free: 7.012 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.004419/0.5549, allocations: 0.9808 MB / 480.9 MB, free: 6.004 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.5551, allocations: 111.4 kB / 481 MB, free: 5.871 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009809/0.5561, allocations: 445 kB / 481.4 MB, free: 5.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.332e-05/0.5562, allocations: 45.7 kB / 481.5 MB, free: 5.379 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003198/0.5565, allocations: 338.9 kB / 481.8 MB, free: 5.047 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002252/0.5567, allocations: 169.6 kB / 482 MB, free: 4.879 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.67e-05/0.5568, allocations: 16 kB / 482 MB, free: 4.863 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.557, allocations: 334.8 kB / 482.3 MB, free: 4.527 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00066/0.5577, allocations: 201.2 kB / 482.5 MB, free: 4.328 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008162/0.5585, allocations: 352.1 kB / 482.9 MB, free: 3.926 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006978/0.5592, allocations: 218.1 kB / 483.1 MB, free: 3.715 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.5592, allocations: 4 kB / 483.1 MB, free: 3.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001962/0.5612, allocations: 0.6476 MB / 483.7 MB, free: 3.051 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007565/0.562, allocations: 1.579 MB / 485.3 MB, free: 1.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.562, allocations: 4 kB / 485.3 MB, free: 1.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008323/0.5628, allocations: 148.8 kB / 485.5 MB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/0.5635, allocations: 87.83 kB / 485.5 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004804/0.5683, allocations: 2.379 MB / 487.9 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009014/0.5693, allocations: 87.53 kB / 488 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.519e-05/0.5694, allocations: 24 kB / 488 MB, free: 14.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.5694, allocations: 4 kB / 488 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001737/0.5712, allocations: 0.5765 MB / 488.6 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.5712, allocations: 8 kB / 488.6 MB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006942/0.5719, allocations: 152.6 kB / 488.8 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005488/0.5725, allocations: 75.91 kB / 488.8 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004492/0.577, allocations: 2.353 MB / 491.2 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006275/0.5776, allocations: 67.7 kB / 491.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.512e-05/0.5777, allocations: 20 kB / 491.3 MB, free: 11.1 MB / 378.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: 27 ($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,rectifier.diode_n1.off,rectifier.diode_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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * 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.000632/0.5783, allocations: 312.9 kB / 491.6 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/0.5785, allocations: 55.34 kB / 491.6 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.5787, allocations: 69.58 kB / 491.7 MB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.5788, allocations: 4 kB / 491.7 MB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.5788, allocations: 3.953 kB / 491.7 MB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.5788, allocations: 3.984 kB / 491.7 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003278/0.5821, allocations: 1.335 MB / 493.1 MB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.5821, allocations: 0 / 493.1 MB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000433/0.5826, allocations: 47.91 kB / 493.1 MB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006973/0.5833, allocations: 144.7 kB / 493.2 MB, free: 9.055 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.112e-05/0.5834, allocations: 12 kB / 493.3 MB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004627/0.588, allocations: 2.378 MB / 495.6 MB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.588, allocations: 0 / 495.6 MB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.5905, allocations: 0.8936 MB / 496.5 MB, free: 5.633 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004414/0.591, allocations: 184.3 kB / 496.7 MB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.5911, allocations: 12 kB / 496.7 MB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006237/0.5918, allocations: 43.97 kB / 496.8 MB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.592, allocations: 64.42 kB / 496.8 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.379e-05/0.5921, allocations: 19.98 kB / 496.8 MB, free: 5.293 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007429/0.5928, allocations: 342.9 kB / 497.2 MB, free: 4.961 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5929, allocations: 0 / 497.2 MB, free: 4.961 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001503/0.5944, allocations: 323.2 kB / 497.5 MB, free: 4.645 MB / 378.7 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.diode_n1.off,rectifier.diode_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: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off) * Number of clocked states: 0 () * 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.002918/0.5973, allocations: 1.464 MB / 499 MB, free: 3.152 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003248/0.6006, allocations: 1.184 MB / 0.4884 GB, free: 1.941 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.6006, allocations: 0.875 kB / 0.4884 GB, free: 1.941 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.6017, allocations: 447 kB / 0.4888 GB, free: 1.496 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009073/0.6027, allocations: 107.1 kB / 0.4889 GB, free: 1.391 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2908/0.8935, allocations: 4.5 MB / 0.4933 GB, free: 102.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006804/0.8942, allocations: 0.9386 MB / 0.4943 GB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000574/0.8948, allocations: 223.8 kB / 0.4945 GB, free: 102.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.153e-06/0.8948, allocations: 3.531 kB / 0.4945 GB, free: 102.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.839/3.733, allocations: 13.08 MB / 0.5072 GB, free: 100.1 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.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.HalfControlledBridge2Pulse_res.mat does not exist to compare? outputFormat=mat