Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009299/0.0009302, allocations: 98.27 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009898/0.0009899, allocations: 202.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.2 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002113/0.0002113, allocations: 4 kB / 306.6 MB, free: 1.418 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1179, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.01041/0.1284, allocations: 8.857 MB / 366.9 MB, free: 5.027 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007822/0.1363, allocations: 3.788 MB / 370.7 MB, free: 1.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002213/0.1386, allocations: 71.62 kB / 370.8 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002272/0.1408, allocations: 0.6529 MB / 371.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2791/0.42, allocations: 1.531 MB / 373 MB, free: 9.508 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.002713/0.4228, allocations: 458.9 kB / 373.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008303/0.4311, allocations: 3.432 MB / 376.8 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00565/0.4368, allocations: 3.072 MB / 379.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006155/0.443, allocations: 2.066 MB / 382 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008269/0.4513, allocations: 2.53 MB / 384.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002298/0.4536, allocations: 272.7 kB / 384.8 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004999/0.4586, allocations: 0.5107 MB / 385.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006352/0.465, allocations: 4.803 MB / 390.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00562/0.4707, allocations: 2.557 MB / 392.6 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01444/0.4851, allocations: 12.38 MB / 405 MB, free: 13.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.4852, allocations: 4 kB / 405 MB, free: 13.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.726e-06/0.4852, allocations: 0 / 405 MB, free: 13.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006897/0.4859, allocations: 0 / 405 MB, free: 13.39 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.02369/0.5096, allocations: 16.92 MB / 421.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.5097, allocations: 8.031 kB / 422 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00528/0.5149, allocations: 1.762 MB / 423.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008304/0.5233, allocations: 4.079 MB / 427.8 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003003/0.5236, allocations: 295.9 kB / 428.1 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001083/0.5247, allocations: 386.6 kB / 428.5 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04563/0.5703, allocations: 29.54 MB / 458 MB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.709e-05/0.5705, allocations: 7.938 kB / 458 MB, free: 8.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004382/0.5709, allocations: 165.7 kB / 458.2 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000211/0.5711, allocations: 208 kB / 458.4 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03511/0.6063, allocations: 26.71 MB / 485.1 MB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04363/0.6499, allocations: 22.26 MB / 0.4954 GB, free: 6.855 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2804/0.9304, allocations: 85.75 MB / 0.5792 GB, free: 102 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003028/0.9308, allocations: 134.4 kB / 0.5793 GB, free: 101.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03818/0.969, allocations: 30.64 MB / 0.6092 GB, free: 82.94 MB / 446.1 MB Notification: Performance of pre-optimization done (n=5058): time 5.19e-06/0.969, allocations: 3.406 kB / 0.6092 GB, free: 82.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=5065): time 12.48/13.44, allocations: 2.906 GB / 3.516 GB, free: 1.624 GB / 1.936 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00415/13.45, allocations: 7.364 MB / 3.523 GB, free: 1.62 GB / 1.936 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003914/13.45, allocations: 2.626 MB / 3.525 GB, free: 1.618 GB / 1.936 GB Notification: Performance of collectPreVariables (initialization): time 0.00558/13.46, allocations: 3.956 MB / 3.529 GB, free: 1.614 GB / 1.936 GB Notification: Performance of collectInitialEqns (initialization): time 0.001911/13.46, allocations: 1.736 MB / 3.531 GB, free: 1.612 GB / 1.936 GB Notification: Performance of collectInitialBindings (initialization): time 0.02494/13.49, allocations: 21.64 MB / 3.552 GB, free: 1.591 GB / 1.936 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005281/13.49, allocations: 1.514 MB / 3.553 GB, free: 1.59 GB / 1.936 GB Notification: Performance of setup shared object (initialization): time 0.005446/13.5, allocations: 3.499 MB / 3.557 GB, free: 1.586 GB / 1.936 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04881/13.54, allocations: 26.87 MB / 3.583 GB, free: 1.56 GB / 1.936 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.07769/13.62, allocations: 58.47 MB / 3.64 GB, free: 1.489 GB / 1.936 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0571/13.68, allocations: 38.5 MB / 3.678 GB, free: 1.451 GB / 1.936 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002121/13.68, allocations: 300 kB / 3.678 GB, free: 1.451 GB / 1.936 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1604/13.84, allocations: 87.73 MB / 3.764 GB, free: 1.365 GB / 1.936 GB Notification: Performance of prepare postOptimizeDAE: time 0.001942/13.84, allocations: 485.7 kB / 3.764 GB, free: 1.364 GB / 1.936 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002949/13.85, allocations: 1.039 MB / 3.765 GB, free: 1.363 GB / 1.936 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009743/13.86, allocations: 3.26 MB / 3.768 GB, free: 1.36 GB / 1.936 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03694/13.89, allocations: 10.72 MB / 3.779 GB, free: 1.35 GB / 1.936 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02171/13.92, allocations: 26.02 MB / 3.804 GB, free: 1.323 GB / 1.936 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03334/13.95, allocations: 2.496 MB / 3.807 GB, free: 1.32 GB / 1.936 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009901/13.96, allocations: 3.598 MB / 3.81 GB, free: 1.317 GB / 1.936 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.03126/13.99, allocations: 15.08 MB / 3.825 GB, free: 1.302 GB / 1.936 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004136/13.99, allocations: 2.346 MB / 3.827 GB, free: 1.3 GB / 1.936 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.489/22.48, allocations: 8.844 GB / 12.67 GB, free: 354.6 MB / 1.936 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.606e-05/22.48, allocations: 24 kB / 12.67 GB, free: 354.5 MB / 1.936 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.614e-05/22.48, allocations: 10 kB / 12.67 GB, free: 354.5 MB / 1.936 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.599e-05/22.48, allocations: 11.95 kB / 12.67 GB, free: 354.5 MB / 1.936 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.796/31.28, allocations: 8.865 GB / 21.54 GB, free: 0.9303 GB / 1.936 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-05/31.28, allocations: 0 / 21.54 GB, free: 0.9303 GB / 1.936 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/31.28, allocations: 293.8 kB / 21.54 GB, free: 0.9301 GB / 1.936 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004938/31.29, allocations: 1.623 MB / 21.54 GB, free: 0.9285 GB / 1.936 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002402/31.29, allocations: 0.6523 MB / 21.54 GB, free: 0.9279 GB / 1.936 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01956/31.31, allocations: 23.64 MB / 21.56 GB, free: 0.9038 GB / 1.936 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/31.31, allocations: 6.688 kB / 21.56 GB, free: 0.9038 GB / 1.936 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.018/40.33, allocations: 8.898 GB / 30.46 GB, free: 1.459 GB / 1.936 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01636/40.34, allocations: 5.091 MB / 30.46 GB, free: 1.455 GB / 1.936 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00453/40.35, allocations: 0.6484 MB / 30.46 GB, free: 1.454 GB / 1.936 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01087/40.36, allocations: 0.7184 MB / 30.47 GB, free: 1.453 GB / 1.936 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.009731/40.37, allocations: 0.6671 MB / 30.47 GB, free: 1.453 GB / 1.936 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005241/40.37, allocations: 0.6458 MB / 30.47 GB, free: 1.452 GB / 1.936 GB Notification: Performance of sorting global known variables: time 0.00522/40.38, allocations: 1.841 MB / 30.47 GB, free: 1.45 GB / 1.936 GB Notification: Performance of sort global known variables: time 4.71e-07/40.38, allocations: 2.406 kB / 30.47 GB, free: 1.45 GB / 1.936 GB Notification: Performance of remove unused functions: time 0.05573/40.43, allocations: 9.959 MB / 30.48 GB, free: 1.441 GB / 1.936 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.004685/40.44, allocations: 1.001 MB / 30.48 GB, free: 1.44 GB / 1.936 GB Notification: Performance of simCode: created initialization part: time 0.1092/40.55, allocations: 84.24 MB / 30.56 GB, free: 1.358 GB / 1.936 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/40.55, allocations: 4 kB / 30.56 GB, free: 1.358 GB / 1.936 GB Notification: Performance of simCode: created simulation system equations: time 62.36/102.9, allocations: 28.59 GB / 59.15 GB, free: 1.768 GB / 2.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008909/102.9, allocations: 1.468 MB / 59.16 GB, free: 1.767 GB / 2.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09062/103, allocations: 64.43 MB / 59.22 GB, free: 1.704 GB / 2.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01593/103, allocations: 10.28 MB / 59.23 GB, free: 1.694 GB / 2.795 GB Notification: Performance of simCode: alias equations: time 0.01037/103, allocations: 4.363 MB / 59.23 GB, free: 1.69 GB / 2.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007089/103, allocations: 1.335 MB / 59.23 GB, free: 1.689 GB / 2.795 GB Notification: Performance of SimCode: time 8.72e-07/103, allocations: 0 / 59.23 GB, free: 1.689 GB / 2.795 GB Notification: Performance of Templates: time 0.3811/103.4, allocations: 287.5 MB / 59.51 GB, free: 1.409 GB / 2.795 GB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Rectifier12pulseFFT/Rectifier12pulseFFT.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches