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.002082/0.002082, allocations: 177.8 kB / 8.36 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.202/2.202, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001109/0.001109, allocations: 87.44 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.59e-05/2.603e-05, allocations: 0 / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.356, allocations: 47.57 MB / 362.4 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1872/0.5432, allocations: 86.98 MB / 449.4 MB, free: 15.3 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004652/0.5437, allocations: 83.95 kB / 449.5 MB, free: 15.21 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05834/0.6021, allocations: 10.8 MB / 460.3 MB, free: 4.426 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6021, allocations: 0 / 460.3 MB, free: 4.426 MB / 347.1 MB Notification: Performance of Transformations before backend: time 5.85e-05/0.6022, allocations: 17.78 kB / 460.3 MB, free: 4.41 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002372/0.6046, allocations: 0.8641 MB / 461.2 MB, free: 3.496 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.6047, allocations: 8.031 kB / 461.2 MB, free: 3.488 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002693/0.6049, allocations: 83.06 kB / 461.3 MB, free: 3.406 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.6062, allocations: 0.4922 MB / 461.8 MB, free: 2.871 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.735e-05/0.6062, allocations: 24 kB / 461.8 MB, free: 2.848 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.6064, allocations: 36 kB / 461.8 MB, free: 2.812 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001351/0.6078, allocations: 450.5 kB / 462.3 MB, free: 2.371 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.6093, allocations: 0.5668 MB / 462.8 MB, free: 1.777 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.342e-05/0.6094, allocations: 7.938 kB / 462.8 MB, free: 1.77 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.922e-05/0.6094, allocations: 0 / 462.8 MB, free: 1.77 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.6095, allocations: 16 kB / 462.9 MB, free: 1.754 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005911/0.6154, allocations: 2.461 MB / 465.3 MB, free: 15.19 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.6171, allocations: 0.536 MB / 465.9 MB, free: 14.64 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005648/0.6177, allocations: 239.1 kB / 466.1 MB, free: 14.41 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.271e-05/0.6178, allocations: 8.438 kB / 466.1 MB, free: 14.4 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007993/0.6186, allocations: 320.6 kB / 466.4 MB, free: 14.06 MB / 363.1 MB Notification: Performance of pre-optimization done (n=55): time 5.871e-06/0.6186, allocations: 2.062 kB / 466.4 MB, free: 14.06 MB / 363.1 MB Notification: Performance of matching and sorting (n=55): time 0.001384/0.62, allocations: 483.2 kB / 466.9 MB, free: 13.58 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.804e-05/0.6201, allocations: 115.4 kB / 467 MB, free: 13.44 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007163/0.6208, allocations: 365.1 kB / 467.4 MB, free: 13.08 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 8.184e-05/0.6209, allocations: 33.69 kB / 467.4 MB, free: 13.04 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003339/0.6213, allocations: 354.6 kB / 467.7 MB, free: 12.69 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/0.6215, allocations: 153.7 kB / 467.9 MB, free: 12.54 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.6216, allocations: 0 / 467.9 MB, free: 12.54 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.6217, allocations: 338.8 kB / 468.2 MB, free: 12.2 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004669/0.6222, allocations: 161.5 kB / 468.4 MB, free: 12.04 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00061/0.6228, allocations: 317.4 kB / 468.7 MB, free: 11.67 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004873/0.6233, allocations: 178.1 kB / 468.9 MB, free: 11.5 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.6234, allocations: 0 / 468.9 MB, free: 11.5 MB / 363.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001467/0.6248, allocations: 0.5426 MB / 469.4 MB, free: 10.95 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007664/0.6256, allocations: 1.571 MB / 471 MB, free: 9.254 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.6257, allocations: 8 kB / 471 MB, free: 9.246 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007962/0.6265, allocations: 146 kB / 471.1 MB, free: 9.102 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006487/0.6271, allocations: 87.83 kB / 471.2 MB, free: 9.016 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004198/0.6313, allocations: 2.244 MB / 473.4 MB, free: 6.66 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008306/0.6322, allocations: 71.59 kB / 473.5 MB, free: 6.59 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.009e-05/0.6323, allocations: 24 kB / 473.5 MB, free: 6.566 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.6323, allocations: 7.953 kB / 473.6 MB, free: 6.559 MB / 363.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001347/0.6337, allocations: 0.4905 MB / 474 MB, free: 6.07 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.6337, allocations: 4 kB / 474 MB, free: 6.066 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006098/0.6343, allocations: 144.6 kB / 474.2 MB, free: 5.922 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005169/0.6348, allocations: 75.91 kB / 474.3 MB, free: 5.848 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003924/0.6388, allocations: 2.24 MB / 476.5 MB, free: 3.496 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005704/0.6394, allocations: 59.56 kB / 476.6 MB, free: 3.438 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.943e-05/0.6395, allocations: 24 kB / 476.6 MB, free: 3.414 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: 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 () * 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.0002515/0.6397, allocations: 132.1 kB / 476.7 MB, free: 3.281 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001276/0.641, allocations: 475.4 kB / 477.2 MB, free: 2.805 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.6411, allocations: 55.33 kB / 477.2 MB, free: 2.75 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001983/0.6414, allocations: 53.06 kB / 477.3 MB, free: 2.699 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.6414, allocations: 8.938 kB / 477.3 MB, free: 2.691 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.6414, allocations: 0 / 477.3 MB, free: 2.691 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.6414, allocations: 7.984 kB / 477.3 MB, free: 2.684 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002759/0.6442, allocations: 1.179 MB / 478.5 MB, free: 1.457 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.6442, allocations: 0 / 478.5 MB, free: 1.457 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003987/0.6446, allocations: 43.92 kB / 478.5 MB, free: 1.414 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006262/0.6453, allocations: 144.7 kB / 478.7 MB, free: 1.27 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.552e-05/0.6453, allocations: 7.938 kB / 478.7 MB, free: 1.262 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003933/0.6493, allocations: 2.229 MB / 480.9 MB, free: 14.91 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.6493, allocations: 0 / 480.9 MB, free: 14.91 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/0.6514, allocations: 0.8126 MB / 481.7 MB, free: 14.09 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003981/0.6519, allocations: 176.3 kB / 481.9 MB, free: 13.89 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.652, allocations: 4 kB / 481.9 MB, free: 13.89 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005944/0.6526, allocations: 39.95 kB / 481.9 MB, free: 13.85 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002372/0.6528, allocations: 56.48 kB / 482 MB, free: 13.8 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.616e-05/0.6529, allocations: 19.98 kB / 482 MB, free: 13.78 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0005183/0.6534, allocations: 267 kB / 482.3 MB, free: 13.52 MB / 379.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6535, allocations: 4 kB / 482.3 MB, free: 13.52 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001608/0.6551, allocations: 287.1 kB / 482.5 MB, free: 13.23 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.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) * 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.002554/0.6576, allocations: 1.39 MB / 483.9 MB, free: 11.82 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.002781/0.6605, allocations: 1.051 MB / 485 MB, free: 10.75 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 8.717e-06/0.6605, allocations: 384 / 485 MB, free: 10.75 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009887/0.6615, allocations: 415.5 kB / 485.4 MB, free: 10.34 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009303/0.6625, allocations: 82.73 kB / 485.5 MB, free: 10.26 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003622/0.6661, allocations: 0.9572 MB / 486.4 MB, free: 9.254 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008042/0.667, allocations: 0.9347 MB / 487.4 MB, free: 8.285 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000516/0.6675, allocations: 219.4 kB / 487.6 MB, free: 8.07 MB / 379.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6675, allocations: 0 / 487.6 MB, free: 8.07 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.971/3.638, allocations: 12.93 MB / 0.4888 GB, free: 11.16 MB / 395.1 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