Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.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.Rectifier6pulseFFT,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.Rectifier6pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier6pulseFFT,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.Rectifier6pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001081/0.001082, allocations: 96.45 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.7 MB / 246.4 MB, free: 9.793 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002157/0.0002158, allocations: 4 kB / 307.1 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1013, allocations: 51.53 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.007207/0.1086, allocations: 6.234 MB / 364.9 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005461/0.1141, allocations: 2.809 MB / 367.7 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.1151, allocations: 47.75 kB / 367.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001351/0.1165, allocations: 425.7 kB / 368.1 MB, free: 3.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002049/0.1186, allocations: 1.177 MB / 369.3 MB, free: 2.707 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.001162/0.1197, allocations: 355.4 kB / 369.7 MB, free: 2.359 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.3259/0.4456, allocations: 3.135 MB / 372.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002386/0.448, allocations: 1.702 MB / 374.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002584/0.4506, allocations: 1.422 MB / 375.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002684/0.4533, allocations: 1.837 MB / 377.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002941/0.4536, allocations: 151.2 kB / 377.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.4549, allocations: 424.2 kB / 378.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003429/0.4584, allocations: 4.326 MB / 382.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002945/0.4613, allocations: 2.149 MB / 384.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008356/0.4697, allocations: 9.615 MB / 394.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4697, allocations: 4 kB / 394.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4697, allocations: 0 / 394.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0004298/0.4702, allocations: 0 / 394.4 MB, free: 4.406 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: 5386 * Number of variables: 5386 Notification: Performance of Generate backend data structure: time 0.01637/0.4865, allocations: 15.13 MB / 409.5 MB, free: 7.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.4866, allocations: 12.03 kB / 409.6 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003354/0.49, allocations: 1.524 MB / 411.1 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005275/0.4953, allocations: 2.971 MB / 414 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.4954, allocations: 166.7 kB / 414.2 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003844/0.4958, allocations: 218.9 kB / 414.4 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03479/0.5306, allocations: 26.95 MB / 441.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.429e-05/0.5307, allocations: 0 / 441.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002357/0.5309, allocations: 92.61 kB / 441.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/0.5311, allocations: 112.4 kB / 441.6 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02639/0.5575, allocations: 24.43 MB / 466 MB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02646/0.584, allocations: 14.68 MB / 480.7 MB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2751/0.8591, allocations: 82.37 MB / 0.5499 GB, free: 130.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.05621/0.9154, allocations: 80.34 MB / 0.6283 GB, free: 63.69 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002699/0.9157, allocations: 125.4 kB / 0.6284 GB, free: 63.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02367/0.9394, allocations: 29.81 MB / 0.6575 GB, free: 35.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4937): time 5.34e-06/0.9395, allocations: 0 / 0.6575 GB, free: 35.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=4941): time 12.13/13.07, allocations: 2.897 GB / 3.555 GB, free: 9.215 MB / 1.779 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005108/13.08, allocations: 7.201 MB / 3.562 GB, free: 1.922 MB / 1.779 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003368/13.08, allocations: 1.504 MB / 3.563 GB, free: 412 kB / 1.779 GB Notification: Performance of collectPreVariables (initialization): time 0.009146/13.09, allocations: 3.932 MB / 3.567 GB, free: 12.45 MB / 1.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.002141/13.09, allocations: 1.036 MB / 3.568 GB, free: 11.41 MB / 1.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0318/13.12, allocations: 21.23 MB / 3.589 GB, free: 5.891 MB / 1.811 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004782/13.13, allocations: 1.488 MB / 3.59 GB, free: 4.402 MB / 1.811 GB Notification: Performance of setup shared object (initialization): time 0.005563/13.14, allocations: 3.46 MB / 3.594 GB, free: 0.9336 MB / 1.811 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04929/13.18, allocations: 26.21 MB / 3.619 GB, free: 6.699 MB / 1.842 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.07541/13.26, allocations: 57.9 MB / 3.676 GB, free: 14.09 MB / 1.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06041/13.32, allocations: 37.72 MB / 3.713 GB, free: 8.336 MB / 1.951 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001022/13.32, allocations: 308 kB / 3.713 GB, free: 8.035 MB / 1.951 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1821/13.5, allocations: 85.55 MB / 3.796 GB, free: 2.426 MB / 2.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.003315/13.51, allocations: 485.7 kB / 3.797 GB, free: 1.945 MB / 2.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003321/13.51, allocations: 1.031 MB / 3.798 GB, free: 0.9141 MB / 2.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006763/13.52, allocations: 2.423 MB / 3.8 GB, free: 14.48 MB / 2.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04133/13.56, allocations: 10.54 MB / 3.811 GB, free: 3.91 MB / 2.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01575/13.57, allocations: 12.65 MB / 3.823 GB, free: 6.734 MB / 2.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03477/13.61, allocations: 2.434 MB / 3.825 GB, free: 4.301 MB / 2.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01637/13.63, allocations: 3.559 MB / 3.829 GB, free: 0.7422 MB / 2.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4822 * Number of states: 0 () * Number of discrete variables: 18 ($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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9717): * Single equations (assignments): 9712 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0366/13.66, allocations: 14.5 MB / 3.843 GB, free: 2.172 MB / 2.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006164/13.67, allocations: 2.215 MB / 3.845 GB, free: 15.93 MB / 2.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.341/21.01, allocations: 8.841 GB / 12.69 GB, free: 0.4924 GB / 2.561 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/21.01, allocations: 15.69 kB / 12.69 GB, free: 0.4924 GB / 2.561 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.952e-05/21.01, allocations: 4 kB / 12.69 GB, free: 0.4923 GB / 2.561 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-05/21.01, allocations: 11.81 kB / 12.69 GB, free: 0.4923 GB / 2.561 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.584/28.59, allocations: 8.861 GB / 21.55 GB, free: 482 MB / 2.561 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-05/28.59, allocations: 3.984 kB / 21.55 GB, free: 482 MB / 2.561 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007915/28.59, allocations: 169 kB / 21.55 GB, free: 481.9 MB / 2.561 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002606/28.6, allocations: 0.8081 MB / 21.55 GB, free: 481.1 MB / 2.561 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003448/28.6, allocations: 0.6133 MB / 21.55 GB, free: 480.5 MB / 2.561 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009623/28.61, allocations: 10.4 MB / 21.56 GB, free: 469.7 MB / 2.561 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/28.61, allocations: 3.984 kB / 21.56 GB, free: 469.7 MB / 2.561 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.916/36.53, allocations: 8.895 GB / 30.45 GB, free: 414.8 MB / 2.561 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01128/36.54, allocations: 4.802 MB / 30.46 GB, free: 410.8 MB / 2.561 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004164/36.54, allocations: 0.6211 MB / 30.46 GB, free: 410.1 MB / 2.561 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008522/36.55, allocations: 0.6676 MB / 30.46 GB, free: 409.5 MB / 2.561 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004441/36.55, allocations: 0.5589 MB / 30.46 GB, free: 408.9 MB / 2.561 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002486/36.56, allocations: 0.6287 MB / 30.46 GB, free: 408.3 MB / 2.561 GB Notification: Performance of sorting global known variables: time 0.001515/36.56, allocations: 1.058 MB / 30.46 GB, free: 407.2 MB / 2.561 GB Notification: Performance of sort global known variables: time 1.2e-07/36.56, allocations: 0 / 30.46 GB, free: 407.2 MB / 2.561 GB Notification: Performance of remove unused functions: time 0.04914/36.61, allocations: 9.52 MB / 30.47 GB, free: 397.7 MB / 2.561 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i) * Number of discrete variables: 14 (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,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 (83): * Single equations (assignments): 77 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.007/36.61, allocations: 0.9542 MB / 30.47 GB, free: 396.9 MB / 2.561 GB Notification: Performance of simCode: created initialization part: time 0.1181/36.73, allocations: 81.74 MB / 30.55 GB, free: 315.5 MB / 2.561 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/36.73, allocations: 4.062 kB / 30.55 GB, free: 315.5 MB / 2.561 GB Notification: Performance of simCode: created simulation system equations: time 55.17/91.9, allocations: 28.59 GB / 59.14 GB, free: 0.588 GB / 3.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01967/91.92, allocations: 1.671 MB / 59.14 GB, free: 0.5865 GB / 3.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1156/92.04, allocations: 66.22 MB / 59.21 GB, free: 0.522 GB / 3.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01811/92.06, allocations: 8.861 MB / 59.22 GB, free: 0.5133 GB / 3.248 GB Notification: Performance of simCode: alias equations: time 0.009415/92.07, allocations: 4.092 MB / 59.22 GB, free: 0.5092 GB / 3.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008077/92.07, allocations: 1.269 MB / 59.22 GB, free: 0.508 GB / 3.248 GB Notification: Performance of SimCode: time 9.31e-07/92.07, allocations: 0 / 59.22 GB, free: 0.508 GB / 3.248 GB Notification: Performance of Templates: time 0.3791/92.45, allocations: 260.4 MB / 59.47 GB, free: 260.1 MB / 3.248 GB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Rectifier6pulseFFT/Rectifier6pulseFFT.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches