Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.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.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT",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.0009003/0.0009004, allocations: 170.6 kB / 16.72 MB, free: 5.055 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.299/1.299, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.0007917/0.0007917, allocations: 85.42 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002949/0.0002949, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2199, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.005167/0.2251, allocations: 6.177 MB / 381.4 MB, free: 40.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00427/0.2294, allocations: 2.758 MB / 384.1 MB, free: 38.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008621/0.2303, allocations: 39.88 kB / 384.2 MB, free: 38.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.2313, allocations: 433.1 kB / 384.6 MB, free: 38.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001815/0.2331, allocations: 1.19 MB / 385.8 MB, free: 37.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009343/0.2341, allocations: 354.7 kB / 386.1 MB, free: 37.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002868/0.237, allocations: 3.22 MB / 389.3 MB, free: 34.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001632/0.2386, allocations: 2.044 MB / 391.4 MB, free: 32.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001937/0.2406, allocations: 1.418 MB / 392.8 MB, free: 30.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001642/0.2422, allocations: 1.85 MB / 394.6 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002386/0.2425, allocations: 156 kB / 394.8 MB, free: 28.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001109/0.2436, allocations: 467.4 kB / 395.3 MB, free: 28.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001723/0.2453, allocations: 4.331 MB / 399.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003066/0.2484, allocations: 4.921 MB / 404.5 MB, free: 19.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005366/0.2538, allocations: 9.613 MB / 414.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2538, allocations: 0 / 414.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2538, allocations: 0 / 414.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002305/0.254, allocations: 0 / 414.1 MB, free: 9.566 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5386 * Number of variables: 5386 Notification: Performance of Generate backend data structure: time 0.01329/0.2673, allocations: 14.93 MB / 429.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.2674, allocations: 16.02 kB / 429.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002668/0.2701, allocations: 2.052 MB / 431.1 MB, free: 8.438 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002679/0.2728, allocations: 1.484 MB / 432.6 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00494/0.2777, allocations: 2.923 MB / 435.5 MB, free: 3.934 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.2779, allocations: 164.4 kB / 435.7 MB, free: 3.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003072/0.2782, allocations: 223.9 kB / 435.9 MB, free: 3.551 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02958/0.3078, allocations: 26.94 MB / 462.8 MB, free: 8.523 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.197e-05/0.3079, allocations: 0 / 462.8 MB, free: 8.523 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002096/0.3081, allocations: 91.98 kB / 462.9 MB, free: 8.434 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001245/0.3082, allocations: 116.5 kB / 463.1 MB, free: 8.316 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02629/0.3345, allocations: 24.41 MB / 487.5 MB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0224/0.3569, allocations: 14.72 MB / 0.4904 GB, free: 1.004 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3438/0.7008, allocations: 82.34 MB / 0.5708 GB, free: 31.61 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2067/0.9075, allocations: 80.38 MB / 0.6493 GB, free: 141.7 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002363/0.9078, allocations: 127.7 kB / 0.6494 GB, free: 141.6 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02221/0.93, allocations: 29.81 MB / 0.6786 GB, free: 129.5 MB / 426.8 MB Notification: Performance of pre-optimization done (n=4937): time 4.859e-06/0.93, allocations: 1.312 kB / 0.6786 GB, free: 129.5 MB / 426.8 MB Notification: Performance of matching and sorting (n=4941): time 11.17/12.1, allocations: 2.896 GB / 3.574 GB, free: 195.1 MB / 1.886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003075/12.11, allocations: 7.222 MB / 3.581 GB, free: 188.1 MB / 1.886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001885/12.11, allocations: 1.488 MB / 3.583 GB, free: 186.6 MB / 1.886 GB Notification: Performance of collectPreVariables (initialization): time 0.003824/12.11, allocations: 3.936 MB / 3.587 GB, free: 182.7 MB / 1.886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009204/12.11, allocations: 1.03 MB / 3.588 GB, free: 181.6 MB / 1.886 GB Notification: Performance of collectInitialBindings (initialization): time 0.01526/12.13, allocations: 21.23 MB / 3.608 GB, free: 160.2 MB / 1.886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003949/12.13, allocations: 1.488 MB / 3.61 GB, free: 158.7 MB / 1.886 GB Notification: Performance of setup shared object (initialization): time 0.004142/12.14, allocations: 3.457 MB / 3.613 GB, free: 155.2 MB / 1.886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03758/12.17, allocations: 26.2 MB / 3.639 GB, free: 129 MB / 1.886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05382/12.23, allocations: 57.91 MB / 3.695 GB, free: 56.35 MB / 1.886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0845/12.31, allocations: 86.43 MB / 3.78 GB, free: 3.027 MB / 1.932 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001442/12.31, allocations: 304 kB / 3.78 GB, free: 2.73 MB / 1.932 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1492/12.46, allocations: 85.56 MB / 3.863 GB, free: 13.12 MB / 2.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.002074/12.46, allocations: 489.6 kB / 3.864 GB, free: 12.63 MB / 2.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002799/12.47, allocations: 1.031 MB / 3.865 GB, free: 11.6 MB / 2.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006281/12.47, allocations: 2.286 MB / 3.867 GB, free: 9.309 MB / 2.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03609/12.51, allocations: 10.54 MB / 3.877 GB, free: 14.75 MB / 2.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01452/12.52, allocations: 12.65 MB / 3.89 GB, free: 1.574 MB / 2.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02895/12.55, allocations: 2.43 MB / 3.892 GB, free: 15.14 MB / 2.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008229/12.56, allocations: 3.566 MB / 3.896 GB, free: 11.57 MB / 2.057 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4823 * Number of states: 0 () * Number of discrete variables: 18 ($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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9717): * Single equations (assignments): 9712 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.02703/12.59, allocations: 14.5 MB / 3.91 GB, free: 13.02 MB / 2.073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003746/12.59, allocations: 2.211 MB / 3.912 GB, free: 10.79 MB / 2.073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.405/19, allocations: 8.841 GB / 12.75 GB, free: 1.489 GB / 2.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/19, allocations: 15.44 kB / 12.75 GB, free: 1.489 GB / 2.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/19, allocations: 11.98 kB / 12.75 GB, free: 1.489 GB / 2.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-05/19, allocations: 3.984 kB / 12.75 GB, free: 1.489 GB / 2.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.416/25.41, allocations: 8.861 GB / 21.61 GB, free: 2.265 GB / 2.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/25.41, allocations: 4 kB / 21.61 GB, free: 2.265 GB / 2.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006688/25.41, allocations: 158.4 kB / 21.61 GB, free: 2.265 GB / 2.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00225/25.42, allocations: 0.8079 MB / 21.62 GB, free: 2.264 GB / 2.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001697/25.42, allocations: 0.623 MB / 21.62 GB, free: 2.264 GB / 2.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007916/25.43, allocations: 10.41 MB / 21.63 GB, free: 2.253 GB / 2.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/25.43, allocations: 2 kB / 21.63 GB, free: 2.253 GB / 2.745 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.051/31.48, allocations: 8.895 GB / 30.52 GB, free: 0.5875 GB / 2.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008012/31.49, allocations: 4.654 MB / 30.53 GB, free: 0.5837 GB / 2.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001886/31.49, allocations: 0.6271 MB / 30.53 GB, free: 0.5831 GB / 2.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004384/31.49, allocations: 0.6695 MB / 30.53 GB, free: 0.5824 GB / 2.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001466/31.49, allocations: 0.5569 MB / 30.53 GB, free: 0.5819 GB / 2.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009514/31.49, allocations: 0.6256 MB / 30.53 GB, free: 0.5813 GB / 2.745 GB Notification: Performance of sorting global known variables: time 0.001218/31.5, allocations: 1.053 MB / 30.53 GB, free: 0.5803 GB / 2.745 GB Notification: Performance of sort global known variables: time 1.7e-07/31.5, allocations: 0 / 30.53 GB, free: 0.5803 GB / 2.745 GB Notification: Performance of remove unused functions: time 0.03467/31.53, allocations: 9.518 MB / 30.54 GB, free: 0.571 GB / 2.745 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i) * Number of discrete variables: 14 (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,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 (83): * Single equations (assignments): 77 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 6.299/37.83, allocations: 8.896 GB / 39.43 GB, free: 1.31 GB / 2.745 GB Notification: Performance of simCode: created initialization part: time 0.1003/37.93, allocations: 81.73 MB / 39.51 GB, free: 1.23 GB / 2.745 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/37.93, allocations: 8.188 kB / 39.51 GB, free: 1.23 GB / 2.745 GB Notification: Performance of simCode: created simulation system equations: time 16.08/54.01, allocations: 28.57 GB / 68.09 GB, free: 1.571 GB / 2.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01045/54.02, allocations: 1.659 MB / 68.09 GB, free: 1.57 GB / 2.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3353/54.36, allocations: 410.7 MB / 68.49 GB, free: 1.146 GB / 2.745 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00702/54.36, allocations: 8.825 MB / 68.5 GB, free: 1.138 GB / 2.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007849/54.37, allocations: 7.061 MB / 68.5 GB, free: 1.131 GB / 2.745 GB Notification: Performance of SimCode: time 8.01e-07/54.37, allocations: 0 / 68.5 GB, free: 1.131 GB / 2.745 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 32.43/86.8, allocations: 2.375 GB / 70.88 GB, free: 1.118 GB / 2.745 GB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1)