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.00101/0.00101, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008031/0.0008031, allocations: 90.36 kB / 262.5 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.828e-05/1.843e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.08926, allocations: 47.6 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3166/0.4059, allocations: 94.33 MB / 457.5 MB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.4062, allocations: 74.58 kB / 457.6 MB, free: 1.133 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9623/1.368, allocations: 165.5 MB / 0.6084 GB, free: 70.77 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.104e-06/1.369, allocations: 0 / 0.6084 GB, free: 70.77 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0005023/1.369, allocations: 260.4 kB / 0.6087 GB, free: 70.75 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: 5853 * Number of variables: 5853 Notification: Performance of Generate backend data structure: time 0.02473/1.394, allocations: 15.83 MB / 0.6241 GB, free: 56.91 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/1.394, allocations: 12.03 kB / 0.6241 GB, free: 56.9 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005865/1.4, allocations: 1.734 MB / 0.6258 GB, free: 55.15 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01847/1.418, allocations: 8.794 MB / 0.6344 GB, free: 46.48 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/1.418, allocations: 124 kB / 0.6345 GB, free: 46.36 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001785/1.42, allocations: 233.9 kB / 0.6348 GB, free: 46.14 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03041/1.451, allocations: 23.78 MB / 0.658 GB, free: 22.35 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04252/1.493, allocations: 27.17 MB / 0.6845 GB, free: 11.01 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000141/1.493, allocations: 3.938 kB / 0.6845 GB, free: 11 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002419/1.496, allocations: 4 kB / 0.6845 GB, free: 11 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002662/1.496, allocations: 208 kB / 0.6847 GB, free: 10.79 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3155/1.812, allocations: 25.87 MB / 0.71 GB, free: 80.87 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06542/1.877, allocations: 83.37 MB / 0.7914 GB, free: 20.77 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.337/2.214, allocations: 79.81 MB / 0.8693 GB, free: 102.8 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000501/2.215, allocations: 154.6 kB / 0.8695 GB, free: 102.7 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.04683/2.262, allocations: 28.88 MB / 0.8977 GB, free: 101.9 MB / 458.8 MB Notification: Performance of pre-optimization done (n=5058): time 7.494e-06/2.262, allocations: 4.156 kB / 0.8977 GB, free: 101.9 MB / 458.8 MB Notification: Performance of matching and sorting (n=5065): time 11.53/13.79, allocations: 2.176 GB / 3.074 GB, free: 6.004 MB / 1.87 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005236/13.8, allocations: 7.356 MB / 3.081 GB, free: 14.88 MB / 1.886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003595/13.8, allocations: 1.833 MB / 3.083 GB, free: 13.02 MB / 1.886 GB Notification: Performance of collectPreVariables (initialization): time 0.005216/13.8, allocations: 3.17 MB / 3.086 GB, free: 9.836 MB / 1.886 GB Notification: Performance of collectInitialEqns (initialization): time 0.00225/13.81, allocations: 1.761 MB / 3.087 GB, free: 8.055 MB / 1.886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0289/13.84, allocations: 21.23 MB / 3.108 GB, free: 2.535 MB / 1.901 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006125/13.84, allocations: 3.531 kB / 3.108 GB, free: 2.535 MB / 1.901 GB Notification: Performance of setup shared object (initialization): time 0.007752/13.85, allocations: 3.503 MB / 3.112 GB, free: 15.02 MB / 1.917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05248/13.9, allocations: 24.76 MB / 3.136 GB, free: 6.238 MB / 1.932 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08677/13.99, allocations: 55.9 MB / 3.19 GB, free: 0.9258 MB / 1.995 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06309/14.05, allocations: 36.38 MB / 3.226 GB, free: 13.14 MB / 2.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002874/14.05, allocations: 306 kB / 3.226 GB, free: 12.85 MB / 2.042 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.1817/14.24, allocations: 77.45 MB / 3.302 GB, free: 15.31 MB / 2.12 GB Notification: Performance of prepare postOptimizeDAE: time 0.003283/14.24, allocations: 493.7 kB / 3.302 GB, free: 14.82 MB / 2.12 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003937/14.24, allocations: 1.031 MB / 3.303 GB, free: 13.79 MB / 2.12 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008687/14.25, allocations: 2.987 MB / 3.306 GB, free: 10.78 MB / 2.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04233/14.29, allocations: 10.72 MB / 3.317 GB, free: 40 kB / 2.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02857/14.32, allocations: 24.69 MB / 3.341 GB, free: 6.254 MB / 2.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03328/14.36, allocations: 0.9726 MB / 3.342 GB, free: 5.281 MB / 2.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0139/14.37, allocations: 3.602 MB / 3.345 GB, free: 1.68 MB / 2.151 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.03215/14.4, allocations: 9.501 MB / 3.355 GB, free: 8.117 MB / 2.167 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 1.265/15.67, allocations: 80.4 MB / 3.433 GB, free: 1.771 GB / 2.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00915/15.68, allocations: 2.312 MB / 3.435 GB, free: 1.771 GB / 2.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.8375/16.51, allocations: 78.33 MB / 3.512 GB, free: 1.758 GB / 2.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-05/16.51, allocations: 27.56 kB / 3.512 GB, free: 1.758 GB / 2.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/16.51, allocations: 7.938 kB / 3.512 GB, free: 1.758 GB / 2.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.154e-05/16.51, allocations: 13.92 kB / 3.512 GB, free: 1.758 GB / 2.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8525/17.37, allocations: 101.1 MB / 3.611 GB, free: 1.702 GB / 2.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.959e-05/17.37, allocations: 0 / 3.611 GB, free: 1.702 GB / 2.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/17.37, allocations: 296 kB / 3.611 GB, free: 1.702 GB / 2.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003127/17.37, allocations: 1.351 MB / 3.612 GB, free: 1.701 GB / 2.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00603/17.38, allocations: 0.7646 MB / 3.613 GB, free: 1.7 GB / 2.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01956/17.4, allocations: 22.38 MB / 3.635 GB, free: 1.68 GB / 2.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/17.4, allocations: 3.562 kB / 3.635 GB, free: 1.68 GB / 2.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.8427/18.24, allocations: 130.6 MB / 3.762 GB, free: 1.554 GB / 2.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02081/18.26, allocations: 6.288 MB / 3.769 GB, free: 1.549 GB / 2.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006351/18.27, allocations: 0.6093 MB / 3.769 GB, free: 1.548 GB / 2.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01178/18.28, allocations: 0.6895 MB / 3.77 GB, free: 1.548 GB / 2.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005159/18.28, allocations: 0.6495 MB / 3.77 GB, free: 1.547 GB / 2.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004867/18.29, allocations: 1.246 MB / 3.772 GB, free: 1.546 GB / 2.229 GB Notification: Performance of sorting global known variables: time 0.002315/18.29, allocations: 1.402 MB / 3.773 GB, free: 1.544 GB / 2.229 GB Notification: Performance of sort global known variables: time 3.1e-07/18.29, allocations: 0 / 3.773 GB, free: 1.544 GB / 2.229 GB Notification: Performance of remove unused functions: time 0.05097/18.34, allocations: 8.411 MB / 3.781 GB, free: 1.536 GB / 2.229 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.856/19.2, allocations: 137.5 MB / 3.916 GB, free: 1.403 GB / 2.229 GB Notification: Performance of simCode: created initialization part: time 0.1126/19.31, allocations: 79.37 MB / 3.993 GB, free: 1.326 GB / 2.229 GB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/19.31, allocations: 0 / 3.993 GB, free: 1.326 GB / 2.229 GB Notification: Performance of simCode: created simulation system equations: time 60.25/79.56, allocations: 28.61 GB / 32.6 GB, free: 1.87 GB / 2.87 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01127/79.57, allocations: 1.213 MB / 32.6 GB, free: 1.868 GB / 2.87 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1612/79.73, allocations: 73.92 MB / 32.68 GB, free: 1.797 GB / 2.87 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01337/79.75, allocations: 10.28 MB / 32.69 GB, free: 1.787 GB / 2.87 GB Notification: Performance of simCode: alias equations: time 0.01296/79.76, allocations: 4.292 MB / 32.69 GB, free: 1.782 GB / 2.87 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01427/79.77, allocations: 8.009 MB / 32.7 GB, free: 1.775 GB / 2.87 GB Notification: Performance of SimCode: time 8.02e-07/79.77, allocations: 0 / 32.7 GB, free: 1.775 GB / 2.87 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5322/80.3, allocations: 427.2 MB / 33.12 GB, free: 1.359 GB / 2.87 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001554/80.3, allocations: 168.7 kB / 33.12 GB, free: 1.359 GB / 2.87 GB Notification: Performance of buildModelFMU: Generate platform static: time 63.31/143.6, allocations: 0 / 33.12 GB, free: 1.359 GB / 2.87 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