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.0009393/0.0009393, allocations: 175.3 kB / 16.72 MB, free: 5.082 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.327/1.327, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007239/0.0007235, allocations: 89.41 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002843/0.0002846, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2244, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.008799/0.2333, allocations: 9.589 MB / 384.8 MB, free: 37.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007556/0.2409, allocations: 3.687 MB / 388.5 MB, free: 34.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002447/0.2434, allocations: 64.16 kB / 388.5 MB, free: 34.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002298/0.2457, allocations: 0.6137 MB / 389.1 MB, free: 34.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004359/0.2501, allocations: 1.622 MB / 390.8 MB, free: 33.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.2516, allocations: 487.2 kB / 391.2 MB, free: 32.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005085/0.2567, allocations: 5.682 MB / 396.9 MB, free: 26.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003033/0.2598, allocations: 3.349 MB / 400.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003301/0.2631, allocations: 2.205 MB / 402.5 MB, free: 21.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002765/0.2659, allocations: 2.847 MB / 405.3 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000441/0.2663, allocations: 284 kB / 405.6 MB, free: 18.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001493/0.2678, allocations: 0.5776 MB / 406.2 MB, free: 17.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001987/0.2698, allocations: 4.876 MB / 411 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004335/0.2742, allocations: 5.909 MB / 417 MB, free: 6.711 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009381/0.2836, allocations: 12.7 MB / 429.6 MB, free: 9.977 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.2836, allocations: 4 kB / 429.7 MB, free: 9.973 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2836, allocations: 4 kB / 429.7 MB, free: 9.969 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004889/0.2841, allocations: 0 / 429.7 MB, free: 9.969 MB / 314.7 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.02168/0.3058, allocations: 16.68 MB / 446.3 MB, free: 9.152 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.3059, allocations: 8.031 kB / 446.3 MB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003726/0.3096, allocations: 2.302 MB / 448.6 MB, free: 6.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003277/0.3129, allocations: 1.724 MB / 450.4 MB, free: 5.082 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006356/0.3193, allocations: 4.008 MB / 454.4 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002031/0.3195, allocations: 295.9 kB / 454.7 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005267/0.32, allocations: 399.9 kB / 455.1 MB, free: 308 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04398/0.364, allocations: 29.53 MB / 484.6 MB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-05/0.3642, allocations: 3.938 kB / 484.6 MB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006482/0.3648, allocations: 164 kB / 484.8 MB, free: 2.523 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003349/0.3652, allocations: 204 kB / 485 MB, free: 2.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3185/0.6837, allocations: 26.69 MB / 0.4997 GB, free: 96.16 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02598/0.7097, allocations: 22.28 MB / 0.5214 GB, free: 78.97 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03888/0.7486, allocations: 85.76 MB / 0.6052 GB, free: 8.707 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2243/0.9729, allocations: 81.67 MB / 0.6849 GB, free: 141 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003205/0.9733, allocations: 138.2 kB / 0.685 GB, free: 140.9 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0215/0.9948, allocations: 30.64 MB / 0.715 GB, free: 116.8 MB / 442.8 MB Notification: Performance of pre-optimization done (n=5058): time 5.279e-06/0.9948, allocations: 0 / 0.715 GB, free: 116.8 MB / 442.8 MB Notification: Performance of matching and sorting (n=5065): time 11.05/12.05, allocations: 2.901 GB / 3.616 GB, free: 141.2 MB / 1.854 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00331/12.05, allocations: 7.355 MB / 3.623 GB, free: 134.1 MB / 1.854 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003302/12.05, allocations: 2.633 MB / 3.626 GB, free: 131.5 MB / 1.854 GB Notification: Performance of collectPreVariables (initialization): time 0.003977/12.06, allocations: 3.948 MB / 3.63 GB, free: 127.5 MB / 1.854 GB Notification: Performance of collectInitialEqns (initialization): time 0.001295/12.06, allocations: 1.745 MB / 3.631 GB, free: 125.7 MB / 1.854 GB Notification: Performance of collectInitialBindings (initialization): time 0.0157/12.07, allocations: 21.64 MB / 3.653 GB, free: 104 MB / 1.854 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004307/12.08, allocations: 1.513 MB / 3.654 GB, free: 102.5 MB / 1.854 GB Notification: Performance of setup shared object (initialization): time 0.004407/12.08, allocations: 3.508 MB / 3.658 GB, free: 98.96 MB / 1.854 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04172/12.12, allocations: 26.84 MB / 3.684 GB, free: 72.09 MB / 1.854 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05667/12.18, allocations: 58.75 MB / 3.741 GB, free: 14.58 MB / 1.87 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.09458/12.28, allocations: 87.89 MB / 3.827 GB, free: 7.719 MB / 1.964 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001415/12.28, allocations: 300 kB / 3.827 GB, free: 7.426 MB / 1.964 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1548/12.43, allocations: 87.7 MB / 3.913 GB, free: 15.61 MB / 2.057 GB Notification: Performance of prepare postOptimizeDAE: time 0.001268/12.43, allocations: 488.3 kB / 3.913 GB, free: 15.13 MB / 2.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00211/12.43, allocations: 1.035 MB / 3.914 GB, free: 14.09 MB / 2.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008782/12.44, allocations: 3.106 MB / 3.917 GB, free: 10.97 MB / 2.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03644/12.48, allocations: 10.72 MB / 3.928 GB, free: 224 kB / 2.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0258/12.51, allocations: 25.61 MB / 3.953 GB, free: 5.27 MB / 2.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0288/12.53, allocations: 2.492 MB / 3.955 GB, free: 2.777 MB / 2.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008084/12.54, allocations: 3.605 MB / 3.959 GB, free: 15.17 MB / 2.104 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4834 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9811): * Single equations (assignments): 9800 * 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.02819/12.57, allocations: 15.09 MB / 3.974 GB, free: 24 kB / 2.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004556/12.58, allocations: 2.342 MB / 3.976 GB, free: 13.66 MB / 2.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.402/18.98, allocations: 8.843 GB / 12.82 GB, free: 1.166 GB / 2.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/18.98, allocations: 24 kB / 12.82 GB, free: 1.166 GB / 2.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.603e-05/18.98, allocations: 8.984 kB / 12.82 GB, free: 1.166 GB / 2.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.259e-05/18.98, allocations: 13.48 kB / 12.82 GB, free: 1.166 GB / 2.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.459/25.44, allocations: 8.865 GB / 21.68 GB, free: 1.703 GB / 2.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/25.44, allocations: 3.984 kB / 21.68 GB, free: 1.703 GB / 2.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001221/25.44, allocations: 288.8 kB / 21.68 GB, free: 1.703 GB / 2.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004788/25.44, allocations: 1.62 MB / 21.69 GB, free: 1.701 GB / 2.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002119/25.45, allocations: 0.6484 MB / 21.69 GB, free: 1.701 GB / 2.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01758/25.46, allocations: 23.22 MB / 21.71 GB, free: 1.677 GB / 2.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/25.46, allocations: 0 / 21.71 GB, free: 1.677 GB / 2.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.407/31.87, allocations: 8.897 GB / 30.61 GB, free: 2.188 GB / 2.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008758/31.88, allocations: 4.939 MB / 30.61 GB, free: 2.184 GB / 2.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002813/31.88, allocations: 0.6498 MB / 30.61 GB, free: 2.184 GB / 2.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005987/31.89, allocations: 0.7204 MB / 30.61 GB, free: 2.183 GB / 2.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002546/31.89, allocations: 0.6576 MB / 30.61 GB, free: 2.182 GB / 2.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001951/31.89, allocations: 0.6538 MB / 30.61 GB, free: 2.182 GB / 2.698 GB Notification: Performance of sorting global known variables: time 0.002653/31.89, allocations: 1.841 MB / 30.62 GB, free: 2.18 GB / 2.698 GB Notification: Performance of sort global known variables: time 2.21e-07/31.89, allocations: 0 / 30.62 GB, free: 2.18 GB / 2.698 GB Notification: Performance of remove unused functions: time 0.03567/31.93, allocations: 9.959 MB / 30.63 GB, free: 2.17 GB / 2.698 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) * Number of clocked states: 0 () * 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 6.16/38.09, allocations: 8.899 GB / 39.52 GB, free: 326.8 MB / 2.698 GB Notification: Performance of simCode: created initialization part: time 0.1053/38.2, allocations: 84.19 MB / 39.61 GB, free: 242.9 MB / 2.698 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/38.2, allocations: 0 / 39.61 GB, free: 242.9 MB / 2.698 GB Notification: Performance of simCode: created simulation system equations: time 16.46/54.66, allocations: 28.57 GB / 68.18 GB, free: 2.209 GB / 2.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008309/54.66, allocations: 2.083 MB / 68.18 GB, free: 2.207 GB / 2.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3735/55.04, allocations: 437.6 MB / 68.61 GB, free: 1.757 GB / 2.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01576/55.05, allocations: 9.911 MB / 68.62 GB, free: 1.747 GB / 2.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01338/55.07, allocations: 8.048 MB / 68.63 GB, free: 1.739 GB / 2.698 GB Notification: Performance of SimCode: time 9.92e-07/55.07, allocations: 0 / 68.63 GB, free: 1.739 GB / 2.698 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 37.46/92.52, allocations: 2.713 GB / 71.34 GB, free: 1.364 GB / 2.698 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)