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.0009062/0.0009062, allocations: 94.59 kB / 16.3 MB, free: 5.523 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.0009928/0.0009928, allocations: 184.9 kB / 17.2 MB, free: 5.457 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.393/1.393, allocations: 223.2 MB / 241.1 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000319/0.0003191, allocations: 8 kB / 300.8 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1189, allocations: 50.42 MB / 351.2 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.009597/0.1286, allocations: 8.836 MB / 360.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008475/0.1371, allocations: 3.753 MB / 363.8 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003166/0.1403, allocations: 75.56 kB / 363.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002565/0.1429, allocations: 0.6452 MB / 364.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004805/0.1477, allocations: 1.544 MB / 366.1 MB, free: 4.82 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.002022/0.1498, allocations: 451.2 kB / 366.5 MB, free: 4.379 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005814/0.1556, allocations: 3.424 MB / 369.9 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.4058/0.5614, allocations: 3.07 MB / 373 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005486/0.567, allocations: 2.063 MB / 375.1 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007497/0.5746, allocations: 2.525 MB / 377.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00198/0.5766, allocations: 271.9 kB / 377.9 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003964/0.5806, allocations: 0.51 MB / 378.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007592/0.5882, allocations: 4.802 MB / 383.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01055/0.5988, allocations: 2.559 MB / 385.7 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02091/0.6198, allocations: 12.38 MB / 398.1 MB, free: 2.219 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.6198, allocations: 0 / 398.1 MB, free: 2.219 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.6198, allocations: 0 / 398.1 MB, free: 2.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.001289/0.6211, allocations: 3.125 kB / 398.1 MB, free: 2.219 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: 5853 * Number of variables: 5853 Notification: Performance of Generate backend data structure: time 0.03283/0.654, allocations: 16.91 MB / 415 MB, free: 2.816 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.654, allocations: 12.03 kB / 415 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005586/0.6596, allocations: 2.294 MB / 417.3 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005465/0.6651, allocations: 1.727 MB / 419.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01026/0.6754, allocations: 4.076 MB / 423.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002873/0.6757, allocations: 296 kB / 423.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001307/0.6771, allocations: 392.8 kB / 423.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04636/0.7234, allocations: 29.52 MB / 453.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.212e-05/0.7236, allocations: 4 kB / 453.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005054/0.7241, allocations: 164.2 kB / 453.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002313/0.7243, allocations: 212 kB / 453.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04058/0.7649, allocations: 26.7 MB / 480.4 MB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05188/0.8168, allocations: 22.26 MB / 0.4909 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2851/1.102, allocations: 86.13 MB / 0.575 GB, free: 77.76 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003382/1.102, allocations: 135.7 kB / 0.5751 GB, free: 77.67 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03979/1.142, allocations: 30.65 MB / 0.6051 GB, free: 55.58 MB / 430.1 MB Notification: Performance of pre-optimization done (n=5058): time 5.791e-06/1.142, allocations: 0 / 0.6051 GB, free: 55.58 MB / 430.1 MB Notification: Performance of matching and sorting (n=5065): time 13.54/14.69, allocations: 2.907 GB / 3.512 GB, free: 123.8 MB / 1.858 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00359/14.69, allocations: 7.359 MB / 3.519 GB, free: 116.7 MB / 1.858 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003846/14.69, allocations: 2.621 MB / 3.521 GB, free: 114.1 MB / 1.858 GB Notification: Performance of collectPreVariables (initialization): time 0.004804/14.7, allocations: 3.956 MB / 3.525 GB, free: 110.1 MB / 1.858 GB Notification: Performance of collectInitialEqns (initialization): time 0.002051/14.7, allocations: 1.749 MB / 3.527 GB, free: 108.3 MB / 1.858 GB Notification: Performance of collectInitialBindings (initialization): time 0.02804/14.73, allocations: 21.64 MB / 3.548 GB, free: 86.66 MB / 1.858 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007725/14.74, allocations: 1.512 MB / 3.55 GB, free: 85.15 MB / 1.858 GB Notification: Performance of setup shared object (initialization): time 0.007924/14.74, allocations: 3.507 MB / 3.553 GB, free: 81.63 MB / 1.858 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05034/14.8, allocations: 26.86 MB / 3.579 GB, free: 54.75 MB / 1.858 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.09008/14.89, allocations: 58.47 MB / 3.636 GB, free: 13.52 MB / 1.889 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.08722/14.97, allocations: 38.5 MB / 3.674 GB, free: 6.957 MB / 1.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002774/14.98, allocations: 300 kB / 3.674 GB, free: 6.664 MB / 1.92 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1787/15.15, allocations: 87.73 MB / 3.76 GB, free: 14.82 MB / 2.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.001906/15.16, allocations: 481.7 kB / 3.76 GB, free: 14.34 MB / 2.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002682/15.16, allocations: 1.035 MB / 3.761 GB, free: 13.3 MB / 2.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009659/15.17, allocations: 3.254 MB / 3.765 GB, free: 10.02 MB / 2.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03908/15.21, allocations: 10.73 MB / 3.775 GB, free: 15.27 MB / 2.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03122/15.24, allocations: 26.02 MB / 3.8 GB, free: 3.918 MB / 2.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0358/15.27, allocations: 2.488 MB / 3.803 GB, free: 1.43 MB / 2.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0112/15.29, allocations: 3.602 MB / 3.806 GB, free: 13.83 MB / 2.061 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.0391/15.33, allocations: 15.08 MB / 3.821 GB, free: 14.69 MB / 2.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007747/15.33, allocations: 2.354 MB / 3.823 GB, free: 12.31 MB / 2.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.116/23.45, allocations: 8.844 GB / 12.67 GB, free: 1.095 GB / 2.686 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.72e-05/23.45, allocations: 24 kB / 12.67 GB, free: 1.095 GB / 2.686 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.702e-05/23.45, allocations: 11.17 kB / 12.67 GB, free: 1.095 GB / 2.686 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.576e-05/23.45, allocations: 11.95 kB / 12.67 GB, free: 1.095 GB / 2.686 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.032/31.48, allocations: 8.865 GB / 21.53 GB, free: 1.529 GB / 2.686 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-05/31.48, allocations: 2.719 kB / 21.53 GB, free: 1.529 GB / 2.686 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/31.48, allocations: 293.1 kB / 21.53 GB, free: 1.529 GB / 2.686 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005536/31.49, allocations: 1.62 MB / 21.53 GB, free: 1.528 GB / 2.686 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004146/31.49, allocations: 0.6529 MB / 21.53 GB, free: 1.527 GB / 2.686 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02026/31.51, allocations: 23.64 MB / 21.56 GB, free: 1.503 GB / 2.686 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.686e-06/31.51, allocations: 0 / 21.56 GB, free: 1.503 GB / 2.686 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.782/39.3, allocations: 8.898 GB / 30.46 GB, free: 1.913 GB / 2.686 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01492/39.31, allocations: 5.095 MB / 30.46 GB, free: 1.909 GB / 2.686 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004335/39.31, allocations: 0.6495 MB / 30.46 GB, free: 1.908 GB / 2.686 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007929/39.32, allocations: 0.7234 MB / 30.46 GB, free: 1.908 GB / 2.686 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004178/39.33, allocations: 0.658 MB / 30.46 GB, free: 1.907 GB / 2.686 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00314/39.33, allocations: 0.6504 MB / 30.46 GB, free: 1.906 GB / 2.686 GB Notification: Performance of sorting global known variables: time 0.002746/39.33, allocations: 1.841 MB / 30.46 GB, free: 1.905 GB / 2.686 GB Notification: Performance of sort global known variables: time 3.8e-07/39.33, allocations: 0 / 30.46 GB, free: 1.905 GB / 2.686 GB Notification: Performance of remove unused functions: time 0.04714/39.38, allocations: 9.958 MB / 30.47 GB, free: 1.895 GB / 2.686 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 7.779/47.16, allocations: 8.899 GB / 39.37 GB, free: 2.265 GB / 2.686 GB Notification: Performance of simCode: created initialization part: time 0.1141/47.27, allocations: 84.24 MB / 39.46 GB, free: 2.216 GB / 2.686 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/47.27, allocations: 4.438 kB / 39.46 GB, free: 2.216 GB / 2.686 GB Notification: Performance of simCode: created simulation system equations: time 54.22/101.5, allocations: 28.59 GB / 68.05 GB, free: 314.2 MB / 3.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01601/101.5, allocations: 1.474 MB / 68.05 GB, free: 312.8 MB / 3.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.274/102.8, allocations: 1.131 GB / 69.18 GB, free: 2.002 GB / 3.217 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03321/102.8, allocations: 10.29 MB / 69.19 GB, free: 1.992 GB / 3.217 GB Notification: Performance of simCode: alias equations: time 0.01883/102.8, allocations: 4.365 MB / 69.2 GB, free: 1.987 GB / 3.217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02048/102.9, allocations: 8.044 MB / 69.2 GB, free: 1.979 GB / 3.217 GB Notification: Performance of SimCode: time 1.553e-06/102.9, allocations: 0 / 69.2 GB, free: 1.979 GB / 3.217 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6796/103.5, allocations: 446.7 MB / 69.64 GB, free: 1.544 GB / 3.217 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/103.5, allocations: 255.1 kB / 69.64 GB, free: 1.544 GB / 3.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.96/130.5, allocations: 0 / 69.64 GB, free: 1.544 GB / 3.217 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