Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001878/0.001878, allocations: 181.1 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.728/1.728, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008735/0.0008735, allocations: 93.11 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002618/0.0002618, allocations: 4 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2894, allocations: 47.56 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.14/0.4294, allocations: 94.84 MB / 470.6 MB, free: 1.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/0.4298, allocations: 71.97 kB / 470.7 MB, free: 1.738 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7622/1.192, allocations: 166.9 MB / 0.6226 GB, free: 6.367 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.976e-06/1.192, allocations: 7.938 kB / 0.6227 GB, free: 6.359 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007483/1.193, allocations: 263.9 kB / 0.6229 GB, free: 6.102 MB / 394.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.04139/1.234, allocations: 16.26 MB / 0.6388 GB, free: 5.707 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/1.234, allocations: 12.02 kB / 0.6388 GB, free: 5.695 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009095/1.243, allocations: 1.73 MB / 0.6405 GB, free: 3.941 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5347/1.778, allocations: 8.837 MB / 0.6491 GB, free: 38.75 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005369/1.779, allocations: 298.8 kB / 0.6494 GB, free: 38.75 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003987/1.783, allocations: 393.9 kB / 0.6498 GB, free: 38.75 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06617/1.849, allocations: 27.91 MB / 0.677 GB, free: 37.82 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003769/1.85, allocations: 0 / 0.677 GB, free: 37.82 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005764/1.855, allocations: 170 kB / 0.6772 GB, free: 37.82 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000462/1.856, allocations: 205.5 kB / 0.6774 GB, free: 37.81 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0625/1.918, allocations: 24.23 MB / 0.7011 GB, free: 27.36 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08393/2.002, allocations: 28.74 MB / 0.7291 GB, free: 15.47 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1134/2.116, allocations: 84.97 MB / 0.8121 GB, free: 8.996 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004862/2.116, allocations: 157.1 kB / 0.8122 GB, free: 8.848 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.384/2.5, allocations: 29.58 MB / 0.8411 GB, free: 100.9 MB / 474.8 MB Notification: Performance of pre-optimization done (n=5058): time 1.132e-05/2.5, allocations: 0 / 0.8411 GB, free: 100.9 MB / 474.8 MB Notification: Performance of matching and sorting (n=5065): time 13.72/16.22, allocations: 2.919 GB / 3.76 GB, free: 9.285 MB / 1.87 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005301/16.23, allocations: 7.358 MB / 3.767 GB, free: 2.164 MB / 1.87 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005267/16.23, allocations: 2.368 MB / 3.769 GB, free: 15.78 MB / 1.886 GB Notification: Performance of collectPreVariables (initialization): time 0.006715/16.24, allocations: 3.955 MB / 3.773 GB, free: 11.81 MB / 1.886 GB Notification: Performance of collectInitialEqns (initialization): time 0.002649/16.24, allocations: 1.736 MB / 3.775 GB, free: 10.05 MB / 1.886 GB Notification: Performance of collectInitialBindings (initialization): time 0.02849/16.27, allocations: 21.65 MB / 3.796 GB, free: 4.512 MB / 1.901 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007824/16.28, allocations: 1.516 MB / 3.797 GB, free: 2.996 MB / 1.901 GB Notification: Performance of setup shared object (initialization): time 0.008841/16.29, allocations: 3.501 MB / 3.801 GB, free: 15.48 MB / 1.917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.06151/16.35, allocations: 26.85 MB / 3.827 GB, free: 4.617 MB / 1.932 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.09626/16.44, allocations: 58.44 MB / 3.884 GB, free: 12.75 MB / 2.011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07095/16.52, allocations: 38.48 MB / 3.922 GB, free: 6.762 MB / 2.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001939/16.52, allocations: 304 kB / 3.922 GB, free: 6.465 MB / 2.042 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.1962/16.71, allocations: 87.7 MB / 4.008 GB, free: 14.65 MB / 2.136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001822/16.72, allocations: 489.7 kB / 4.008 GB, free: 14.17 MB / 2.136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002856/16.72, allocations: 1.031 MB / 4.009 GB, free: 13.14 MB / 2.136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007408/16.73, allocations: 3.026 MB / 4.012 GB, free: 10.09 MB / 2.136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04313/16.77, allocations: 10.72 MB / 4.023 GB, free: 15.34 MB / 2.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02959/16.8, allocations: 26.01 MB / 4.048 GB, free: 4.062 MB / 2.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04059/16.84, allocations: 2.492 MB / 4.05 GB, free: 1.57 MB / 2.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01744/16.86, allocations: 3.598 MB / 4.054 GB, free: 13.97 MB / 2.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4832 * 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 (9809): * Single equations (assignments): 9798 * 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.05389/16.91, allocations: 15.08 MB / 4.069 GB, free: 14.84 MB / 2.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01369/16.92, allocations: 2.354 MB / 4.071 GB, free: 12.46 MB / 2.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.387/26.31, allocations: 8.84 GB / 12.91 GB, free: 1.018 GB / 2.308 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-05/26.31, allocations: 24 kB / 12.91 GB, free: 1.018 GB / 2.308 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/26.31, allocations: 9.656 kB / 12.91 GB, free: 1.018 GB / 2.308 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.569e-05/26.31, allocations: 11.95 kB / 12.91 GB, free: 1.018 GB / 2.308 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.141/35.45, allocations: 8.865 GB / 21.78 GB, free: 1.822 GB / 2.308 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.04e-05/35.45, allocations: 3.969 kB / 21.78 GB, free: 1.822 GB / 2.308 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001559/35.46, allocations: 293.1 kB / 21.78 GB, free: 1.822 GB / 2.308 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004013/35.46, allocations: 1.382 MB / 21.78 GB, free: 1.822 GB / 2.308 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.01014/35.47, allocations: 0.7943 MB / 21.78 GB, free: 1.822 GB / 2.308 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02352/35.49, allocations: 23.66 MB / 21.8 GB, free: 1.805 GB / 2.308 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/35.49, allocations: 0 / 21.8 GB, free: 1.805 GB / 2.308 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.989/43.48, allocations: 8.892 GB / 30.69 GB, free: 0.7289 GB / 2.308 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02828/43.51, allocations: 6.337 MB / 30.7 GB, free: 0.7235 GB / 2.308 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009631/43.52, allocations: 0.655 MB / 30.7 GB, free: 0.7229 GB / 2.308 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01669/43.54, allocations: 0.7206 MB / 30.7 GB, free: 0.7222 GB / 2.308 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006603/43.54, allocations: 0.6551 MB / 30.7 GB, free: 0.7216 GB / 2.308 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.008891/43.55, allocations: 1.246 MB / 30.7 GB, free: 0.7203 GB / 2.308 GB Notification: Performance of sorting global known variables: time 0.004289/43.56, allocations: 1.849 MB / 30.7 GB, free: 0.7185 GB / 2.308 GB Notification: Performance of sort global known variables: time 6.71e-07/43.56, allocations: 0 / 30.7 GB, free: 0.7185 GB / 2.308 GB Notification: Performance of remove unused functions: time 0.0729/43.63, allocations: 9.992 MB / 30.71 GB, free: 0.7088 GB / 2.308 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.01086/43.64, allocations: 1.052 MB / 30.72 GB, free: 0.7079 GB / 2.308 GB Notification: Performance of simCode: created initialization part: time 0.1616/43.8, allocations: 84.25 MB / 30.8 GB, free: 0.6269 GB / 2.308 GB Notification: Performance of simCode: created event and clocks part: time 1.795e-05/43.8, allocations: 0 / 30.8 GB, free: 0.6269 GB / 2.308 GB Notification: Performance of simCode: created simulation system equations: time 59.13/102.9, allocations: 28.63 GB / 59.43 GB, free: 0.6422 GB / 2.667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01343/102.9, allocations: 1.478 MB / 59.43 GB, free: 0.6408 GB / 2.667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1449/103.1, allocations: 81.41 MB / 59.51 GB, free: 0.5616 GB / 2.667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02516/103.1, allocations: 10.28 MB / 59.52 GB, free: 0.5516 GB / 2.667 GB Notification: Performance of simCode: alias equations: time 0.01559/103.1, allocations: 4.361 MB / 59.52 GB, free: 0.5473 GB / 2.667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01034/103.1, allocations: 1.335 MB / 59.52 GB, free: 0.546 GB / 2.667 GB Notification: Performance of SimCode: time 1.392e-06/103.1, allocations: 0 / 59.52 GB, free: 0.546 GB / 2.667 GB Notification: Performance of Templates: time 0.4155/103.6, allocations: 289.2 MB / 59.81 GB, free: 271.9 MB / 2.667 GB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/Rectifier12pulseFFT/Rectifier12pulseFFT.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches