Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_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.002322/0.002321, allocations: 177.8 kB / 8.358 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.061/2.061, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.001149, allocations: 82.8 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.847e-05/1.845e-05, allocations: 0 / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3603, allocations: 47.57 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.159/0.5194, allocations: 94.09 MB / 456.5 MB, free: 8.09 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.5197, allocations: 67.97 kB / 456.6 MB, free: 8.023 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.483/2.002, allocations: 165.5 MB / 0.6075 GB, free: 31.39 MB / 395.2 MB Notification: Performance of FrontEnd: time 2.395e-06/2.002, allocations: 4 kB / 0.6075 GB, free: 31.39 MB / 395.2 MB Notification: Performance of Transformations before backend: time 0.0007693/2.003, allocations: 259.9 kB / 0.6077 GB, free: 31.13 MB / 395.2 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.03473/2.038, allocations: 15.83 MB / 0.6232 GB, free: 15.18 MB / 395.2 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/2.038, allocations: 8.031 kB / 0.6232 GB, free: 15.17 MB / 395.2 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006372/2.044, allocations: 1.734 MB / 0.6249 GB, free: 13.41 MB / 395.2 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03196/2.076, allocations: 8.787 MB / 0.6335 GB, free: 4.523 MB / 395.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000266/2.077, allocations: 139.9 kB / 0.6336 GB, free: 4.387 MB / 395.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00285/2.08, allocations: 231.9 kB / 0.6338 GB, free: 4.16 MB / 395.2 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3534/2.433, allocations: 23.78 MB / 0.657 GB, free: 50 MB / 411.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05786/2.491, allocations: 27.16 MB / 0.6836 GB, free: 49.09 MB / 411.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001718/2.491, allocations: 3.562 kB / 0.6836 GB, free: 49.09 MB / 411.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002296/2.494, allocations: 7.5 kB / 0.6836 GB, free: 49.09 MB / 411.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002884/2.494, allocations: 208 kB / 0.6838 GB, free: 49.08 MB / 411.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07591/2.57, allocations: 25.87 MB / 0.709 GB, free: 45.41 MB / 411.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.09614/2.666, allocations: 83.83 MB / 0.7909 GB, free: 12.96 MB / 443.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3935/3.06, allocations: 79.21 MB / 0.8683 GB, free: 78.16 MB / 459.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006363/3.06, allocations: 149.6 kB / 0.8684 GB, free: 78.07 MB / 459.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.05411/3.114, allocations: 28.88 MB / 0.8966 GB, free: 65 MB / 459.2 MB Notification: Performance of pre-optimization done (n=5058): time 8.696e-06/3.114, allocations: 1.75 kB / 0.8966 GB, free: 65 MB / 459.2 MB Notification: Performance of matching and sorting (n=5065): time 16.42/19.54, allocations: 2.178 GB / 3.075 GB, free: 2.625 MB / 1.917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0123/19.55, allocations: 7.356 MB / 3.082 GB, free: 11.5 MB / 1.933 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007797/19.56, allocations: 1.832 MB / 3.084 GB, free: 9.641 MB / 1.933 GB Notification: Performance of collectPreVariables (initialization): time 0.01466/19.57, allocations: 3.172 MB / 3.087 GB, free: 6.453 MB / 1.933 GB Notification: Performance of collectInitialEqns (initialization): time 0.003554/19.58, allocations: 1.662 MB / 3.088 GB, free: 4.773 MB / 1.933 GB Notification: Performance of collectInitialBindings (initialization): time 0.0362/19.61, allocations: 21.24 MB / 3.109 GB, free: 15.25 MB / 1.964 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00675/19.62, allocations: 4 kB / 3.109 GB, free: 15.25 MB / 1.964 GB Notification: Performance of setup shared object (initialization): time 0.009044/19.63, allocations: 3.51 MB / 3.113 GB, free: 11.72 MB / 1.964 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.07427/19.7, allocations: 24.76 MB / 3.137 GB, free: 2.941 MB / 1.98 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1137/19.82, allocations: 55.9 MB / 3.191 GB, free: 13.62 MB / 2.058 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5574/20.37, allocations: 36.37 MB / 3.227 GB, free: 1.635 GB / 2.073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001989/20.38, allocations: 302.6 kB / 3.227 GB, free: 1.635 GB / 2.073 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.2072/20.58, allocations: 77.31 MB / 3.303 GB, free: 1.628 GB / 2.073 GB Notification: Performance of prepare postOptimizeDAE: time 0.004111/20.59, allocations: 486.1 kB / 3.303 GB, free: 1.628 GB / 2.073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005974/20.59, allocations: 1.031 MB / 3.304 GB, free: 1.628 GB / 2.073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01636/20.61, allocations: 2.988 MB / 3.307 GB, free: 1.627 GB / 2.073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06228/20.67, allocations: 10.73 MB / 3.318 GB, free: 1.625 GB / 2.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03309/20.7, allocations: 24.68 MB / 3.342 GB, free: 1.608 GB / 2.073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04458/20.75, allocations: 0.9703 MB / 3.343 GB, free: 1.608 GB / 2.073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01242/20.76, allocations: 3.601 MB / 3.346 GB, free: 1.605 GB / 2.073 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.0311/20.79, allocations: 9.495 MB / 3.355 GB, free: 1.598 GB / 2.073 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 1.087/21.88, allocations: 80 MB / 3.434 GB, free: 1.528 GB / 2.073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009617/21.89, allocations: 2.315 MB / 3.436 GB, free: 1.527 GB / 2.073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.097/22.99, allocations: 78.34 MB / 3.512 GB, free: 1.45 GB / 2.073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.485e-05/22.99, allocations: 24 kB / 3.512 GB, free: 1.45 GB / 2.073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/22.99, allocations: 8 kB / 3.512 GB, free: 1.45 GB / 2.073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-05/22.99, allocations: 19.8 kB / 3.512 GB, free: 1.45 GB / 2.073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.144/24.13, allocations: 101.1 MB / 3.611 GB, free: 1.351 GB / 2.073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.797e-05/24.13, allocations: 0 / 3.611 GB, free: 1.351 GB / 2.073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002479/24.13, allocations: 299.6 kB / 3.611 GB, free: 1.351 GB / 2.073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005319/24.14, allocations: 1.346 MB / 3.613 GB, free: 1.35 GB / 2.073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005841/24.15, allocations: 0.7648 MB / 3.613 GB, free: 1.349 GB / 2.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02967/24.18, allocations: 22.4 MB / 3.635 GB, free: 1.326 GB / 2.073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/24.18, allocations: 0 / 3.635 GB, free: 1.326 GB / 2.073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.238/25.41, allocations: 130.6 MB / 3.763 GB, free: 1.2 GB / 2.073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02595/25.44, allocations: 6.286 MB / 3.769 GB, free: 1.194 GB / 2.073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0073/25.45, allocations: 0.6055 MB / 3.77 GB, free: 1.194 GB / 2.073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01419/25.46, allocations: 0.6789 MB / 3.77 GB, free: 1.193 GB / 2.073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006815/25.47, allocations: 0.6579 MB / 3.771 GB, free: 1.192 GB / 2.073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006721/25.47, allocations: 1.249 MB / 3.772 GB, free: 1.191 GB / 2.073 GB Notification: Performance of sorting global known variables: time 0.003405/25.48, allocations: 1.395 MB / 3.774 GB, free: 1.19 GB / 2.073 GB Notification: Performance of sort global known variables: time 8.82e-07/25.48, allocations: 0 / 3.774 GB, free: 1.19 GB / 2.073 GB Notification: Performance of remove unused functions: time 0.06925/25.55, allocations: 8.417 MB / 3.782 GB, free: 1.182 GB / 2.073 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 1.222/26.77, allocations: 137.4 MB / 3.916 GB, free: 1.048 GB / 2.073 GB Notification: Performance of simCode: created initialization part: time 0.1515/26.92, allocations: 79.36 MB / 3.993 GB, free: 0.9707 GB / 2.073 GB Notification: Performance of simCode: created event and clocks part: time 1.34e-05/26.92, allocations: 0 / 3.993 GB, free: 0.9707 GB / 2.073 GB Notification: Performance of simCode: created simulation system equations: time 70.66/97.58, allocations: 28.61 GB / 32.6 GB, free: 2.061 GB / 2.87 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01798/97.6, allocations: 1.213 MB / 32.6 GB, free: 2.059 GB / 2.87 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2363/97.84, allocations: 74.48 MB / 32.68 GB, free: 1.987 GB / 2.87 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02744/97.87, allocations: 10.2 MB / 32.69 GB, free: 1.977 GB / 2.87 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02195/97.89, allocations: 8.015 MB / 32.69 GB, free: 1.969 GB / 2.87 GB Notification: Performance of SimCode: time 1.232e-06/97.89, allocations: 0 / 32.69 GB, free: 1.969 GB / 2.87 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 19.77/117.7, allocations: 2.744 GB / 35.44 GB, free: 1.678 GB / 2.87 GB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFT_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFT.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1)