Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001113/0.001113, allocations: 179.6 kB / 16.41 MB, free: 5.707 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.363/1.363, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007222/0.0007224, allocations: 95.92 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003257/0.0003259, allocations: 12 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2224, allocations: 47.56 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.008188/0.2306, allocations: 9.583 MB / 384.1 MB, free: 37.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006921/0.2376, allocations: 3.696 MB / 387.8 MB, free: 34.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001948/0.2396, allocations: 67.97 kB / 387.9 MB, free: 34.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001483/0.2411, allocations: 0.6109 MB / 388.5 MB, free: 34.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003252/0.2444, allocations: 1.605 MB / 390.1 MB, free: 33.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001523/0.2459, allocations: 487.2 kB / 390.6 MB, free: 32.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006947/0.2529, allocations: 5.65 MB / 396.2 MB, free: 27.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003163/0.256, allocations: 2.886 MB / 399.1 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003655/0.2597, allocations: 2.189 MB / 401.3 MB, free: 21.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004204/0.2639, allocations: 2.851 MB / 404.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009107/0.2649, allocations: 280 kB / 404.4 MB, free: 18.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002395/0.2673, allocations: 0.5425 MB / 405 MB, free: 18.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002444/0.2697, allocations: 4.88 MB / 409.8 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002323/0.2721, allocations: 2.559 MB / 412.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00968/0.2818, allocations: 12.69 MB / 425.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.2818, allocations: 0 / 425.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2818, allocations: 0 / 425.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004716/0.2823, allocations: 4 kB / 425.1 MB, free: 14.09 MB / 314.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.0225/0.3048, allocations: 16.88 MB / 442 MB, free: 13.08 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3049, allocations: 8.031 kB / 442 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004074/0.309, allocations: 1.723 MB / 443.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007596/0.3166, allocations: 3.931 MB / 447.6 MB, free: 7.297 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003322/0.317, allocations: 295.9 kB / 447.9 MB, free: 7.008 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001208/0.3182, allocations: 387.9 kB / 448.3 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03831/0.3565, allocations: 29.54 MB / 477.9 MB, free: 9.008 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001563/0.3567, allocations: 3.938 kB / 477.9 MB, free: 9.004 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/0.3577, allocations: 164 kB / 478 MB, free: 8.844 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002341/0.358, allocations: 208 kB / 478.2 MB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2085/0.5665, allocations: 26.69 MB / 0.4931 GB, free: 103.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04031/0.6069, allocations: 22.27 MB / 0.5148 GB, free: 88.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04538/0.6523, allocations: 85.76 MB / 0.5986 GB, free: 2.695 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2556/0.908, allocations: 81.69 MB / 0.6784 GB, free: 124.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003426/0.9084, allocations: 136.8 kB / 0.6785 GB, free: 124.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02488/0.9333, allocations: 30.63 MB / 0.7084 GB, free: 97.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5058): time 7.123e-06/0.9334, allocations: 0 / 0.7084 GB, free: 97.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=5065): time 11.8/12.73, allocations: 2.901 GB / 3.61 GB, free: 145.5 MB / 1.854 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003618/12.74, allocations: 7.357 MB / 3.617 GB, free: 138.4 MB / 1.854 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003749/12.74, allocations: 2.633 MB / 3.619 GB, free: 135.7 MB / 1.854 GB Notification: Performance of collectPreVariables (initialization): time 0.004516/12.75, allocations: 3.955 MB / 3.623 GB, free: 131.8 MB / 1.854 GB Notification: Performance of collectInitialEqns (initialization): time 0.001587/12.75, allocations: 1.74 MB / 3.625 GB, free: 130 MB / 1.854 GB Notification: Performance of collectInitialBindings (initialization): time 0.01961/12.77, allocations: 21.63 MB / 3.646 GB, free: 108.3 MB / 1.854 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005127/12.77, allocations: 1.516 MB / 3.648 GB, free: 106.8 MB / 1.854 GB Notification: Performance of setup shared object (initialization): time 0.005118/12.78, allocations: 3.504 MB / 3.651 GB, free: 103.3 MB / 1.854 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04687/12.83, allocations: 26.84 MB / 3.677 GB, free: 76.39 MB / 1.854 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06579/12.89, allocations: 58.75 MB / 3.735 GB, free: 2.875 MB / 1.854 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06418/12.96, allocations: 38.49 MB / 3.772 GB, free: 12.33 MB / 1.901 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001676/12.96, allocations: 304 kB / 3.772 GB, free: 12.03 MB / 1.901 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1684/13.13, allocations: 87.69 MB / 3.858 GB, free: 4.219 MB / 1.979 GB Notification: Performance of prepare postOptimizeDAE: time 0.00112/13.13, allocations: 489.7 kB / 3.859 GB, free: 3.734 MB / 1.979 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00214/13.13, allocations: 1.035 MB / 3.86 GB, free: 2.699 MB / 1.979 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008799/13.14, allocations: 3.261 MB / 3.863 GB, free: 15.41 MB / 1.995 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03873/13.18, allocations: 10.72 MB / 3.873 GB, free: 4.672 MB / 1.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0274/13.2, allocations: 25.6 MB / 3.898 GB, free: 9.746 MB / 2.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0291/13.23, allocations: 2.496 MB / 3.901 GB, free: 7.25 MB / 2.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008666/13.24, allocations: 3.602 MB / 3.904 GB, free: 3.648 MB / 2.026 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.02608/13.27, allocations: 15.08 MB / 3.919 GB, free: 4.504 MB / 2.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003904/13.27, allocations: 2.354 MB / 3.921 GB, free: 2.129 MB / 2.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.159/20.43, allocations: 8.843 GB / 12.76 GB, free: 1.17 GB / 2.682 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.123e-05/20.43, allocations: 26.38 kB / 12.76 GB, free: 1.17 GB / 2.682 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.721e-05/20.43, allocations: 8 kB / 12.76 GB, free: 1.17 GB / 2.682 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.284e-05/20.43, allocations: 11.95 kB / 12.76 GB, free: 1.17 GB / 2.682 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.962/27.39, allocations: 8.865 GB / 21.63 GB, free: 1.659 GB / 2.682 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-05/27.39, allocations: 0 / 21.63 GB, free: 1.659 GB / 2.682 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/27.39, allocations: 292.7 kB / 21.63 GB, free: 1.659 GB / 2.682 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00544/27.4, allocations: 1.618 MB / 21.63 GB, free: 1.657 GB / 2.682 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002382/27.4, allocations: 0.6484 MB / 21.63 GB, free: 1.656 GB / 2.682 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01898/27.42, allocations: 23.22 MB / 21.65 GB, free: 1.633 GB / 2.682 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/27.42, allocations: 7.984 kB / 21.65 GB, free: 1.633 GB / 2.682 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.009/34.43, allocations: 8.897 GB / 30.55 GB, free: 2.094 GB / 2.682 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01176/34.44, allocations: 5.088 MB / 30.56 GB, free: 2.09 GB / 2.682 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00407/34.45, allocations: 0.6484 MB / 30.56 GB, free: 2.089 GB / 2.682 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008575/34.45, allocations: 0.721 MB / 30.56 GB, free: 2.089 GB / 2.682 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004639/34.46, allocations: 0.6549 MB / 30.56 GB, free: 2.088 GB / 2.682 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002794/34.46, allocations: 0.6523 MB / 30.56 GB, free: 2.088 GB / 2.682 GB Notification: Performance of sorting global known variables: time 0.002713/34.46, allocations: 1.842 MB / 30.56 GB, free: 2.086 GB / 2.682 GB Notification: Performance of sort global known variables: time 3.01e-07/34.46, allocations: 0 / 30.56 GB, free: 2.086 GB / 2.682 GB Notification: Performance of remove unused functions: time 0.04618/34.51, allocations: 9.96 MB / 30.57 GB, free: 2.076 GB / 2.682 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.004612/34.52, allocations: 0.9977 MB / 30.57 GB, free: 2.075 GB / 2.682 GB Notification: Performance of simCode: created initialization part: time 0.1091/34.62, allocations: 84.2 MB / 30.65 GB, free: 1.993 GB / 2.682 GB Notification: Performance of simCode: created event and clocks part: time 1.816e-05/34.62, allocations: 1.922 kB / 30.65 GB, free: 1.993 GB / 2.682 GB Notification: Performance of simCode: created simulation system equations: time 48.18/82.81, allocations: 28.59 GB / 59.25 GB, free: 54.59 MB / 3.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01687/82.82, allocations: 2.095 MB / 59.25 GB, free: 52.56 MB / 3.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5336/83.36, allocations: 65.63 MB / 59.31 GB, free: 2.745 GB / 3.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01785/83.38, allocations: 9.912 MB / 59.32 GB, free: 2.744 GB / 3.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00724/83.38, allocations: 1.35 MB / 59.32 GB, free: 2.744 GB / 3.151 GB Notification: Performance of SimCode: time 1.373e-06/83.38, allocations: 0 / 59.32 GB, free: 2.744 GB / 3.151 GB Notification: Performance of Templates: time 2.214/85.6, allocations: 1.74 GB / 61.06 GB, free: 1.035 GB / 3.151 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches