Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008635/0.0008636, allocations: 94.05 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008612/0.0008612, allocations: 183.8 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002589/0.000259, allocations: 11.44 kB / 300.8 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1171, allocations: 50.43 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.006385/0.1235, allocations: 5.764 MB / 357 MB, free: 5.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005207/0.1288, allocations: 2.799 MB / 359.8 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.13, allocations: 43.75 kB / 359.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.1313, allocations: 445.9 kB / 360.3 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002073/0.1334, allocations: 1.147 MB / 361.4 MB, free: 1.441 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/FastFourierTransform.mo:538:3-629:25:writable] Warning: Pure function ‘Modelica.Math.FastFourierTransform.realFFTwriteToFile‘ contains a call to impure function ‘Modelica.Utilities.Files.removeFile‘. Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.1345, allocations: 331.3 kB / 361.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002784/0.1373, allocations: 1.973 MB / 363.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001912/0.1392, allocations: 1.705 MB / 365.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001806/0.141, allocations: 1.352 MB / 366.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002558/0.1436, allocations: 1.671 MB / 368.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003451/0.144, allocations: 152 kB / 368.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001246/0.1452, allocations: 411.5 kB / 369 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003139/0.1484, allocations: 4.285 MB / 373.3 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002376/0.1508, allocations: 2.146 MB / 375.4 MB, free: 3.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.1609, allocations: 9.305 MB / 384.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.161, allocations: 3.938 kB / 384.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.161, allocations: 0 / 384.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004439/0.1614, allocations: 0 / 384.7 MB, free: 10.02 MB / 318.1 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.02114/0.1826, allocations: 15.13 MB / 399.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.1827, allocations: 8.031 kB / 399.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003127/0.1858, allocations: 2.056 MB / 401.9 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002719/0.1885, allocations: 1.475 MB / 403.4 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005941/0.1945, allocations: 2.966 MB / 406.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.1947, allocations: 168.4 kB / 406.5 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000373/0.195, allocations: 215.9 kB / 406.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2493/0.4443, allocations: 26.93 MB / 433.7 MB, free: 52.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.052e-05/0.4444, allocations: 0.625 kB / 433.7 MB, free: 52.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002362/0.4447, allocations: 89.28 kB / 433.8 MB, free: 52.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.4448, allocations: 116.4 kB / 433.9 MB, free: 52.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0335/0.4783, allocations: 24.42 MB / 458.3 MB, free: 42.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02083/0.4992, allocations: 14.69 MB / 473 MB, free: 27.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05461/0.5539, allocations: 82.43 MB / 0.5424 GB, free: 9.484 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003073/0.5542, allocations: 126.2 kB / 0.5425 GB, free: 9.348 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02815/0.5824, allocations: 29.82 MB / 0.5716 GB, free: 11.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4937): time 3.647e-06/0.5824, allocations: 0 / 0.5716 GB, free: 11.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=4941): time 12.55/13.13, allocations: 2.9 GB / 3.472 GB, free: 2.281 MB / 1.842 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00507/13.14, allocations: 7.193 MB / 3.479 GB, free: 11.36 MB / 1.857 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002559/13.14, allocations: 1.491 MB / 3.48 GB, free: 9.852 MB / 1.857 GB Notification: Performance of collectPreVariables (initialization): time 0.005861/13.14, allocations: 3.932 MB / 3.484 GB, free: 5.902 MB / 1.857 GB Notification: Performance of collectInitialEqns (initialization): time 0.001397/13.14, allocations: 1.031 MB / 3.485 GB, free: 4.863 MB / 1.857 GB Notification: Performance of collectInitialBindings (initialization): time 0.02821/13.17, allocations: 21.24 MB / 3.506 GB, free: 15.5 MB / 1.889 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005003/13.18, allocations: 1.492 MB / 3.507 GB, free: 14 MB / 1.889 GB Notification: Performance of setup shared object (initialization): time 0.005809/13.18, allocations: 3.458 MB / 3.511 GB, free: 10.54 MB / 1.889 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05306/13.24, allocations: 26.21 MB / 3.536 GB, free: 304 kB / 1.904 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08074/13.32, allocations: 57.61 MB / 3.592 GB, free: 7.988 MB / 1.982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06237/13.38, allocations: 37.73 MB / 3.629 GB, free: 2.223 MB / 2.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001704/13.38, allocations: 308 kB / 3.63 GB, free: 1.922 MB / 2.014 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1728/13.55, allocations: 85.58 MB / 3.713 GB, free: 12.28 MB / 2.107 GB Notification: Performance of prepare postOptimizeDAE: time 0.00131/13.56, allocations: 481.7 kB / 3.714 GB, free: 11.8 MB / 2.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002437/13.56, allocations: 1.031 MB / 3.715 GB, free: 10.77 MB / 2.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006619/13.57, allocations: 2.442 MB / 3.717 GB, free: 8.324 MB / 2.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03929/13.6, allocations: 10.54 MB / 3.727 GB, free: 13.76 MB / 2.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01606/13.62, allocations: 12.85 MB / 3.74 GB, free: 388 kB / 2.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0372/13.66, allocations: 2.43 MB / 3.742 GB, free: 13.95 MB / 2.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01013/13.67, allocations: 3.565 MB / 3.746 GB, free: 10.38 MB / 2.139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4822 * 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.03328/13.7, allocations: 14.49 MB / 3.76 GB, free: 11.83 MB / 2.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004425/13.71, allocations: 2.215 MB / 3.762 GB, free: 9.594 MB / 2.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.185/21.89, allocations: 8.841 GB / 12.6 GB, free: 1.072 GB / 2.295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/21.89, allocations: 14.58 kB / 12.6 GB, free: 1.072 GB / 2.295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/21.89, allocations: 4 kB / 12.6 GB, free: 1.072 GB / 2.295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.034e-05/21.89, allocations: 11.77 kB / 12.6 GB, free: 1.072 GB / 2.295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.694/29.59, allocations: 8.861 GB / 21.46 GB, free: 9.352 MB / 2.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/29.59, allocations: 0 / 21.46 GB, free: 9.352 MB / 2.295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008214/29.59, allocations: 171.9 kB / 21.46 GB, free: 9.195 MB / 2.295 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002516/29.59, allocations: 0.8064 MB / 21.47 GB, free: 8.406 MB / 2.295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002728/29.59, allocations: 0.6172 MB / 21.47 GB, free: 7.789 MB / 2.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4123/30, allocations: 10.61 MB / 21.48 GB, free: 1.905 GB / 2.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/30, allocations: 2 kB / 21.48 GB, free: 1.905 GB / 2.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.685/37.69, allocations: 8.895 GB / 30.37 GB, free: 0.8545 GB / 2.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01137/37.7, allocations: 4.804 MB / 30.38 GB, free: 0.8506 GB / 2.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00263/37.7, allocations: 0.6261 MB / 30.38 GB, free: 0.85 GB / 2.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005533/37.71, allocations: 0.6628 MB / 30.38 GB, free: 0.8494 GB / 2.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003439/37.71, allocations: 0.5501 MB / 30.38 GB, free: 0.8488 GB / 2.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002527/37.71, allocations: 0.625 MB / 30.38 GB, free: 0.8482 GB / 2.295 GB Notification: Performance of sorting global known variables: time 0.001839/37.72, allocations: 1.062 MB / 30.38 GB, free: 0.8472 GB / 2.295 GB Notification: Performance of sort global known variables: time 2.21e-07/37.72, allocations: 0 / 30.38 GB, free: 0.8472 GB / 2.295 GB Notification: Performance of remove unused functions: time 0.04466/37.76, allocations: 9.519 MB / 30.39 GB, free: 0.8379 GB / 2.295 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (82): * Single equations (assignments): 76 * 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 8.623/46.38, allocations: 8.896 GB / 39.28 GB, free: 1.687 GB / 2.295 GB Notification: Performance of simCode: created initialization part: time 0.1025/46.49, allocations: 81.77 MB / 39.36 GB, free: 1.607 GB / 2.295 GB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/46.49, allocations: 0 / 39.36 GB, free: 1.607 GB / 2.295 GB Notification: Performance of simCode: created simulation system equations: time 56.82/103.3, allocations: 28.59 GB / 67.95 GB, free: 291.7 MB / 3.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007537/103.3, allocations: 1.057 MB / 67.95 GB, free: 290.7 MB / 3.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.021/104.3, allocations: 1.103 GB / 69.06 GB, free: 1.897 GB / 3.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009623/104.3, allocations: 9.128 MB / 69.07 GB, free: 1.888 GB / 3.092 GB Notification: Performance of simCode: alias equations: time 0.008436/104.4, allocations: 4.085 MB / 69.07 GB, free: 1.884 GB / 3.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01165/104.4, allocations: 7.049 MB / 69.08 GB, free: 1.878 GB / 3.092 GB Notification: Performance of SimCode: time 2.594e-06/104.4, allocations: 0 / 69.08 GB, free: 1.878 GB / 3.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5294/104.9, allocations: 406.6 MB / 69.47 GB, free: 1.48 GB / 3.092 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001642/104.9, allocations: 261.9 kB / 69.47 GB, free: 1.48 GB / 3.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.52/130.4, allocations: 0 / 69.47 GB, free: 1.48 GB / 3.092 GB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier6pulseFFT_fmu --startTime=0 --stopTime=0.25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier6pulseFFT.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat does not exist to compare? outputFormat=mat