Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier12pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier12pulseFFT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 181 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009419/0.0009419, allocations: 98.56 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002666/0.0002669, allocations: 4 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2315, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1134/0.345, allocations: 95.62 MB / 497.2 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.3453, allocations: 71.97 kB / 497.3 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8181/1.163, allocations: 167.3 MB / 0.649 GB, free: 8.855 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.125e-06/1.163, allocations: 0 / 0.649 GB, free: 8.855 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001166/1.165, allocations: 255.9 kB / 0.6493 GB, free: 8.605 MB / 426.7 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.4986/1.663, allocations: 16.32 MB / 0.6652 GB, free: 34.7 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.301e-05/1.663, allocations: 10.25 kB / 0.6652 GB, free: 34.7 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00664/1.67, allocations: 2.296 MB / 0.6674 GB, free: 34.51 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006566/1.677, allocations: 1.732 MB / 0.6691 GB, free: 33.52 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02468/1.701, allocations: 8.868 MB / 0.6778 GB, free: 32.44 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006031/1.702, allocations: 296 kB / 0.6781 GB, free: 32.43 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002606/1.705, allocations: 393.2 kB / 0.6784 GB, free: 32.43 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.052/1.757, allocations: 27.87 MB / 0.7057 GB, free: 30.86 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.863e-05/1.757, allocations: 7.516 kB / 0.7057 GB, free: 30.86 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009016/1.758, allocations: 172.1 kB / 0.7058 GB, free: 30.74 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001735/1.758, allocations: 203 kB / 0.706 GB, free: 30.71 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0366/1.794, allocations: 24.21 MB / 0.7297 GB, free: 18.93 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05508/1.85, allocations: 28.71 MB / 0.7577 GB, free: 6.918 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.317/2.167, allocations: 84.73 MB / 0.8405 GB, free: 102.2 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003605/2.167, allocations: 154.1 kB / 0.8406 GB, free: 102.1 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.04034/2.207, allocations: 29.09 MB / 0.869 GB, free: 101.3 MB / 490.8 MB Notification: Performance of pre-optimization done (n=5058): time 5.971e-06/2.207, allocations: 2.969 kB / 0.869 GB, free: 101.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=5065): time 11.61/13.82, allocations: 2.918 GB / 3.787 GB, free: 11.02 MB / 1.964 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007996/13.83, allocations: 7.356 MB / 3.795 GB, free: 3.895 MB / 1.964 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00625/13.83, allocations: 2.37 MB / 3.797 GB, free: 1.512 MB / 1.964 GB Notification: Performance of collectPreVariables (initialization): time 0.008626/13.84, allocations: 3.952 MB / 3.801 GB, free: 13.54 MB / 1.979 GB Notification: Performance of collectInitialEqns (initialization): time 0.002867/13.84, allocations: 1.74 MB / 3.802 GB, free: 11.79 MB / 1.979 GB Notification: Performance of collectInitialBindings (initialization): time 0.0337/13.88, allocations: 21.64 MB / 3.824 GB, free: 6.246 MB / 1.995 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007749/13.88, allocations: 1.516 MB / 3.825 GB, free: 4.73 MB / 1.995 GB Notification: Performance of setup shared object (initialization): time 0.008571/13.89, allocations: 3.503 MB / 3.828 GB, free: 1.219 MB / 1.995 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05831/13.95, allocations: 26.84 MB / 3.855 GB, free: 6.352 MB / 2.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4456/14.4, allocations: 58.44 MB / 3.912 GB, free: 1.596 GB / 2.057 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05838/14.46, allocations: 38.48 MB / 3.949 GB, free: 1.594 GB / 2.057 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.003333/14.46, allocations: 301.9 kB / 3.95 GB, free: 1.594 GB / 2.057 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.1547/14.61, allocations: 87.69 MB / 4.035 GB, free: 1.562 GB / 2.057 GB Notification: Performance of prepare postOptimizeDAE: time 0.00263/14.62, allocations: 489.7 kB / 4.036 GB, free: 1.562 GB / 2.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003426/14.62, allocations: 1.036 MB / 4.037 GB, free: 1.561 GB / 2.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007366/14.63, allocations: 3.021 MB / 4.04 GB, free: 1.558 GB / 2.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03862/14.67, allocations: 10.73 MB / 4.05 GB, free: 1.549 GB / 2.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02595/14.69, allocations: 26.01 MB / 4.076 GB, free: 1.525 GB / 2.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03555/14.73, allocations: 2.5 MB / 4.078 GB, free: 1.522 GB / 2.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01304/14.74, allocations: 3.602 MB / 4.081 GB, free: 1.519 GB / 2.057 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 () * Number of clocked 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.03988/14.78, allocations: 15.08 MB / 4.096 GB, free: 1.507 GB / 2.057 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008163/14.79, allocations: 2.35 MB / 4.098 GB, free: 1.506 GB / 2.057 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.335/22.12, allocations: 8.84 GB / 12.94 GB, free: 1.106 GB / 2.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/22.12, allocations: 24 kB / 12.94 GB, free: 1.106 GB / 2.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-05/22.12, allocations: 11.56 kB / 12.94 GB, free: 1.106 GB / 2.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.487e-05/22.12, allocations: 13.95 kB / 12.94 GB, free: 1.106 GB / 2.057 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.965/29.09, allocations: 8.865 GB / 21.8 GB, free: 0.6613 GB / 2.057 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/29.09, allocations: 2 kB / 21.8 GB, free: 0.6613 GB / 2.057 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/29.09, allocations: 299.9 kB / 21.8 GB, free: 0.6611 GB / 2.057 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002984/29.09, allocations: 1.384 MB / 21.8 GB, free: 0.6597 GB / 2.057 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004712/29.1, allocations: 0.7955 MB / 21.81 GB, free: 0.659 GB / 2.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01757/29.12, allocations: 23.65 MB / 21.83 GB, free: 0.6351 GB / 2.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/29.12, allocations: 7.109 kB / 21.83 GB, free: 0.635 GB / 2.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.152/36.27, allocations: 8.892 GB / 30.72 GB, free: 161.1 MB / 2.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01862/36.29, allocations: 6.338 MB / 30.73 GB, free: 155.6 MB / 2.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004018/36.29, allocations: 0.6557 MB / 30.73 GB, free: 155 MB / 2.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007106/36.3, allocations: 0.7211 MB / 30.73 GB, free: 154.3 MB / 2.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002935/36.3, allocations: 0.6521 MB / 30.73 GB, free: 153.6 MB / 2.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00286/36.3, allocations: 1.242 MB / 30.73 GB, free: 152.4 MB / 2.057 GB Notification: Performance of sorting global known variables: time 0.002479/36.31, allocations: 1.851 MB / 30.73 GB, free: 150.5 MB / 2.057 GB Notification: Performance of sort global known variables: time 2.11e-07/36.31, allocations: 0 / 30.73 GB, free: 150.5 MB / 2.057 GB Notification: Performance of remove unused functions: time 0.04621/36.35, allocations: 9.993 MB / 30.74 GB, free: 140.5 MB / 2.057 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) * Number of clocked states: 0 () * 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 7.821/44.17, allocations: 8.899 GB / 39.64 GB, free: 1.328 GB / 2.058 GB Notification: Performance of simCode: created initialization part: time 0.1158/44.29, allocations: 84.26 MB / 39.72 GB, free: 1.247 GB / 2.058 GB Notification: Performance of simCode: created event and clocks part: time 1.436e-05/44.29, allocations: 0 / 39.72 GB, free: 1.247 GB / 2.058 GB Notification: Performance of simCode: created simulation system equations: time 63.82/108.1, allocations: 28.62 GB / 68.34 GB, free: 1.847 GB / 2.839 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01237/108.1, allocations: 1.485 MB / 68.34 GB, free: 1.846 GB / 2.839 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.582/108.7, allocations: 1.148 GB / 69.49 GB, free: 0.6701 GB / 2.839 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01814/108.7, allocations: 10.28 MB / 69.5 GB, free: 0.66 GB / 2.839 GB Notification: Performance of simCode: alias equations: time 0.01266/108.7, allocations: 4.364 MB / 69.5 GB, free: 0.6558 GB / 2.839 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01584/108.8, allocations: 8.021 MB / 69.51 GB, free: 0.6479 GB / 2.839 GB Notification: Performance of SimCode: time 7.874e-06/108.8, allocations: 6.516 kB / 69.51 GB, free: 0.6479 GB / 2.839 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5553/109.3, allocations: 448.8 MB / 69.95 GB, free: 217.1 MB / 2.839 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/109.3, allocations: 260.5 kB / 69.95 GB, free: 216.7 MB / 2.839 GB Notification: Performance of buildModelFMU: Generate platform static: time 49.86/159.2, allocations: 4 kB / 69.95 GB, free: 216.7 MB / 2.839 GB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier12pulseFFT_fmu --startTime=0 --stopTime=0.25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier12pulseFFT.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat does not exist to compare? outputFormat=mat