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.0009611/0.0009613, allocations: 181 kB / 17.01 MB, free: 5.121 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.435/1.435, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008684/0.0008684, allocations: 96.09 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.000273, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2517, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1117/0.3635, allocations: 94.84 MB / 470.7 MB, free: 1.785 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.3637, allocations: 79.95 kB / 470.8 MB, free: 1.707 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6917/1.055, allocations: 166.9 MB / 0.6228 GB, free: 6.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.587e-06/1.056, allocations: 0 / 0.6228 GB, free: 6.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0009583/1.056, allocations: 267.7 kB / 0.623 GB, free: 6.059 MB / 394.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.03371/1.09, allocations: 16.27 MB / 0.6389 GB, free: 5.656 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/1.09, allocations: 12.03 kB / 0.6389 GB, free: 5.645 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007696/1.098, allocations: 2.302 MB / 0.6412 GB, free: 3.328 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006737/1.105, allocations: 1.73 MB / 0.6429 GB, free: 1.574 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3539/1.459, allocations: 8.843 MB / 0.6515 GB, free: 39.74 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002447/1.459, allocations: 294.5 kB / 0.6518 GB, free: 39.73 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002286/1.461, allocations: 387.4 kB / 0.6521 GB, free: 39.73 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04408/1.505, allocations: 27.9 MB / 0.6794 GB, free: 38.81 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/1.506, allocations: 5.031 kB / 0.6794 GB, free: 38.81 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00153/1.507, allocations: 166.2 kB / 0.6795 GB, free: 38.81 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002708/1.507, allocations: 208.9 kB / 0.6797 GB, free: 38.8 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03325/1.541, allocations: 24.24 MB / 0.7034 GB, free: 27.98 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05448/1.595, allocations: 28.73 MB / 0.7315 GB, free: 16.1 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2877/1.883, allocations: 85.18 MB / 0.8147 GB, free: 71.54 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003945/1.883, allocations: 152.5 kB / 0.8148 GB, free: 71.44 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03415/1.918, allocations: 29.09 MB / 0.8432 GB, free: 70.62 MB / 458.8 MB Notification: Performance of pre-optimization done (n=5058): time 5.951e-06/1.918, allocations: 0 / 0.8432 GB, free: 70.62 MB / 458.8 MB Notification: Performance of matching and sorting (n=5065): time 11.13/13.05, allocations: 2.918 GB / 3.761 GB, free: 15.12 MB / 1.964 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005081/13.05, allocations: 7.36 MB / 3.768 GB, free: 8.004 MB / 1.964 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004851/13.06, allocations: 2.375 MB / 3.771 GB, free: 5.613 MB / 1.964 GB Notification: Performance of collectPreVariables (initialization): time 0.006501/13.06, allocations: 3.959 MB / 3.775 GB, free: 1.641 MB / 1.964 GB Notification: Performance of collectInitialEqns (initialization): time 0.002511/13.06, allocations: 1.733 MB / 3.776 GB, free: 15.89 MB / 1.979 GB Notification: Performance of collectInitialBindings (initialization): time 0.03204/13.1, allocations: 21.64 MB / 3.797 GB, free: 10.35 MB / 1.995 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0074/13.1, allocations: 1.512 MB / 3.799 GB, free: 8.836 MB / 1.995 GB Notification: Performance of setup shared object (initialization): time 0.007748/13.11, allocations: 3.499 MB / 3.802 GB, free: 5.324 MB / 1.995 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4116/13.52, allocations: 26.85 MB / 3.829 GB, free: 1.6 GB / 1.995 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0752/13.6, allocations: 58.44 MB / 3.886 GB, free: 1.562 GB / 1.995 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06105/13.66, allocations: 38.48 MB / 3.923 GB, free: 1.55 GB / 1.995 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0026/13.66, allocations: 303.5 kB / 3.923 GB, free: 1.55 GB / 1.995 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.1608/13.82, allocations: 87.7 MB / 4.009 GB, free: 1.477 GB / 1.995 GB Notification: Performance of prepare postOptimizeDAE: time 0.002668/13.83, allocations: 485.7 kB / 4.01 GB, free: 1.477 GB / 1.995 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002954/13.83, allocations: 1.031 MB / 4.011 GB, free: 1.475 GB / 1.995 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007237/13.84, allocations: 3.024 MB / 4.014 GB, free: 1.473 GB / 1.995 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04033/13.88, allocations: 10.72 MB / 4.024 GB, free: 1.463 GB / 1.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02342/13.9, allocations: 26.01 MB / 4.049 GB, free: 1.438 GB / 1.995 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03922/13.94, allocations: 2.488 MB / 4.052 GB, free: 1.436 GB / 1.995 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01486/13.95, allocations: 3.602 MB / 4.055 GB, free: 1.432 GB / 1.995 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.04049/13.99, allocations: 15.08 MB / 4.07 GB, free: 1.418 GB / 1.995 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008101/14, allocations: 2.348 MB / 4.072 GB, free: 1.417 GB / 1.995 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.466/21.47, allocations: 8.84 GB / 12.91 GB, free: 0.7757 GB / 1.995 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.3e-05/21.47, allocations: 24 kB / 12.91 GB, free: 0.7757 GB / 1.995 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/21.47, allocations: 8 kB / 12.91 GB, free: 0.7757 GB / 1.995 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.507e-05/21.47, allocations: 15.94 kB / 12.91 GB, free: 0.7757 GB / 1.995 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.329/28.8, allocations: 8.865 GB / 21.78 GB, free: 98.74 MB / 1.995 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/28.8, allocations: 3.75 kB / 21.78 GB, free: 98.74 MB / 1.995 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001335/28.8, allocations: 299.2 kB / 21.78 GB, free: 98.46 MB / 1.995 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003215/28.8, allocations: 1.379 MB / 21.78 GB, free: 97.09 MB / 1.995 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00717/28.81, allocations: 0.793 MB / 21.78 GB, free: 96.3 MB / 1.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01893/28.83, allocations: 23.66 MB / 21.8 GB, free: 71.82 MB / 1.995 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/28.83, allocations: 2 kB / 21.8 GB, free: 71.82 MB / 1.995 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.032/36.86, allocations: 8.892 GB / 30.69 GB, free: 0.998 GB / 1.995 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02183/36.88, allocations: 6.349 MB / 30.7 GB, free: 0.9927 GB / 1.995 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00635/36.89, allocations: 0.6484 MB / 30.7 GB, free: 0.992 GB / 1.995 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01239/36.9, allocations: 0.7181 MB / 30.7 GB, free: 0.9913 GB / 1.995 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004994/36.91, allocations: 0.6496 MB / 30.7 GB, free: 0.9907 GB / 1.995 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005827/36.91, allocations: 1.242 MB / 30.7 GB, free: 0.9895 GB / 1.995 GB Notification: Performance of sorting global known variables: time 0.002655/36.91, allocations: 1.857 MB / 30.71 GB, free: 0.9877 GB / 1.995 GB Notification: Performance of sort global known variables: time 2.31e-07/36.91, allocations: 1.094 kB / 30.71 GB, free: 0.9877 GB / 1.995 GB Notification: Performance of remove unused functions: time 0.05578/36.97, allocations: 9.995 MB / 30.72 GB, free: 0.9779 GB / 1.995 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.614/44.58, allocations: 8.899 GB / 39.61 GB, free: 256.9 MB / 1.995 GB Notification: Performance of simCode: created initialization part: time 0.1253/44.71, allocations: 84.26 MB / 39.7 GB, free: 174 MB / 1.995 GB Notification: Performance of simCode: created event and clocks part: time 1.614e-05/44.71, allocations: 4 kB / 39.7 GB, free: 174 MB / 1.995 GB Notification: Performance of simCode: created simulation system equations: time 53.17/97.88, allocations: 28.62 GB / 68.32 GB, free: 0.8699 GB / 2.276 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0161/97.89, allocations: 1.484 MB / 68.32 GB, free: 0.8685 GB / 2.276 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.049/98.94, allocations: 1.148 GB / 69.47 GB, free: 1.544 GB / 2.276 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01133/98.96, allocations: 10.29 MB / 69.48 GB, free: 1.543 GB / 2.276 GB Notification: Performance of simCode: alias equations: time 0.01294/98.97, allocations: 4.351 MB / 69.48 GB, free: 1.543 GB / 2.276 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01892/98.99, allocations: 8.022 MB / 69.49 GB, free: 1.541 GB / 2.276 GB Notification: Performance of SimCode: time 1.062e-06/98.99, allocations: 0 / 69.49 GB, free: 1.541 GB / 2.276 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5697/99.56, allocations: 448.9 MB / 69.93 GB, free: 1.12 GB / 2.276 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002583/99.56, allocations: 257.4 kB / 69.93 GB, free: 1.12 GB / 2.276 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.15/119.7, allocations: 4 kB / 69.93 GB, free: 1.12 GB / 2.276 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