Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.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.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_Rectifier6pulseFFT",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.001068/0.001068, allocations: 172.9 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.331/1.331, 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.0008227/0.0008227, allocations: 90.64 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.678e-05/2.687e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08324/0.08329, allocations: 47.58 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.314/0.3973, allocations: 93.13 MB / 463.2 MB, free: 288 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/0.3975, allocations: 74.19 kB / 463.3 MB, free: 256 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8761/1.274, allocations: 114.2 MB / 0.564 GB, free: 81.05 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.255e-06/1.274, allocations: 3.375 kB / 0.564 GB, free: 81.05 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0004428/1.274, allocations: 212.1 kB / 0.5642 GB, free: 81.05 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: 5386 * Number of variables: 5386 Notification: Performance of Generate backend data structure: time 0.02419/1.298, allocations: 14.26 MB / 0.5781 GB, free: 76.48 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/1.298, allocations: 13.59 kB / 0.5781 GB, free: 76.48 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004359/1.303, allocations: 2.055 MB / 0.5801 GB, free: 76.31 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004457/1.307, allocations: 1.484 MB / 0.5816 GB, free: 75.42 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01818/1.326, allocations: 7.635 MB / 0.589 GB, free: 73.32 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/1.326, allocations: 163.1 kB / 0.5892 GB, free: 73.24 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001447/1.327, allocations: 217.8 kB / 0.5894 GB, free: 73.17 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03616/1.363, allocations: 25.23 MB / 0.614 GB, free: 59.02 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.358e-05/1.363, allocations: 0 / 0.614 GB, free: 59.02 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006876/1.364, allocations: 95.28 kB / 0.6141 GB, free: 58.93 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001116/1.364, allocations: 115.3 kB / 0.6142 GB, free: 58.82 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02995/1.394, allocations: 21.96 MB / 0.6357 GB, free: 38.4 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04157/1.436, allocations: 21.19 MB / 0.6564 GB, free: 19.64 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3328/1.769, allocations: 80.08 MB / 0.7346 GB, free: 61.23 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.06233/1.831, allocations: 78.46 MB / 0.8112 GB, free: 15.75 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003307/1.831, allocations: 134.6 kB / 0.8113 GB, free: 15.66 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.039/1.87, allocations: 28.16 MB / 0.8388 GB, free: 2.883 MB / 442.8 MB Notification: Performance of pre-optimization done (n=4937): time 4.819e-06/1.871, allocations: 0 / 0.8388 GB, free: 2.883 MB / 442.8 MB Notification: Performance of matching and sorting (n=4941): time 13.75/15.62, allocations: 2.185 GB / 3.024 GB, free: 15.69 MB / 1.792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00596/15.63, allocations: 7.19 MB / 3.031 GB, free: 8.773 MB / 1.792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003132/15.63, allocations: 1.337 MB / 3.032 GB, free: 7.426 MB / 1.792 GB Notification: Performance of collectPreVariables (initialization): time 0.005975/15.64, allocations: 3.928 MB / 3.036 GB, free: 3.48 MB / 1.792 GB Notification: Performance of collectInitialEqns (initialization): time 0.001601/15.64, allocations: 1.034 MB / 3.037 GB, free: 2.547 MB / 1.792 GB Notification: Performance of collectInitialBindings (initialization): time 0.03581/15.68, allocations: 21.24 MB / 3.058 GB, free: 13.44 MB / 1.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007739/15.68, allocations: 1.488 MB / 3.059 GB, free: 11.95 MB / 1.823 GB Notification: Performance of setup shared object (initialization): time 0.008724/15.69, allocations: 3.458 MB / 3.063 GB, free: 8.488 MB / 1.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.06006/15.75, allocations: 25.65 MB / 3.088 GB, free: 14.82 MB / 1.854 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.09743/15.85, allocations: 57.05 MB / 3.143 GB, free: 8.254 MB / 1.917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07463/15.93, allocations: 37.46 MB / 3.18 GB, free: 3.188 MB / 1.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002643/15.93, allocations: 300 kB / 3.18 GB, free: 2.895 MB / 1.948 GB Notification: Performance of matching and sorting (n=9771) (initialization): time 0.2058/16.13, allocations: 84.45 MB / 3.263 GB, free: 14.39 MB / 2.042 GB Notification: Performance of prepare postOptimizeDAE: time 0.004721/16.14, allocations: 481.7 kB / 3.263 GB, free: 13.91 MB / 2.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005324/16.14, allocations: 1.035 MB / 3.264 GB, free: 12.88 MB / 2.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009855/16.15, allocations: 2.31 MB / 3.266 GB, free: 10.56 MB / 2.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.05336/16.21, allocations: 10.54 MB / 3.277 GB, free: 15.99 MB / 2.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02038/16.23, allocations: 12.61 MB / 3.289 GB, free: 2.875 MB / 2.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04062/16.27, allocations: 2.426 MB / 3.291 GB, free: 460 kB / 2.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01523/16.28, allocations: 3.563 MB / 3.295 GB, free: 12.88 MB / 2.073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4821 * Number of states: 0 () * Number of discrete variables: 18 ($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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9716): * Single equations (assignments): 9711 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.03612/16.32, allocations: 10.98 MB / 3.306 GB, free: 1.844 MB / 2.073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01414/16.33, allocations: 2.223 MB / 3.308 GB, free: 15.6 MB / 2.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.951/24.29, allocations: 8.837 GB / 12.15 GB, free: 281.8 MB / 2.511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/24.29, allocations: 16 kB / 12.15 GB, free: 281.7 MB / 2.511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/24.29, allocations: 13.61 kB / 12.15 GB, free: 281.7 MB / 2.511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.378e-05/24.29, allocations: 7.766 kB / 12.15 GB, free: 281.7 MB / 2.511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.682/31.97, allocations: 8.86 GB / 21.01 GB, free: 80.31 MB / 2.511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.822e-05/31.97, allocations: 2.75 kB / 21.01 GB, free: 80.31 MB / 2.511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008377/31.97, allocations: 167 kB / 21.01 GB, free: 80.16 MB / 2.511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001665/31.97, allocations: 0.6912 MB / 21.01 GB, free: 79.48 MB / 2.511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006091/31.98, allocations: 0.7695 MB / 21.01 GB, free: 78.71 MB / 2.511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009425/31.99, allocations: 10.37 MB / 21.02 GB, free: 68.02 MB / 2.511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/31.99, allocations: 0 / 21.02 GB, free: 68.02 MB / 2.511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.749/40.74, allocations: 8.889 GB / 29.91 GB, free: 2.01 GB / 2.511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02637/40.76, allocations: 6.052 MB / 29.91 GB, free: 2.005 GB / 2.511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008125/40.77, allocations: 0.6206 MB / 29.91 GB, free: 2.005 GB / 2.511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01498/40.78, allocations: 0.6665 MB / 29.91 GB, free: 2.004 GB / 2.511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006987/40.79, allocations: 0.5619 MB / 29.91 GB, free: 2.004 GB / 2.511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.007321/40.8, allocations: 1.211 MB / 29.92 GB, free: 2.003 GB / 2.511 GB Notification: Performance of sorting global known variables: time 0.002737/40.8, allocations: 1.048 MB / 29.92 GB, free: 2.002 GB / 2.511 GB Notification: Performance of sort global known variables: time 9.52e-07/40.8, allocations: 0 / 29.92 GB, free: 2.002 GB / 2.511 GB Notification: Performance of remove unused functions: time 0.06128/40.86, allocations: 9.548 MB / 29.93 GB, free: 1.992 GB / 2.511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i) * Number of discrete variables: 14 (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,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 (83): * Single equations (assignments): 77 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 8.317/49.18, allocations: 8.896 GB / 38.82 GB, free: 1.769 GB / 2.511 GB Notification: Performance of simCode: created initialization part: time 0.1241/49.3, allocations: 80.92 MB / 38.9 GB, free: 1.691 GB / 2.511 GB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/49.3, allocations: 0.7031 kB / 38.9 GB, free: 1.691 GB / 2.511 GB Notification: Performance of simCode: created simulation system equations: time 59.98/109.3, allocations: 28.61 GB / 67.51 GB, free: 2.649 GB / 3.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0141/109.3, allocations: 1.064 MB / 67.51 GB, free: 2.649 GB / 3.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1586/109.5, allocations: 55.8 MB / 67.56 GB, free: 2.645 GB / 3.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02002/109.5, allocations: 9.129 MB / 67.57 GB, free: 2.644 GB / 3.089 GB Notification: Performance of simCode: alias equations: time 0.0112/109.5, allocations: 4.08 MB / 67.58 GB, free: 2.643 GB / 3.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0191/109.5, allocations: 7.048 MB / 67.58 GB, free: 2.643 GB / 3.089 GB Notification: Performance of SimCode: time 2.635e-06/109.5, allocations: 2.625 kB / 67.58 GB, free: 2.643 GB / 3.089 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6109/110.1, allocations: 412.1 MB / 67.99 GB, free: 2.272 GB / 3.089 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/110.1, allocations: 221.5 kB / 67.99 GB, free: 2.272 GB / 3.089 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.07/133.2, allocations: 0 / 67.99 GB, free: 2.272 GB / 3.089 GB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_Rectifier6pulseFFT_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_Rectifier6pulseFFT.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat does not exist to compare? outputFormat=mat