Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.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.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_Rectifier12pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_Rectifier12pulseFFT",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.00115/0.00115, allocations: 172.7 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.335/1.335, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007803/0.0007803, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.002e-05/3.008e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08465/0.0847, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3225/0.4072, allocations: 94.74 MB / 464.8 MB, free: 14.67 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.4075, allocations: 71.41 kB / 464.9 MB, free: 14.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9992/1.407, allocations: 167.2 MB / 0.6173 GB, free: 62.37 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.224e-06/1.407, allocations: 2.812 kB / 0.6173 GB, free: 62.37 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0005258/1.407, allocations: 271.5 kB / 0.6176 GB, free: 62.11 MB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5853 * Number of variables: 5853 Notification: Performance of Generate backend data structure: time 0.02937/1.437, allocations: 15.82 MB / 0.633 GB, free: 46.21 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.332e-05/1.437, allocations: 8.031 kB / 0.633 GB, free: 46.2 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006131/1.443, allocations: 2.294 MB / 0.6353 GB, free: 43.89 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006061/1.449, allocations: 1.734 MB / 0.637 GB, free: 42.14 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0228/1.472, allocations: 8.808 MB / 0.6456 GB, free: 33.54 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004072/1.472, allocations: 300.1 kB / 0.6459 GB, free: 33.26 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002655/1.475, allocations: 387.2 kB / 0.6462 GB, free: 32.88 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05221/1.527, allocations: 27.75 MB / 0.6733 GB, free: 4.973 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001993/1.527, allocations: 0 / 0.6733 GB, free: 4.973 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002463/1.53, allocations: 168 kB / 0.6735 GB, free: 4.809 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002248/1.53, allocations: 208 kB / 0.6737 GB, free: 4.602 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3368/1.867, allocations: 24.04 MB / 0.6972 GB, free: 70.73 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0555/1.923, allocations: 28.72 MB / 0.7252 GB, free: 67 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05484/1.977, allocations: 83.49 MB / 0.8067 GB, free: 9.797 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.369/2.347, allocations: 80.06 MB / 0.8849 GB, free: 85.9 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004873/2.347, allocations: 148.6 kB / 0.8851 GB, free: 85.81 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0467/2.394, allocations: 28.97 MB / 0.9134 GB, free: 84.86 MB / 458.8 MB Notification: Performance of pre-optimization done (n=5058): time 6.692e-06/2.394, allocations: 0 / 0.9134 GB, free: 84.86 MB / 458.8 MB Notification: Performance of matching and sorting (n=5065): time 13.09/15.48, allocations: 2.189 GB / 3.102 GB, free: 6.43 MB / 1.901 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005951/15.49, allocations: 7.356 MB / 3.109 GB, free: 15.31 MB / 1.917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004968/15.49, allocations: 2.347 MB / 3.112 GB, free: 12.94 MB / 1.917 GB Notification: Performance of collectPreVariables (initialization): time 0.006709/15.5, allocations: 3.952 MB / 3.115 GB, free: 8.973 MB / 1.917 GB Notification: Performance of collectInitialEqns (initialization): time 0.002723/15.5, allocations: 1.743 MB / 3.117 GB, free: 7.215 MB / 1.917 GB Notification: Performance of collectInitialBindings (initialization): time 0.0328/15.54, allocations: 21.64 MB / 3.138 GB, free: 1.676 MB / 1.932 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00895/15.54, allocations: 1.515 MB / 3.14 GB, free: 168 kB / 1.932 GB Notification: Performance of setup shared object (initialization): time 0.009634/15.55, allocations: 3.505 MB / 3.143 GB, free: 12.65 MB / 1.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.06723/15.62, allocations: 26.27 MB / 3.169 GB, free: 2.355 MB / 1.964 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1014/15.72, allocations: 57.87 MB / 3.225 GB, free: 11.07 MB / 2.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07515/15.8, allocations: 38.21 MB / 3.263 GB, free: 5.465 MB / 2.073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002345/15.8, allocations: 307.7 kB / 3.263 GB, free: 5.168 MB / 2.073 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.2128/16.01, allocations: 86.55 MB / 3.348 GB, free: 14.51 MB / 2.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.00216/16.02, allocations: 485.7 kB / 3.348 GB, free: 14.03 MB / 2.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002641/16.02, allocations: 1.035 MB / 3.349 GB, free: 12.99 MB / 2.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008932/16.03, allocations: 3.014 MB / 3.352 GB, free: 9.953 MB / 2.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.5747/16.6, allocations: 10.72 MB / 3.362 GB, free: 1.721 GB / 2.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03563/16.64, allocations: 25.53 MB / 3.387 GB, free: 1.708 GB / 2.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.05007/16.69, allocations: 2.495 MB / 3.39 GB, free: 1.708 GB / 2.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.02032/16.71, allocations: 3.601 MB / 3.393 GB, free: 1.708 GB / 2.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4832 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.realFFT.firstTrigger,realFFT.firstTrigger,$PRE.realFFT.info,realFFT.info,$PRE.realFFT.buf[4000],realFFT.buf[4000],$PRE.realFFT.iTick,realFFT.iTick,$whenCondition3,$whenCondition1,$whenCondition2,realFFT.sampleTrigger,diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off,diode3.idealDiode[1].off,diode3.idealDiode[2].off,diode3.idealDiode[3].off,diode4.idealDiode[1].off,diode4.idealDiode[2].off,diode4.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9809): * Single equations (assignments): 9798 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(1,100.0%) 9,(1,100.0%) 9,(2,100.0%) 29} * Non-linear torn systems: 6 {2 7,2 7,2 7,2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.03603/16.74, allocations: 11.04 MB / 3.404 GB, free: 1.708 GB / 2.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01037/16.75, allocations: 2.361 MB / 3.406 GB, free: 1.708 GB / 2.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.882/24.64, allocations: 8.839 GB / 12.25 GB, free: 208.2 MB / 2.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.217e-05/24.64, allocations: 24 kB / 12.25 GB, free: 208.2 MB / 2.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/24.64, allocations: 8 kB / 12.25 GB, free: 208.2 MB / 2.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.704e-05/24.64, allocations: 11.95 kB / 12.25 GB, free: 208.2 MB / 2.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.544/33.18, allocations: 8.864 GB / 21.11 GB, free: 416.4 MB / 2.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.366e-05/33.18, allocations: 0 / 21.11 GB, free: 416.4 MB / 2.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001429/33.18, allocations: 300.8 kB / 21.11 GB, free: 416.1 MB / 2.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003264/33.19, allocations: 1.376 MB / 21.11 GB, free: 414.8 MB / 2.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006704/33.19, allocations: 0.7991 MB / 21.11 GB, free: 414 MB / 2.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01941/33.21, allocations: 23.17 MB / 21.13 GB, free: 390 MB / 2.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/33.21, allocations: 0 / 21.13 GB, free: 390 MB / 2.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.434/41.65, allocations: 8.891 GB / 30.03 GB, free: 0.5444 GB / 2.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02636/41.67, allocations: 6.337 MB / 30.03 GB, free: 0.539 GB / 2.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007114/41.68, allocations: 0.6484 MB / 30.03 GB, free: 0.5384 GB / 2.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01309/41.69, allocations: 0.7203 MB / 30.03 GB, free: 0.5377 GB / 2.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00645/41.7, allocations: 0.6565 MB / 30.03 GB, free: 0.537 GB / 2.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006584/41.71, allocations: 1.247 MB / 30.04 GB, free: 0.5358 GB / 2.167 GB Notification: Performance of sorting global known variables: time 0.003145/41.71, allocations: 1.821 MB / 30.04 GB, free: 0.534 GB / 2.167 GB Notification: Performance of sort global known variables: time 6.71e-07/41.71, allocations: 0 / 30.04 GB, free: 0.534 GB / 2.167 GB Notification: Performance of remove unused functions: time 0.05385/41.76, allocations: 9.995 MB / 30.05 GB, free: 0.5243 GB / 2.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i,transformer2.l2sigma.inductor[1].i,transformer2.l2sigma.inductor[2].i,transformer2.l2sigma.inductor[3].i) * Number of discrete variables: 20 (realFFT.sampleTrigger,$whenCondition3,$whenCondition1,$whenCondition2,diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off,diode3.idealDiode[1].off,diode3.idealDiode[2].off,diode3.idealDiode[3].off,diode4.idealDiode[1].off,diode4.idealDiode[2].off,diode4.idealDiode[3].off,realFFT.firstTrigger,realFFT.info,realFFT.buf[4000],realFFT.iTick) * Number of discrete states: 5 (realFFT.info,$whenCondition2,realFFT.buf[4000],realFFT.iTick,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 29,(1,100.0%) 9,(1,100.0%) 9,(1,100.0%) 9} * Non-linear torn systems: 6 {2 7,2 7,2 7,2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 8.649/50.41, allocations: 8.898 GB / 38.94 GB, free: 0.6797 GB / 2.167 GB Notification: Performance of simCode: created initialization part: time 0.1211/50.53, allocations: 83.37 MB / 39.03 GB, free: 0.599 GB / 2.167 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/50.53, allocations: 0 / 39.03 GB, free: 0.599 GB / 2.167 GB Notification: Performance of simCode: created simulation system equations: time 67.85/118.4, allocations: 28.61 GB / 67.64 GB, free: 0.6778 GB / 2.636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01357/118.4, allocations: 1.485 MB / 67.64 GB, free: 0.6764 GB / 2.636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1541/118.5, allocations: 59.61 MB / 67.7 GB, free: 0.6186 GB / 2.636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02046/118.6, allocations: 10.28 MB / 67.71 GB, free: 0.6086 GB / 2.636 GB Notification: Performance of simCode: alias equations: time 0.01302/118.6, allocations: 4.354 MB / 67.71 GB, free: 0.6044 GB / 2.636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01781/118.6, allocations: 8.025 MB / 67.72 GB, free: 0.5966 GB / 2.636 GB Notification: Performance of SimCode: time 8.41e-07/118.6, allocations: 9.828 kB / 67.72 GB, free: 0.5966 GB / 2.636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5959/119.2, allocations: 453 MB / 68.16 GB, free: 159.1 MB / 2.636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001863/119.2, allocations: 226.8 kB / 68.16 GB, free: 158.9 MB / 2.636 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.53/143.7, allocations: 0 / 68.16 GB, free: 158.9 MB / 2.636 GB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_Rectifier12pulseFFT_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_Rectifier12pulseFFT.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat does not exist to compare? outputFormat=mat