Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.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.MultiPhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_Rectifier",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.001342/0.001342, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.381/1.381, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0008194/0.0008193, allocations: 82.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.158e-05/2.161e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07747/0.07751, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2819/0.3594, allocations: 85.23 MB / 455.3 MB, free: 8.141 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.3597, allocations: 79.08 kB / 455.4 MB, free: 8.102 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07911/0.4388, allocations: 32.13 MB / 487.6 MB, free: 9.168 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.4389, allocations: 0 / 487.6 MB, free: 9.168 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.624e-05/0.439, allocations: 55.94 kB / 487.6 MB, free: 9.113 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: 531 * Number of variables: 531 Notification: Performance of Generate backend data structure: time 0.003378/0.4424, allocations: 1.947 MB / 489.6 MB, free: 7.105 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.4424, allocations: 16.03 kB / 489.6 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003461/0.4428, allocations: 295.5 kB / 489.9 MB, free: 6.789 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003858/0.4432, allocations: 237.3 kB / 490.1 MB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001952/0.4451, allocations: 1.22 MB / 491.3 MB, free: 5.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.4453, allocations: 152.2 kB / 491.5 MB, free: 5.137 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002646/0.4455, allocations: 204 kB / 491.7 MB, free: 4.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003938/0.4495, allocations: 2.544 MB / 494.2 MB, free: 2.242 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.364e-05/0.4495, allocations: 0 / 494.2 MB, free: 2.242 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001841/0.4497, allocations: 88 kB / 494.3 MB, free: 2.156 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.695e-05/0.4498, allocations: 48 kB / 494.3 MB, free: 2.109 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002983/0.4528, allocations: 1.883 MB / 496.2 MB, free: 216 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01127/0.464, allocations: 7.521 MB / 0.4919 GB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002091/0.4662, allocations: 2.33 MB / 0.4942 GB, free: 5.941 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001267/0.4675, allocations: 0.8996 MB / 0.4951 GB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.425e-05/0.4675, allocations: 8.781 kB / 0.4951 GB, free: 5.027 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.4676, allocations: 43.34 kB / 0.4951 GB, free: 4.977 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 3.236e-06/0.4676, allocations: 0 / 0.4951 GB, free: 4.977 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.004518/0.4721, allocations: 2.95 MB / 0.498 GB, free: 1.949 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.4722, allocations: 68.14 kB / 0.4981 GB, free: 1.871 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001024/0.4732, allocations: 0.7463 MB / 0.4988 GB, free: 1.117 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.25e-05/0.4733, allocations: 41.7 kB / 0.4988 GB, free: 1.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005624/0.4738, allocations: 0.8372 MB / 0.4997 GB, free: 224 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002709/0.4741, allocations: 323.3 kB / 0.5 GB, free: 15.9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.4742, allocations: 20 kB / 0.5 GB, free: 15.88 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.4744, allocations: 337.9 kB / 0.5003 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007168/0.4751, allocations: 489.7 kB / 0.5008 GB, free: 15.06 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008548/0.4759, allocations: 0.6506 MB / 0.5014 GB, free: 14.35 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008437/0.4768, allocations: 0.5513 MB / 0.502 GB, free: 13.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.4768, allocations: 4 kB / 0.502 GB, free: 13.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002458/0.4793, allocations: 1.589 MB / 0.5035 GB, free: 12.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.4793, allocations: 8 kB / 0.5035 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.864e-05/0.4794, allocations: 8 kB / 0.5035 GB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/0.4805, allocations: 463 kB / 0.504 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006866/0.4812, allocations: 179.7 kB / 0.5041 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008353/0.4895, allocations: 8.447 MB / 0.5124 GB, free: 2.539 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007737/0.4903, allocations: 56.02 kB / 0.5124 GB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.06e-05/0.4904, allocations: 35.98 kB / 0.5125 GB, free: 2.449 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002272/0.4907, allocations: 161.7 kB / 0.5126 GB, free: 2.285 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001896/0.4909, allocations: 102.8 kB / 0.5127 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/0.4932, allocations: 1.49 MB / 0.5142 GB, free: 0.668 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.4932, allocations: 19.94 kB / 0.5142 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.4932, allocations: 0 / 0.5142 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.485e-06/0.4932, allocations: 3.984 kB / 0.5142 GB, free: 0.6445 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005541/0.4988, allocations: 3.494 MB / 0.5176 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.4988, allocations: 0 / 0.5176 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005684/0.4994, allocations: 135.8 kB / 0.5177 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008979/0.5003, allocations: 447 kB / 0.5182 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.81e-05/0.5004, allocations: 20 kB / 0.5182 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007886/0.5083, allocations: 8.357 MB / 0.5264 GB, free: 3.574 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.5083, allocations: 8.062 kB / 0.5264 GB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003356/0.5117, allocations: 2.265 MB / 0.5286 GB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006325/0.5123, allocations: 275.9 kB / 0.5288 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/0.5125, allocations: 35.88 kB / 0.5289 GB, free: 0.9297 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004559/0.5129, allocations: 47.95 kB / 0.5289 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002259/0.5132, allocations: 88.53 kB / 0.529 GB, free: 0.793 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.845e-05/0.5132, allocations: 24 kB / 0.529 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008383/0.5141, allocations: 0.5928 MB / 0.5296 GB, free: 188 kB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5141, allocations: 0 / 0.5296 GB, free: 188 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.1945/0.7086, allocations: 394.3 kB / 0.53 GB, free: 112.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (supplyL.inductor[2].i,supplyL.inductor[3].i,cDC1.v,cDC2.v) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003862/0.7125, allocations: 3.012 MB / 0.5329 GB, free: 112 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002608/0.7151, allocations: 1.822 MB / 0.5347 GB, free: 111.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.81e-06/0.7151, allocations: 6.594 kB / 0.5347 GB, free: 111.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.7167, allocations: 1.266 MB / 0.5359 GB, free: 111 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.7181, allocations: 269 kB / 0.5362 GB, free: 111 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/0.7249, allocations: 3.427 MB / 0.5395 GB, free: 110.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001888/0.7269, allocations: 1.751 MB / 0.5413 GB, free: 109.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008195/0.7277, allocations: 182.4 kB / 0.5414 GB, free: 109.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007515/0.7284, allocations: 0.6255 MB / 0.542 GB, free: 109.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.042e-06/0.7285, allocations: 0 / 0.542 GB, free: 109.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04855/0.777, allocations: 30.98 MB / 0.5723 GB, free: 104.9 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001443/0.7772, allocations: 181.6 kB / 0.5725 GB, free: 104.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.669/3.446, allocations: 4 kB / 0.5725 GB, free: 104.7 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat