Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009233/0.0009233, allocations: 101.8 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009508/0.0009509, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003782/0.0003783, allocations: 8 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1115, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.006771/0.1183, allocations: 5.782 MB / 364 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0051/0.1235, allocations: 2.837 MB / 366.8 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007443/0.1242, allocations: 43.75 kB / 366.9 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.1253, allocations: 445.9 kB / 367.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001656/0.127, allocations: 1.147 MB / 368.4 MB, free: 3.484 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.00087/0.1279, allocations: 343.3 kB / 368.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002326/0.1302, allocations: 1.977 MB / 370.8 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3403/0.4706, allocations: 1.693 MB / 372.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002642/0.4733, allocations: 1.351 MB / 373.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003432/0.4767, allocations: 1.679 MB / 375.5 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006498/0.4774, allocations: 150 kB / 375.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002039/0.4794, allocations: 407.3 kB / 376 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004542/0.484, allocations: 4.293 MB / 380.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006286/0.4903, allocations: 2.148 MB / 382.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01619/0.5065, allocations: 9.31 MB / 391.8 MB, free: 4.828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.5065, allocations: 0 / 391.8 MB, free: 4.828 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.5066, allocations: 0 / 391.8 MB, free: 4.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0009015/0.5075, allocations: 4 kB / 391.8 MB, free: 4.824 MB / 302.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.02773/0.5352, allocations: 15.12 MB / 406.9 MB, free: 9.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/0.5353, allocations: 12.03 kB / 406.9 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005195/0.5405, allocations: 2.061 MB / 409 MB, free: 7.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005276/0.5458, allocations: 1.518 MB / 410.5 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008618/0.5544, allocations: 2.963 MB / 413.5 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.5547, allocations: 164.4 kB / 413.6 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006614/0.5553, allocations: 218.6 kB / 413.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04083/0.5962, allocations: 26.93 MB / 440.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.982e-05/0.5963, allocations: 0 / 440.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002595/0.5965, allocations: 90.66 kB / 440.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/0.5967, allocations: 112.5 kB / 441 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03638/0.6331, allocations: 24.44 MB / 465.4 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03384/0.6669, allocations: 14.68 MB / 480.1 MB, free: 244 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3475/1.014, allocations: 82.37 MB / 0.5493 GB, free: 131.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003371/1.015, allocations: 126 kB / 0.5494 GB, free: 131.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.05001/1.065, allocations: 29.81 MB / 0.5785 GB, free: 116.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4937): time 4.137e-06/1.065, allocations: 0 / 0.5785 GB, free: 116.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=4941): time 12.04/13.1, allocations: 2.9 GB / 3.478 GB, free: 12.34 MB / 1.951 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005759/13.11, allocations: 7.192 MB / 3.486 GB, free: 5.055 MB / 1.951 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002823/13.11, allocations: 1.491 MB / 3.487 GB, free: 3.547 MB / 1.951 GB Notification: Performance of collectPreVariables (initialization): time 0.006179/13.12, allocations: 3.932 MB / 3.491 GB, free: 15.59 MB / 1.967 GB Notification: Performance of collectInitialEqns (initialization): time 0.001646/13.12, allocations: 1.03 MB / 3.492 GB, free: 14.55 MB / 1.967 GB Notification: Performance of collectInitialBindings (initialization): time 0.3592/13.48, allocations: 21.22 MB / 3.513 GB, free: 1.657 GB / 1.967 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008884/13.49, allocations: 1.494 MB / 3.514 GB, free: 1.657 GB / 1.967 GB Notification: Performance of setup shared object (initialization): time 0.008762/13.5, allocations: 3.457 MB / 3.517 GB, free: 1.656 GB / 1.967 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05234/13.55, allocations: 26.22 MB / 3.543 GB, free: 1.642 GB / 1.967 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.07452/13.62, allocations: 57.62 MB / 3.599 GB, free: 1.571 GB / 1.967 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0581/13.68, allocations: 37.73 MB / 3.636 GB, free: 1.534 GB / 1.967 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001912/13.68, allocations: 303.9 kB / 3.636 GB, free: 1.534 GB / 1.967 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1851/13.87, allocations: 85.59 MB / 3.72 GB, free: 1.452 GB / 1.967 GB Notification: Performance of prepare postOptimizeDAE: time 0.001957/13.87, allocations: 483.1 kB / 3.72 GB, free: 1.451 GB / 1.967 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002486/13.87, allocations: 1.031 MB / 3.721 GB, free: 1.45 GB / 1.967 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005233/13.88, allocations: 2.444 MB / 3.724 GB, free: 1.448 GB / 1.967 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04574/13.92, allocations: 10.54 MB / 3.734 GB, free: 1.438 GB / 1.967 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01686/13.94, allocations: 12.85 MB / 3.747 GB, free: 1.425 GB / 1.967 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04874/13.99, allocations: 2.426 MB / 3.749 GB, free: 1.422 GB / 1.967 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009693/14, allocations: 3.566 MB / 3.753 GB, free: 1.419 GB / 1.967 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.03453/14.03, allocations: 14.5 MB / 3.767 GB, free: 1.405 GB / 1.967 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005766/14.04, allocations: 2.213 MB / 3.769 GB, free: 1.404 GB / 1.967 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.081/22.12, allocations: 8.841 GB / 12.61 GB, free: 0.6816 GB / 1.967 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/22.12, allocations: 15.16 kB / 12.61 GB, free: 0.6816 GB / 1.967 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/22.12, allocations: 4 kB / 12.61 GB, free: 0.6816 GB / 1.967 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.711e-05/22.12, allocations: 4.984 kB / 12.61 GB, free: 0.6816 GB / 1.967 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.964/31.08, allocations: 8.861 GB / 21.47 GB, free: 1.554 GB / 1.967 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.646e-05/31.08, allocations: 9.781 kB / 21.47 GB, free: 1.554 GB / 1.967 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008037/31.09, allocations: 163.9 kB / 21.47 GB, free: 1.554 GB / 1.967 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002474/31.09, allocations: 0.8097 MB / 21.47 GB, free: 1.554 GB / 1.967 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003216/31.09, allocations: 0.6195 MB / 21.47 GB, free: 1.553 GB / 1.967 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00978/31.1, allocations: 10.61 MB / 21.48 GB, free: 1.543 GB / 1.967 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/31.1, allocations: 3 kB / 21.48 GB, free: 1.543 GB / 1.967 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.499/39.6, allocations: 8.895 GB / 30.38 GB, free: 0.7581 GB / 1.967 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01344/39.61, allocations: 4.802 MB / 30.38 GB, free: 0.7542 GB / 1.967 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00407/39.62, allocations: 0.626 MB / 30.38 GB, free: 0.7536 GB / 1.967 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008587/39.63, allocations: 0.6657 MB / 30.38 GB, free: 0.7529 GB / 1.967 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004488/39.63, allocations: 0.5538 MB / 30.38 GB, free: 0.7524 GB / 1.967 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00399/39.63, allocations: 0.6233 MB / 30.39 GB, free: 0.7518 GB / 1.967 GB Notification: Performance of sorting global known variables: time 0.001628/39.64, allocations: 1.057 MB / 30.39 GB, free: 0.7507 GB / 1.967 GB Notification: Performance of sort global known variables: time 1.1e-07/39.64, allocations: 1.875 kB / 30.39 GB, free: 0.7507 GB / 1.967 GB Notification: Performance of remove unused functions: time 0.05119/39.69, allocations: 9.509 MB / 30.4 GB, free: 0.7415 GB / 1.967 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.631/48.32, allocations: 8.896 GB / 39.29 GB, free: 1.546 GB / 1.967 GB Notification: Performance of simCode: created initialization part: time 0.1196/48.44, allocations: 81.77 MB / 39.37 GB, free: 1.49 GB / 1.967 GB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/48.44, allocations: 4.25 kB / 39.37 GB, free: 1.49 GB / 1.967 GB Notification: Performance of simCode: created simulation system equations: time 60.91/109.3, allocations: 28.59 GB / 67.96 GB, free: 2.01 GB / 2.826 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01033/109.4, allocations: 1.052 MB / 67.96 GB, free: 2.009 GB / 2.826 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5865/109.9, allocations: 1.103 GB / 69.06 GB, free: 0.8771 GB / 2.826 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01427/110, allocations: 9.125 MB / 69.07 GB, free: 0.8681 GB / 2.826 GB Notification: Performance of simCode: alias equations: time 0.01045/110, allocations: 4.088 MB / 69.08 GB, free: 0.8641 GB / 2.826 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01454/110, allocations: 7.049 MB / 69.08 GB, free: 0.8572 GB / 2.826 GB Notification: Performance of SimCode: time 7.91e-07/110, allocations: 2.844 kB / 69.08 GB, free: 0.8572 GB / 2.826 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5518/110.5, allocations: 406.6 MB / 69.48 GB, free: 471.1 MB / 2.826 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/110.5, allocations: 258.5 kB / 69.48 GB, free: 470.8 MB / 2.826 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.82/134.4, allocations: 0 / 69.48 GB, free: 470.8 MB / 2.826 GB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Rectifier6pulseFFT_fmu --startTime=0 --stopTime=0.25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Rectifier6pulseFFT.fmu > Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat does not exist to compare? outputFormat=mat