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.001287/0.001287, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 221.5 MB / 230.3 MB, free: 7.508 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000898/0.0008981, allocations: 94.03 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.315e-05/2.323e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.327/0.4348, allocations: 94.89 MB / 482.4 MB, free: 15.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.4351, allocations: 75.95 kB / 482.5 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.208/1.643, allocations: 165.9 MB / 0.6332 GB, free: 69.66 MB / 426.8 MB Notification: Performance of FrontEnd: time 2.044e-06/1.643, allocations: 0 / 0.6332 GB, free: 69.66 MB / 426.8 MB Notification: Performance of Transformations before backend: time 0.0006409/1.644, allocations: 259.8 kB / 0.6335 GB, free: 69.41 MB / 426.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.03489/1.679, allocations: 15.87 MB / 0.649 GB, free: 53.46 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/1.679, allocations: 8.031 kB / 0.649 GB, free: 53.45 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00647/1.685, allocations: 1.736 MB / 0.6507 GB, free: 51.7 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03093/1.716, allocations: 8.81 MB / 0.6593 GB, free: 43.01 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002942/1.717, allocations: 128 kB / 0.6594 GB, free: 42.89 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002501/1.719, allocations: 231.9 kB / 0.6596 GB, free: 42.66 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04195/1.761, allocations: 23.75 MB / 0.6828 GB, free: 18.9 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07013/1.831, allocations: 27.15 MB / 0.7093 GB, free: 7.668 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001486/1.832, allocations: 4 kB / 0.7093 GB, free: 7.664 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002106/1.834, allocations: 4 kB / 0.7093 GB, free: 7.66 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000265/1.834, allocations: 215.3 kB / 0.7095 GB, free: 7.449 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.337/2.171, allocations: 25.85 MB / 0.7348 GB, free: 80.93 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06505/2.236, allocations: 83.38 MB / 0.8162 GB, free: 20.13 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.07879/2.315, allocations: 79.74 MB / 0.8941 GB, free: 3.465 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005187/2.316, allocations: 145.2 kB / 0.8942 GB, free: 3.316 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3548/2.67, allocations: 28.88 MB / 0.9224 GB, free: 132.2 MB / 490.8 MB Notification: Performance of pre-optimization done (n=5058): time 6.161e-06/2.67, allocations: 0.8438 kB / 0.9224 GB, free: 132.2 MB / 490.8 MB Notification: Performance of matching and sorting (n=5065): time 13.1/15.77, allocations: 2.176 GB / 3.098 GB, free: 11.73 MB / 1.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005298/15.78, allocations: 7.355 MB / 3.106 GB, free: 4.605 MB / 1.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003655/15.78, allocations: 1.824 MB / 3.107 GB, free: 2.75 MB / 1.823 GB Notification: Performance of collectPreVariables (initialization): time 0.005252/15.79, allocations: 3.181 MB / 3.11 GB, free: 15.55 MB / 1.839 GB Notification: Performance of collectInitialEqns (initialization): time 0.00203/15.79, allocations: 1.75 MB / 3.112 GB, free: 13.79 MB / 1.839 GB Notification: Performance of collectInitialBindings (initialization): time 0.02848/15.82, allocations: 21.24 MB / 3.133 GB, free: 8.258 MB / 1.854 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006681/15.82, allocations: 0.7656 kB / 3.133 GB, free: 8.258 MB / 1.854 GB Notification: Performance of setup shared object (initialization): time 0.008596/15.83, allocations: 3.499 MB / 3.136 GB, free: 4.746 MB / 1.854 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0591/15.89, allocations: 24.76 MB / 3.16 GB, free: 11.97 MB / 1.886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08932/15.98, allocations: 55.91 MB / 3.215 GB, free: 6.652 MB / 1.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06847/16.05, allocations: 36.37 MB / 3.251 GB, free: 2.863 MB / 1.979 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002166/16.05, allocations: 304 kB / 3.251 GB, free: 2.566 MB / 1.979 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.1783/16.23, allocations: 77.46 MB / 3.326 GB, free: 5.027 MB / 2.057 GB Notification: Performance of prepare postOptimizeDAE: time 0.003705/16.23, allocations: 492.1 kB / 3.327 GB, free: 4.543 MB / 2.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004525/16.24, allocations: 1.035 MB / 3.328 GB, free: 3.512 MB / 2.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009099/16.25, allocations: 2.999 MB / 3.331 GB, free: 0.4922 MB / 2.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04399/16.29, allocations: 10.72 MB / 3.341 GB, free: 5.75 MB / 2.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02966/16.32, allocations: 24.68 MB / 3.365 GB, free: 11.96 MB / 2.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03965/16.36, allocations: 0.9726 MB / 3.366 GB, free: 10.99 MB / 2.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01426/16.38, allocations: 3.6 MB / 3.37 GB, free: 7.395 MB / 2.104 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.03263/16.41, allocations: 9.487 MB / 3.379 GB, free: 13.85 MB / 2.12 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.828/17.24, allocations: 79.79 MB / 3.457 GB, free: 13.95 MB / 2.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01004/17.25, allocations: 2.308 MB / 3.459 GB, free: 11.62 MB / 2.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.7792/18.03, allocations: 78.11 MB / 3.536 GB, free: 13.42 MB / 2.276 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.119e-05/18.03, allocations: 24 kB / 3.536 GB, free: 13.39 MB / 2.276 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.842e-05/18.03, allocations: 11.62 kB / 3.536 GB, free: 13.39 MB / 2.276 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.062e-05/18.03, allocations: 15.95 kB / 3.536 GB, free: 13.37 MB / 2.276 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8663/18.89, allocations: 101.1 MB / 3.634 GB, free: 8.16 MB / 2.37 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-05/18.89, allocations: 0 / 3.634 GB, free: 8.16 MB / 2.37 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/18.89, allocations: 307.4 kB / 3.635 GB, free: 7.863 MB / 2.37 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003936/18.9, allocations: 1.35 MB / 3.636 GB, free: 6.488 MB / 2.37 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006687/18.9, allocations: 0.7617 MB / 3.637 GB, free: 5.727 MB / 2.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02591/18.93, allocations: 22.38 MB / 3.659 GB, free: 14.25 MB / 2.401 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/18.93, allocations: 7.891 kB / 3.659 GB, free: 14.24 MB / 2.401 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.408/20.34, allocations: 130.6 MB / 3.786 GB, free: 2.008 GB / 2.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02136/20.36, allocations: 6.286 MB / 3.792 GB, free: 2.008 GB / 2.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007118/20.37, allocations: 0.6059 MB / 3.793 GB, free: 2.008 GB / 2.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009735/20.38, allocations: 0.6793 MB / 3.794 GB, free: 2.008 GB / 2.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005739/20.38, allocations: 0.6568 MB / 3.794 GB, free: 2.008 GB / 2.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005308/20.39, allocations: 1.249 MB / 3.795 GB, free: 2.008 GB / 2.479 GB Notification: Performance of sorting global known variables: time 0.002563/20.39, allocations: 1.394 MB / 3.797 GB, free: 2.008 GB / 2.479 GB Notification: Performance of sort global known variables: time 2.61e-07/20.39, allocations: 0 / 3.797 GB, free: 2.008 GB / 2.479 GB Notification: Performance of remove unused functions: time 0.04829/20.44, allocations: 8.415 MB / 3.805 GB, free: 2.008 GB / 2.479 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 0.9194/21.36, allocations: 137.5 MB / 3.939 GB, free: 1.923 GB / 2.479 GB Notification: Performance of simCode: created initialization part: time 0.1193/21.48, allocations: 79.37 MB / 4.017 GB, free: 1.854 GB / 2.479 GB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/21.48, allocations: 0 / 4.017 GB, free: 1.854 GB / 2.479 GB Notification: Performance of simCode: created simulation system equations: time 60.82/82.29, allocations: 28.61 GB / 32.63 GB, free: 1.32 GB / 2.839 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01374/82.31, allocations: 1.209 MB / 32.63 GB, free: 1.318 GB / 2.839 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.171/82.48, allocations: 73.93 MB / 32.7 GB, free: 1.247 GB / 2.839 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02193/82.5, allocations: 10.29 MB / 32.71 GB, free: 1.237 GB / 2.839 GB Notification: Performance of simCode: alias equations: time 0.01264/82.51, allocations: 4.295 MB / 32.72 GB, free: 1.232 GB / 2.839 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01761/82.53, allocations: 8.001 MB / 32.73 GB, free: 1.225 GB / 2.839 GB Notification: Performance of SimCode: time 1.102e-06/82.53, allocations: 2 kB / 32.73 GB, free: 1.225 GB / 2.839 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6628/83.19, allocations: 427.1 MB / 33.14 GB, free: 0.81 GB / 2.839 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/83.19, allocations: 174.9 kB / 33.14 GB, free: 0.8098 GB / 2.839 GB Notification: Performance of buildModelFMU: Generate platform static: time 70.66/153.9, allocations: 0 / 33.14 GB, free: 0.8098 GB / 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