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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cDC1.v|cDC2.v|transformer1.l2sigma.inductor.1..i|transformer1.l2sigma.inductor.2..i|transformer1.l2sigma.inductor.3..i|realFFT.iTick",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cDC1.v|cDC2.v|transformer1.l2sigma.inductor.1..i|transformer1.l2sigma.inductor.2..i|transformer1.l2sigma.inductor.3..i|realFFT.iTick",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008112/0.0008113, allocations: 178.6 kB / 17.04 MB, free: 5.109 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.207/1.207, allocations: 223.3 MB / 241 MB, free: 11.82 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000684/0.0006841, allocations: 101.8 kB / 292.2 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002185/0.0002185, allocations: 11.94 kB / 351.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1759/0.1761, allocations: 50.4 MB / 402.2 MB, free: 32.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.006171/0.1823, allocations: 9.634 MB / 411.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003764/0.1861, allocations: 3.638 MB / 415.5 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005479/0.1867, allocations: 83.56 kB / 415.5 MB, free: 19.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009653/0.1877, allocations: 0.6135 MB / 416.2 MB, free: 18.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001457/0.1891, allocations: 1.596 MB / 417.8 MB, free: 16.96 MB / 298.7 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.0007384/0.1899, allocations: 467.3 kB / 418.2 MB, free: 16.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003043/0.1929, allocations: 5.526 MB / 423.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00226/0.1952, allocations: 3.068 MB / 426.8 MB, free: 7.832 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001585/0.1968, allocations: 2.169 MB / 429 MB, free: 5.656 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002134/0.1989, allocations: 2.823 MB / 431.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003712/0.1993, allocations: 268 kB / 432.1 MB, free: 2.562 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001205/0.2005, allocations: 0.5386 MB / 432.6 MB, free: 2.023 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002654/0.2032, allocations: 4.861 MB / 437.5 MB, free: 13.15 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001836/0.205, allocations: 2.559 MB / 440 MB, free: 10.57 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009458/0.2145, allocations: 12.7 MB / 452.7 MB, free: 13.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2145, allocations: 0 / 452.7 MB, free: 13.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2145, allocations: 0 / 452.7 MB, free: 13.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002474/0.2148, allocations: 4 kB / 452.7 MB, free: 13.83 MB / 330.7 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.01747/0.2323, allocations: 16.92 MB / 469.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.2323, allocations: 11.97 kB / 469.6 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002711/0.235, allocations: 1.727 MB / 471.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00552/0.2406, allocations: 4.083 MB / 475.5 MB, free: 6.848 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.2408, allocations: 299.9 kB / 475.8 MB, free: 6.555 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005012/0.2413, allocations: 395.8 kB / 476.1 MB, free: 6.168 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02735/0.2686, allocations: 29.55 MB / 0.4938 GB, free: 8.539 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.004e-05/0.2687, allocations: 3.938 kB / 0.4938 GB, free: 8.535 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003715/0.2691, allocations: 164 kB / 0.494 GB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001825/0.2693, allocations: 208 kB / 0.4942 GB, free: 8.168 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3029/0.5722, allocations: 26.69 MB / 0.5203 GB, free: 76.04 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02512/0.5974, allocations: 22.28 MB / 0.542 GB, free: 53.86 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04369/0.6411, allocations: 85.78 MB / 0.6258 GB, free: 15.71 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1963/0.8375, allocations: 81.69 MB / 0.7056 GB, free: 134.8 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.8378, allocations: 132 kB / 0.7057 GB, free: 134.7 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01777/0.8556, allocations: 30.64 MB / 0.7356 GB, free: 109.1 MB / 458.8 MB Notification: Performance of pre-optimization done (n=5058): time 4.549e-06/0.8556, allocations: 0 / 0.7356 GB, free: 109.1 MB / 458.8 MB Notification: Performance of matching and sorting (n=5065): time 8.96/9.815, allocations: 2.901 GB / 3.637 GB, free: 1.586 GB / 1.917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003216/9.818, allocations: 7.369 MB / 3.644 GB, free: 1.579 GB / 1.917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003189/9.822, allocations: 2.625 MB / 3.647 GB, free: 1.576 GB / 1.917 GB Notification: Performance of collectPreVariables (initialization): time 0.003965/9.826, allocations: 3.955 MB / 3.651 GB, free: 1.573 GB / 1.917 GB Notification: Performance of collectInitialEqns (initialization): time 0.001121/9.827, allocations: 1.74 MB / 3.652 GB, free: 1.571 GB / 1.917 GB Notification: Performance of collectInitialBindings (initialization): time 0.01445/9.841, allocations: 21.64 MB / 3.674 GB, free: 1.55 GB / 1.917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004565/9.846, allocations: 1.508 MB / 3.675 GB, free: 1.548 GB / 1.917 GB Notification: Performance of setup shared object (initialization): time 0.004437/9.85, allocations: 3.507 MB / 3.678 GB, free: 1.545 GB / 1.917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03914/9.889, allocations: 26.85 MB / 3.705 GB, free: 1.519 GB / 1.917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05673/9.946, allocations: 58.75 MB / 3.762 GB, free: 1.447 GB / 1.917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04845/9.995, allocations: 38.48 MB / 3.8 GB, free: 1.409 GB / 1.917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001323/9.996, allocations: 304 kB / 3.8 GB, free: 1.409 GB / 1.917 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.132/10.13, allocations: 87.69 MB / 3.886 GB, free: 1.323 GB / 1.917 GB Notification: Performance of prepare postOptimizeDAE: time 0.001588/10.13, allocations: 488.5 kB / 3.886 GB, free: 1.323 GB / 1.917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002131/10.13, allocations: 1.031 MB / 3.887 GB, free: 1.322 GB / 1.917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00738/10.14, allocations: 3.265 MB / 3.89 GB, free: 1.318 GB / 1.917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03325/10.17, allocations: 10.72 MB / 3.901 GB, free: 1.308 GB / 1.917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0202/10.19, allocations: 25.61 MB / 3.926 GB, free: 1.282 GB / 1.917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02623/10.22, allocations: 2.492 MB / 3.928 GB, free: 1.279 GB / 1.917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006798/10.23, allocations: 3.601 MB / 3.932 GB, free: 1.276 GB / 1.917 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.02015/10.25, allocations: 15.07 MB / 3.946 GB, free: 1.261 GB / 1.917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002775/10.25, allocations: 2.35 MB / 3.949 GB, free: 1.258 GB / 1.917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.245/16.49, allocations: 8.843 GB / 12.79 GB, free: 214.5 MB / 1.917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/16.49, allocations: 24 kB / 12.79 GB, free: 214.5 MB / 1.917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.537e-05/16.49, allocations: 8 kB / 12.79 GB, free: 214.5 MB / 1.917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.332e-05/16.49, allocations: 11.95 kB / 12.79 GB, free: 214.5 MB / 1.917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.643/23.14, allocations: 8.865 GB / 21.66 GB, free: 0.6811 GB / 1.917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/23.14, allocations: 0 / 21.66 GB, free: 0.6811 GB / 1.917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/23.14, allocations: 292.7 kB / 21.66 GB, free: 0.6809 GB / 1.917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004705/23.14, allocations: 1.628 MB / 21.66 GB, free: 0.6793 GB / 1.917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002003/23.15, allocations: 0.6445 MB / 21.66 GB, free: 0.6787 GB / 1.917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01698/23.16, allocations: 23.23 MB / 21.68 GB, free: 0.655 GB / 1.917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/23.16, allocations: 0 / 21.68 GB, free: 0.655 GB / 1.917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.153/30.32, allocations: 8.897 GB / 30.58 GB, free: 1.096 GB / 1.917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009039/30.32, allocations: 5.087 MB / 30.58 GB, free: 1.092 GB / 1.917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002289/30.33, allocations: 0.6521 MB / 30.59 GB, free: 1.091 GB / 1.917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005168/30.33, allocations: 0.7195 MB / 30.59 GB, free: 1.09 GB / 1.917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002/30.33, allocations: 0.6536 MB / 30.59 GB, free: 1.09 GB / 1.917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001088/30.34, allocations: 0.6593 MB / 30.59 GB, free: 1.089 GB / 1.917 GB Notification: Performance of sorting global known variables: time 0.002245/30.34, allocations: 1.837 MB / 30.59 GB, free: 1.087 GB / 1.917 GB Notification: Performance of sort global known variables: time 1.4e-07/30.34, allocations: 0 / 30.59 GB, free: 1.087 GB / 1.917 GB Notification: Performance of remove unused functions: time 0.03265/30.37, allocations: 9.96 MB / 30.6 GB, free: 1.078 GB / 1.917 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 0.003173/30.37, allocations: 0.995 MB / 30.6 GB, free: 1.077 GB / 1.917 GB Notification: Performance of simCode: created initialization part: time 0.08816/30.46, allocations: 84.19 MB / 30.68 GB, free: 0.9948 GB / 1.917 GB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/30.46, allocations: 8.062 kB / 30.68 GB, free: 0.9948 GB / 1.917 GB Notification: Performance of simCode: created simulation system equations: time 41.88/72.34, allocations: 28.59 GB / 59.27 GB, free: 1.789 GB / 2.417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01237/72.35, allocations: 2.111 MB / 59.28 GB, free: 1.787 GB / 2.417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0844/72.44, allocations: 65.63 MB / 59.34 GB, free: 1.723 GB / 2.417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01104/72.45, allocations: 9.919 MB / 59.35 GB, free: 1.713 GB / 2.417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005466/72.46, allocations: 1.339 MB / 59.35 GB, free: 1.712 GB / 2.417 GB Notification: Performance of SimCode: time 1.382e-06/72.46, allocations: 0 / 59.35 GB, free: 1.712 GB / 2.417 GB Notification: Performance of Templates: time 2.688/75.14, allocations: 1.74 GB / 61.09 GB, free: 1.961 GB / 2.417 GB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Rectifier12pulseFFT/Rectifier12pulseFFT.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier12pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches