Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.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.Rectifier12pulseFFT,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier12pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier12pulseFFT",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.001133/0.001133, allocations: 87.92 kB / 16.31 MB, free: 6.449 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.001185/0.001185, allocations: 186.2 kB / 17.21 MB, free: 6.32 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.377/1.377, allocations: 223.3 MB / 241.2 MB, free: 272 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002892/0.0002894, allocations: 8 kB / 300.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1017, allocations: 50.42 MB / 351.3 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.009606/0.1114, allocations: 9.641 MB / 361 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008011/0.1194, allocations: 3.631 MB / 364.6 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002412/0.1219, allocations: 79.56 kB / 364.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.1242, allocations: 0.6135 MB / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003956/0.1282, allocations: 1.604 MB / 366.9 MB, free: 4.281 MB / 302.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.00159/0.1298, allocations: 467.2 kB / 367.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.3479/0.4777, allocations: 5.523 MB / 372.9 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005067/0.4828, allocations: 3.07 MB / 376 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004195/0.487, allocations: 2.178 MB / 378.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005785/0.4928, allocations: 2.823 MB / 381 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001896/0.4948, allocations: 270.6 kB / 381.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004272/0.4991, allocations: 0.5271 MB / 381.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007222/0.5063, allocations: 4.867 MB / 386.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00553/0.5119, allocations: 2.558 MB / 389.2 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01167/0.5236, allocations: 12.7 MB / 401.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.5236, allocations: 0 / 401.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.5236, allocations: 0 / 401.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0007901/0.5244, allocations: 0 / 401.9 MB, free: 15.88 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: 5853 * Number of variables: 5853 Notification: Performance of Generate backend data structure: time 0.02302/0.5474, allocations: 16.92 MB / 418.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/0.5475, allocations: 8.031 kB / 418.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00642/0.5539, allocations: 2.294 MB / 421.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006331/0.5603, allocations: 1.727 MB / 422.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009303/0.5696, allocations: 4.085 MB / 426.9 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000316/0.57, allocations: 294.7 kB / 427.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001075/0.5711, allocations: 395.7 kB / 427.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03945/0.6105, allocations: 29.56 MB / 457.1 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-05/0.6107, allocations: 3.938 kB / 457.1 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004776/0.6111, allocations: 163.9 kB / 457.3 MB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002456/0.6114, allocations: 208 kB / 457.5 MB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03616/0.6476, allocations: 26.71 MB / 484.2 MB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03975/0.6874, allocations: 22.26 MB / 0.4946 GB, free: 7.883 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2745/0.9619, allocations: 85.78 MB / 0.5784 GB, free: 105.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.04313/1.005, allocations: 81.66 MB / 0.6581 GB, free: 32.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002841/1.005, allocations: 139.1 kB / 0.6583 GB, free: 32.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02198/1.027, allocations: 30.63 MB / 0.6882 GB, free: 3.613 MB / 446.1 MB Notification: Performance of pre-optimization done (n=5058): time 4.469e-06/1.027, allocations: 0 / 0.6882 GB, free: 3.613 MB / 446.1 MB Notification: Performance of matching and sorting (n=5065): time 13.01/14.03, allocations: 2.903 GB / 3.592 GB, free: 10.65 MB / 1.826 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0051/14.04, allocations: 7.359 MB / 3.599 GB, free: 3.16 MB / 1.826 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004062/14.04, allocations: 2.622 MB / 3.601 GB, free: 0.5195 MB / 1.826 GB Notification: Performance of collectPreVariables (initialization): time 0.005701/14.05, allocations: 3.952 MB / 3.605 GB, free: 12.55 MB / 1.842 GB Notification: Performance of collectInitialEqns (initialization): time 0.002339/14.05, allocations: 1.741 MB / 3.607 GB, free: 10.79 MB / 1.842 GB Notification: Performance of collectInitialBindings (initialization): time 0.03171/14.08, allocations: 21.64 MB / 3.628 GB, free: 4.863 MB / 1.858 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006367/14.09, allocations: 1.52 MB / 3.629 GB, free: 3.348 MB / 1.858 GB Notification: Performance of setup shared object (initialization): time 0.00686/14.1, allocations: 3.503 MB / 3.633 GB, free: 15.83 MB / 1.873 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.06016/14.16, allocations: 26.84 MB / 3.659 GB, free: 4.965 MB / 1.889 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.09433/14.25, allocations: 58.76 MB / 3.716 GB, free: 11.45 MB / 1.967 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06694/14.32, allocations: 38.48 MB / 3.754 GB, free: 4.914 MB / 1.998 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001721/14.32, allocations: 308 kB / 3.754 GB, free: 4.613 MB / 1.998 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1934/14.51, allocations: 87.69 MB / 3.84 GB, free: 12.81 MB / 2.092 GB Notification: Performance of prepare postOptimizeDAE: time 0.001669/14.52, allocations: 489.7 kB / 3.84 GB, free: 12.32 MB / 2.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002299/14.52, allocations: 1.032 MB / 3.841 GB, free: 11.29 MB / 2.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009736/14.53, allocations: 3.268 MB / 3.845 GB, free: 8.004 MB / 2.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0458/14.57, allocations: 10.72 MB / 3.855 GB, free: 13.26 MB / 2.108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02815/14.6, allocations: 25.61 MB / 3.88 GB, free: 2.328 MB / 2.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03778/14.64, allocations: 2.492 MB / 3.883 GB, free: 15.83 MB / 2.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01111/14.65, allocations: 3.598 MB / 3.886 GB, free: 12.23 MB / 2.139 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.03473/14.69, allocations: 15.08 MB / 3.901 GB, free: 13.09 MB / 2.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00653/14.69, allocations: 2.35 MB / 3.903 GB, free: 10.72 MB / 2.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.176/22.87, allocations: 8.843 GB / 12.75 GB, free: 1.748 GB / 2.42 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.323e-05/22.87, allocations: 24 kB / 12.75 GB, free: 1.748 GB / 2.42 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-05/22.87, allocations: 9.203 kB / 12.75 GB, free: 1.748 GB / 2.42 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.207e-05/22.87, allocations: 11.95 kB / 12.75 GB, free: 1.748 GB / 2.42 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.812/30.68, allocations: 8.865 GB / 21.61 GB, free: 1.119 GB / 2.42 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.221e-05/30.68, allocations: 0 / 21.61 GB, free: 1.119 GB / 2.42 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/30.68, allocations: 290.2 kB / 21.61 GB, free: 1.119 GB / 2.42 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004596/30.69, allocations: 1.622 MB / 21.61 GB, free: 1.117 GB / 2.42 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002726/30.69, allocations: 0.6523 MB / 21.61 GB, free: 1.117 GB / 2.42 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01845/30.71, allocations: 23.23 MB / 21.64 GB, free: 1.093 GB / 2.42 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/30.71, allocations: 3.75 kB / 21.64 GB, free: 1.093 GB / 2.42 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.693/38.4, allocations: 8.897 GB / 30.53 GB, free: 448.8 MB / 2.42 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008711/38.41, allocations: 5.084 MB / 30.54 GB, free: 444.6 MB / 2.42 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002607/38.41, allocations: 0.6484 MB / 30.54 GB, free: 443.9 MB / 2.42 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005453/38.42, allocations: 0.7238 MB / 30.54 GB, free: 443.2 MB / 2.42 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002142/38.42, allocations: 0.6493 MB / 30.54 GB, free: 442.6 MB / 2.42 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001068/38.42, allocations: 0.6562 MB / 30.54 GB, free: 441.9 MB / 2.42 GB Notification: Performance of sorting global known variables: time 0.00236/38.42, allocations: 1.833 MB / 30.54 GB, free: 440.1 MB / 2.42 GB Notification: Performance of sort global known variables: time 1.31e-07/38.42, allocations: 2 kB / 30.54 GB, free: 440.1 MB / 2.42 GB Notification: Performance of remove unused functions: time 0.04123/38.46, allocations: 9.964 MB / 30.55 GB, free: 430.1 MB / 2.42 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 8.184/46.65, allocations: 8.899 GB / 39.45 GB, free: 1.814 GB / 2.42 GB Notification: Performance of simCode: created initialization part: time 0.1174/46.77, allocations: 84.21 MB / 39.53 GB, free: 1.732 GB / 2.42 GB Notification: Performance of simCode: created event and clocks part: time 2.171e-05/46.77, allocations: 0 / 39.53 GB, free: 1.732 GB / 2.42 GB Notification: Performance of simCode: created simulation system equations: time 55.76/102.5, allocations: 28.59 GB / 68.13 GB, free: 0.9731 GB / 2.748 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01977/102.6, allocations: 2.105 MB / 68.13 GB, free: 0.9711 GB / 2.748 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4272/103, allocations: 437 MB / 68.56 GB, free: 0.5215 GB / 2.748 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01283/103, allocations: 9.991 MB / 68.57 GB, free: 0.5117 GB / 2.748 GB Notification: Performance of simCode: alias equations: time 0.01083/103, allocations: 4.363 MB / 68.57 GB, free: 0.5075 GB / 2.748 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01482/103, allocations: 8.04 MB / 68.58 GB, free: 0.4996 GB / 2.748 GB Notification: Performance of SimCode: time 1.413e-06/103, allocations: 0 / 68.58 GB, free: 0.4996 GB / 2.748 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5904/103.6, allocations: 446.8 MB / 69.01 GB, free: 65.8 MB / 2.748 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/103.6, allocations: 266.1 kB / 69.01 GB, free: 65.45 MB / 2.748 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.05/128.7, allocations: 5.969 kB / 69.01 GB, free: 65.44 MB / 2.748 GB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier12pulseFFT_fmu --startTime=0 --stopTime=0.25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Rectifier12pulseFFT.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat does not exist to compare? outputFormat=mat