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.0009218/0.0009217, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.38/1.38, allocations: 221.3 MB / 235.5 MB, free: 2.902 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.0009269/0.0009271, allocations: 84.92 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.475e-05/2.479e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 50.42 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3669/0.4727, allocations: 95.56 MB / 489.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.473, allocations: 67.97 kB / 490 MB, free: 7.816 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.158/1.631, allocations: 167.6 MB / 0.6422 GB, free: 58.56 MB / 426.8 MB Notification: Performance of FrontEnd: time 2.544e-06/1.631, allocations: 0 / 0.6422 GB, free: 58.56 MB / 426.8 MB Notification: Performance of Transformations before backend: time 0.000663/1.632, allocations: 275.4 kB / 0.6424 GB, free: 58.29 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.0297/1.662, allocations: 15.86 MB / 0.6579 GB, free: 42.32 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/1.662, allocations: 8.031 kB / 0.6579 GB, free: 42.31 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005823/1.668, allocations: 2.302 MB / 0.6602 GB, free: 40 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005117/1.673, allocations: 1.735 MB / 0.6619 GB, free: 38.24 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01982/1.693, allocations: 8.826 MB / 0.6705 GB, free: 29.54 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002317/1.693, allocations: 291.9 kB / 0.6708 GB, free: 29.25 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001824/1.695, allocations: 395.8 kB / 0.6712 GB, free: 28.86 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0375/1.732, allocations: 27.71 MB / 0.6982 GB, free: 0.9609 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000123/1.732, allocations: 3.938 kB / 0.6982 GB, free: 0.957 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002119/1.735, allocations: 168 kB / 0.6984 GB, free: 0.793 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001767/1.735, allocations: 208 kB / 0.6986 GB, free: 0.5859 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2882/2.023, allocations: 24.01 MB / 0.722 GB, free: 69.5 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06992/2.093, allocations: 28.71 MB / 0.7501 GB, free: 65.68 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06033/2.153, allocations: 83.49 MB / 0.8316 GB, free: 5.453 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3403/2.494, allocations: 80.06 MB / 0.9098 GB, free: 106 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000469/2.494, allocations: 156.2 kB / 0.9099 GB, free: 105.9 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.04584/2.54, allocations: 28.96 MB / 0.9382 GB, free: 105.1 MB / 490.8 MB Notification: Performance of pre-optimization done (n=5058): time 5.902e-06/2.54, allocations: 0 / 0.9382 GB, free: 105.1 MB / 490.8 MB Notification: Performance of matching and sorting (n=5065): time 12.39/14.93, allocations: 2.189 GB / 3.127 GB, free: 11.4 MB / 1.87 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004886/14.93, allocations: 7.36 MB / 3.134 GB, free: 4.277 MB / 1.87 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00427/14.94, allocations: 2.347 MB / 3.136 GB, free: 1.91 MB / 1.87 GB Notification: Performance of collectPreVariables (initialization): time 0.005884/14.94, allocations: 3.944 MB / 3.14 GB, free: 13.95 MB / 1.886 GB Notification: Performance of collectInitialEqns (initialization): time 0.002321/14.94, allocations: 1.736 MB / 3.142 GB, free: 12.2 MB / 1.886 GB Notification: Performance of collectInitialBindings (initialization): time 0.02856/14.97, allocations: 21.64 MB / 3.163 GB, free: 6.652 MB / 1.901 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006968/14.98, allocations: 1.516 MB / 3.165 GB, free: 5.137 MB / 1.901 GB Notification: Performance of setup shared object (initialization): time 0.008315/14.99, allocations: 3.503 MB / 3.168 GB, free: 1.621 MB / 1.901 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05514/15.04, allocations: 26.27 MB / 3.194 GB, free: 7.332 MB / 1.932 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08129/15.12, allocations: 57.87 MB / 3.25 GB, free: 16.04 MB / 2.011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06341/15.19, allocations: 38.21 MB / 3.288 GB, free: 10.44 MB / 2.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001946/15.19, allocations: 300 kB / 3.288 GB, free: 10.14 MB / 2.042 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.2017/15.39, allocations: 86.55 MB / 3.372 GB, free: 3.488 MB / 2.12 GB Notification: Performance of prepare postOptimizeDAE: time 0.001273/15.39, allocations: 489.7 kB / 3.373 GB, free: 3.004 MB / 2.12 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002649/15.4, allocations: 1.035 MB / 3.374 GB, free: 1.973 MB / 2.12 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007379/15.4, allocations: 3.015 MB / 3.377 GB, free: 14.93 MB / 2.136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04275/15.45, allocations: 10.72 MB / 3.387 GB, free: 4.184 MB / 2.136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02831/15.47, allocations: 25.53 MB / 3.412 GB, free: 9.367 MB / 2.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03623/15.51, allocations: 2.488 MB / 3.415 GB, free: 6.879 MB / 2.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01238/15.52, allocations: 3.602 MB / 3.418 GB, free: 3.277 MB / 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.03602/15.56, allocations: 11.04 MB / 3.429 GB, free: 8.176 MB / 2.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009333/15.57, allocations: 2.35 MB / 3.431 GB, free: 5.809 MB / 2.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.106/23.67, allocations: 8.839 GB / 12.27 GB, free: 1.273 GB / 2.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.552e-05/23.67, allocations: 31.78 kB / 12.27 GB, free: 1.273 GB / 2.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/23.67, allocations: 8 kB / 12.27 GB, free: 1.273 GB / 2.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.157e-05/23.67, allocations: 11.95 kB / 12.27 GB, free: 1.273 GB / 2.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.104/30.78, allocations: 8.864 GB / 21.13 GB, free: 349.3 MB / 2.354 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-05/30.78, allocations: 0 / 21.13 GB, free: 349.3 MB / 2.354 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001346/30.78, allocations: 300.3 kB / 21.13 GB, free: 349 MB / 2.354 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003101/30.78, allocations: 1.366 MB / 21.14 GB, free: 347.7 MB / 2.354 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005163/30.79, allocations: 0.8023 MB / 21.14 GB, free: 346.9 MB / 2.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01822/30.81, allocations: 23.18 MB / 21.16 GB, free: 322.9 MB / 2.354 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/30.81, allocations: 0 / 21.16 GB, free: 322.9 MB / 2.354 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.109/38.92, allocations: 8.891 GB / 30.05 GB, free: 1.345 GB / 2.354 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01845/38.93, allocations: 6.341 MB / 30.06 GB, free: 1.339 GB / 2.354 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006014/38.94, allocations: 0.6484 MB / 30.06 GB, free: 1.339 GB / 2.354 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0102/38.95, allocations: 0.7185 MB / 30.06 GB, free: 1.338 GB / 2.354 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005309/38.96, allocations: 0.6535 MB / 30.06 GB, free: 1.337 GB / 2.354 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005701/38.96, allocations: 1.246 MB / 30.06 GB, free: 1.336 GB / 2.354 GB Notification: Performance of sorting global known variables: time 0.003742/38.97, allocations: 1.823 MB / 30.06 GB, free: 1.334 GB / 2.354 GB Notification: Performance of sort global known variables: time 3.9e-07/38.97, allocations: 0 / 30.06 GB, free: 1.334 GB / 2.354 GB Notification: Performance of remove unused functions: time 0.0508/39.02, allocations: 9.993 MB / 30.07 GB, free: 1.325 GB / 2.354 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 7.306/46.32, allocations: 8.898 GB / 38.97 GB, free: 370.6 MB / 2.354 GB Notification: Performance of simCode: created initialization part: time 0.118/46.44, allocations: 83.37 MB / 39.05 GB, free: 288.4 MB / 2.354 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/46.44, allocations: 0 / 39.05 GB, free: 288.4 MB / 2.354 GB Notification: Performance of simCode: created simulation system equations: time 61.15/107.6, allocations: 28.62 GB / 67.67 GB, free: 483.2 MB / 3.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01922/107.6, allocations: 1.493 MB / 67.67 GB, free: 481.8 MB / 3.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1872/107.8, allocations: 59.6 MB / 67.73 GB, free: 422.6 MB / 3.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02269/107.8, allocations: 10.28 MB / 67.74 GB, free: 412.3 MB / 3.167 GB Notification: Performance of simCode: alias equations: time 0.01512/107.8, allocations: 4.358 MB / 67.74 GB, free: 408 MB / 3.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02188/107.9, allocations: 8.029 MB / 67.75 GB, free: 400 MB / 3.167 GB Notification: Performance of SimCode: time 1.963e-06/107.9, allocations: 3.625 kB / 67.75 GB, free: 400 MB / 3.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.401/109.3, allocations: 452.9 MB / 68.19 GB, free: 2.65 GB / 3.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002478/109.3, allocations: 231.3 kB / 68.19 GB, free: 2.649 GB / 3.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 73.08/182.3, allocations: 0 / 68.19 GB, free: 2.649 GB / 3.167 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