Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.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.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",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.001055/0.001055, allocations: 180.1 kB / 17.01 MB, free: 5.125 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.538/1.538, allocations: 205.4 MB / 223.1 MB, free: 9.035 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.0008145/0.0008146, allocations: 95.95 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003009/0.0003007, allocations: 8 kB / 328.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.243, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09702/0.3401, allocations: 84.63 MB / 460.6 MB, free: 12.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/0.3404, allocations: 83.95 kB / 460.6 MB, free: 11.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05085/0.3913, allocations: 20.41 MB / 481 MB, free: 7.352 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.297e-06/0.3913, allocations: 0 / 481 MB, free: 7.352 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.867e-05/0.3914, allocations: 31.94 kB / 481.1 MB, free: 7.32 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002981/0.3944, allocations: 1.431 MB / 482.5 MB, free: 5.832 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.3945, allocations: 15.97 kB / 482.5 MB, free: 5.816 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002423/0.3947, allocations: 152.2 kB / 482.7 MB, free: 5.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00025/0.395, allocations: 142.3 kB / 482.8 MB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003991/0.399, allocations: 1.671 MB / 484.5 MB, free: 3.805 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.64e-05/0.3991, allocations: 81.94 kB / 484.6 MB, free: 3.727 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.3992, allocations: 92 kB / 484.7 MB, free: 3.637 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002171/0.4014, allocations: 1.423 MB / 486.1 MB, free: 2.152 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/0.4014, allocations: 7.938 kB / 486.1 MB, free: 2.145 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.78e-05/0.4015, allocations: 40 kB / 486.1 MB, free: 2.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.246e-05/0.4016, allocations: 49.92 kB / 486.2 MB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.4034, allocations: 1.23 MB / 487.4 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005751/0.4092, allocations: 4.341 MB / 491.7 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.411, allocations: 1.974 MB / 493.7 MB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.189e-05/0.4111, allocations: 12.64 kB / 493.7 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008204/0.4119, allocations: 0.5937 MB / 494.3 MB, free: 9.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=75): time 3.106e-06/0.4119, allocations: 4 kB / 494.3 MB, free: 9.566 MB / 378.7 MB Notification: Performance of matching and sorting (n=75): time 0.006075/0.418, allocations: 2.723 MB / 497 MB, free: 6.812 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/0.4181, allocations: 115.5 kB / 497.2 MB, free: 6.676 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008699/0.4189, allocations: 0.7379 MB / 497.9 MB, free: 5.934 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.745e-05/0.419, allocations: 41.7 kB / 497.9 MB, free: 5.887 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003388/0.4194, allocations: 487.8 kB / 498.4 MB, free: 5.402 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.4195, allocations: 244.5 kB / 498.7 MB, free: 5.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.628e-05/0.4196, allocations: 16 kB / 498.7 MB, free: 5.145 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.4197, allocations: 394.7 kB / 499.1 MB, free: 4.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005543/0.4203, allocations: 401.7 kB / 499.4 MB, free: 4.359 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006461/0.421, allocations: 0.5368 MB / 500 MB, free: 3.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006159/0.4216, allocations: 442.2 kB / 0.4887 GB, free: 3.336 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.4216, allocations: 4 kB / 0.4887 GB, free: 3.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001823/0.4234, allocations: 1.299 MB / 0.49 GB, free: 2.023 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.4235, allocations: 8 kB / 0.49 GB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.4235, allocations: 4 kB / 0.49 GB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009746/0.4245, allocations: 472.2 kB / 0.4904 GB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003398/0.4248, allocations: 99.81 kB / 0.4905 GB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2158/0.6406, allocations: 5.276 MB / 0.4957 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007387/0.6414, allocations: 85.84 kB / 0.4958 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.484e-05/0.6415, allocations: 33.12 kB / 0.4958 GB, free: 101.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * 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 {6 30} Notification: Performance of prepare postOptimizeDAE: time 0.000758/0.6423, allocations: 462.2 kB / 0.4962 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.6424, allocations: 82.25 kB / 0.4963 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002146/0.6426, allocations: 112.9 kB / 0.4964 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.6426, allocations: 7.75 kB / 0.4964 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6426, allocations: 1.156 kB / 0.4964 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.6426, allocations: 9.234 kB / 0.4964 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003803/0.6465, allocations: 2.632 MB / 0.499 GB, free: 100.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.6465, allocations: 3.625 kB / 0.499 GB, free: 100.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.6468, allocations: 65.38 kB / 0.4991 GB, free: 100.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009434/0.6477, allocations: 461.4 kB / 0.4995 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.79e-05/0.6478, allocations: 14.97 kB / 0.4995 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005959/0.6537, allocations: 5.284 MB / 0.5047 GB, free: 98.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.6538, allocations: 0 / 0.5047 GB, free: 98.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002309/0.6561, allocations: 1.93 MB / 0.5066 GB, free: 97.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004441/0.6565, allocations: 272.9 kB / 0.5068 GB, free: 97.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.746e-05/0.6567, allocations: 15.06 kB / 0.5068 GB, free: 97.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003752/0.657, allocations: 49.3 kB / 0.5069 GB, free: 97.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.6572, allocations: 71.45 kB / 0.507 GB, free: 97.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.296e-05/0.6573, allocations: 18.48 kB / 0.507 GB, free: 97.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006993/0.658, allocations: 0.5823 MB / 0.5075 GB, free: 96.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.658, allocations: 0 / 0.5075 GB, free: 96.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001051/0.659, allocations: 351.1 kB / 0.5079 GB, free: 96.77 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: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {6 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.00237/0.6614, allocations: 2.499 MB / 0.5103 GB, free: 95.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001855/0.6633, allocations: 1.283 MB / 0.5116 GB, free: 94.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.6633, allocations: 0 / 0.5116 GB, free: 94.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009939/0.6643, allocations: 0.8286 MB / 0.5124 GB, free: 94.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009129/0.6652, allocations: 256.2 kB / 0.5126 GB, free: 94.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004735/0.67, allocations: 5.62 MB / 0.5181 GB, free: 90.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007239/0.6707, allocations: 1.347 MB / 0.5194 GB, free: 89.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004257/0.6712, allocations: 139.5 kB / 0.5196 GB, free: 89.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003929/0.6716, allocations: 375.1 kB / 0.5199 GB, free: 89.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.133e-06/0.6716, allocations: 0.875 kB / 0.5199 GB, free: 89.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04115/0.7127, allocations: 26.13 MB / 0.5454 GB, free: 68.02 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/0.713, allocations: 259.9 kB / 0.5457 GB, free: 67.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.443/3.156, allocations: 4 kB / 0.5457 GB, free: 67.67 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat