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.00099/0.0009902, allocations: 92.72 kB / 16.98 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.001255/0.001255, allocations: 198.8 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000264/0.000264, allocations: 4 kB / 306.6 MB, free: 1.645 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1087, allocations: 51.49 MB / 358.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.006585/0.1154, allocations: 5.782 MB / 363.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006364/0.1218, allocations: 2.841 MB / 366.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00188/0.1237, allocations: 39.75 kB / 366.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.1251, allocations: 445.9 kB / 367.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002838/0.1279, allocations: 1.158 MB / 368.3 MB, free: 3.859 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.001108/0.129, allocations: 331.4 kB / 368.6 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003025/0.1321, allocations: 1.989 MB / 370.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3761/0.5082, allocations: 1.692 MB / 372.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002897/0.5112, allocations: 1.355 MB / 373.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003983/0.5152, allocations: 1.675 MB / 375.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006138/0.5158, allocations: 151.1 kB / 375.5 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002242/0.5181, allocations: 407.7 kB / 375.9 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005261/0.5233, allocations: 4.291 MB / 380.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004854/0.5282, allocations: 2.148 MB / 382.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01263/0.5409, allocations: 9.301 MB / 391.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.5409, allocations: 0.875 kB / 391.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.5409, allocations: 0 / 391.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0008576/0.5418, allocations: 0 / 391.6 MB, free: 4.91 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.02953/0.5713, allocations: 15.19 MB / 406.8 MB, free: 9.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.5714, allocations: 12.03 kB / 406.8 MB, free: 9.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005541/0.577, allocations: 1.518 MB / 408.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00751/0.5845, allocations: 2.955 MB / 411.3 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001691/0.5847, allocations: 163 kB / 411.5 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006483/0.5854, allocations: 227.1 kB / 411.7 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04178/0.6272, allocations: 26.92 MB / 438.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.011e-05/0.6273, allocations: 0 / 438.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002805/0.6275, allocations: 95.27 kB / 438.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00016/0.6277, allocations: 112.5 kB / 438.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03229/0.66, allocations: 24.42 MB / 463.2 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0284/0.6885, allocations: 14.68 MB / 477.9 MB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3039/0.9924, allocations: 82.36 MB / 0.5471 GB, free: 129.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003047/0.9928, allocations: 126.3 kB / 0.5473 GB, free: 129.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03768/1.03, allocations: 29.82 MB / 0.5764 GB, free: 118.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4937): time 5.35e-06/1.03, allocations: 0 / 0.5764 GB, free: 118.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=4941): time 12.42/13.46, allocations: 2.9 GB / 3.476 GB, free: 12.37 MB / 1.951 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004988/13.46, allocations: 7.193 MB / 3.483 GB, free: 5.082 MB / 1.951 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002627/13.46, allocations: 1.501 MB / 3.485 GB, free: 3.566 MB / 1.951 GB Notification: Performance of collectPreVariables (initialization): time 0.006327/13.47, allocations: 3.924 MB / 3.489 GB, free: 15.62 MB / 1.967 GB Notification: Performance of collectInitialEqns (initialization): time 0.00182/13.47, allocations: 1.042 MB / 3.49 GB, free: 14.57 MB / 1.967 GB Notification: Performance of collectInitialBindings (initialization): time 0.3906/13.86, allocations: 21.22 MB / 3.51 GB, free: 1.657 GB / 1.967 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008198/13.87, allocations: 1.491 MB / 3.512 GB, free: 1.657 GB / 1.967 GB Notification: Performance of setup shared object (initialization): time 0.008501/13.88, allocations: 3.462 MB / 3.515 GB, free: 1.656 GB / 1.967 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05738/13.94, allocations: 26.22 MB / 3.541 GB, free: 1.642 GB / 1.967 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.07239/14.01, allocations: 57.62 MB / 3.597 GB, free: 1.571 GB / 1.967 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05224/14.06, allocations: 37.73 MB / 3.634 GB, free: 1.534 GB / 1.967 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001748/14.06, allocations: 300 kB / 3.634 GB, free: 1.534 GB / 1.967 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1561/14.22, allocations: 85.58 MB / 3.718 GB, free: 1.452 GB / 1.967 GB Notification: Performance of prepare postOptimizeDAE: time 0.003173/14.22, allocations: 485.7 kB / 3.718 GB, free: 1.451 GB / 1.967 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002973/14.22, allocations: 1.027 MB / 3.719 GB, free: 1.45 GB / 1.967 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006995/14.23, allocations: 2.456 MB / 3.722 GB, free: 1.448 GB / 1.967 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04187/14.27, allocations: 10.54 MB / 3.732 GB, free: 1.438 GB / 1.967 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01394/14.29, allocations: 12.85 MB / 3.745 GB, free: 1.425 GB / 1.967 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04301/14.33, allocations: 2.436 MB / 3.747 GB, free: 1.422 GB / 1.967 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01499/14.35, allocations: 3.559 MB / 3.75 GB, free: 1.419 GB / 1.967 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.0415/14.39, allocations: 14.5 MB / 3.765 GB, free: 1.405 GB / 1.967 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007444/14.39, allocations: 2.213 MB / 3.767 GB, free: 1.404 GB / 1.967 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.191/22.59, allocations: 8.841 GB / 12.61 GB, free: 0.6816 GB / 1.967 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.536e-05/22.59, allocations: 12.69 kB / 12.61 GB, free: 0.6816 GB / 1.967 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/22.59, allocations: 4 kB / 12.61 GB, free: 0.6816 GB / 1.967 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.844e-05/22.59, allocations: 13.34 kB / 12.61 GB, free: 0.6816 GB / 1.967 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.926/31.51, allocations: 8.861 GB / 21.47 GB, free: 1.553 GB / 1.967 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/31.51, allocations: 4 kB / 21.47 GB, free: 1.553 GB / 1.967 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008132/31.51, allocations: 159.1 kB / 21.47 GB, free: 1.553 GB / 1.967 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00246/31.52, allocations: 0.8108 MB / 21.47 GB, free: 1.553 GB / 1.967 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003641/31.52, allocations: 0.6207 MB / 21.47 GB, free: 1.552 GB / 1.967 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009521/31.53, allocations: 10.61 MB / 21.48 GB, free: 1.542 GB / 1.967 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/31.53, allocations: 2.391 kB / 21.48 GB, free: 1.542 GB / 1.967 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.509/40.04, allocations: 8.895 GB / 30.38 GB, free: 0.7573 GB / 1.967 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01532/40.05, allocations: 4.806 MB / 30.38 GB, free: 0.7534 GB / 1.967 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00459/40.06, allocations: 0.6248 MB / 30.38 GB, free: 0.7528 GB / 1.967 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008563/40.07, allocations: 0.664 MB / 30.38 GB, free: 0.7521 GB / 1.967 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006003/40.07, allocations: 0.548 MB / 30.38 GB, free: 0.7516 GB / 1.967 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004155/40.08, allocations: 0.6286 MB / 30.38 GB, free: 0.751 GB / 1.967 GB Notification: Performance of sorting global known variables: time 0.0018/40.08, allocations: 1.053 MB / 30.38 GB, free: 0.75 GB / 1.967 GB Notification: Performance of sort global known variables: time 2.6e-07/40.08, allocations: 4 kB / 30.38 GB, free: 0.75 GB / 1.967 GB Notification: Performance of remove unused functions: time 0.0599/40.14, allocations: 9.514 MB / 30.39 GB, free: 0.7407 GB / 1.967 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (82): * Single equations (assignments): 76 * 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.005791/40.14, allocations: 0.9579 MB / 30.39 GB, free: 0.7399 GB / 1.967 GB Notification: Performance of simCode: created initialization part: time 0.119/40.26, allocations: 81.77 MB / 30.47 GB, free: 0.6603 GB / 1.967 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/40.26, allocations: 0 / 30.47 GB, free: 0.6603 GB / 1.967 GB Notification: Performance of simCode: created simulation system equations: time 58.13/98.4, allocations: 28.59 GB / 59.06 GB, free: 151.6 MB / 2.483 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01208/98.41, allocations: 1.049 MB / 59.06 GB, free: 150.6 MB / 2.483 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1331/98.54, allocations: 65.61 MB / 59.13 GB, free: 85.19 MB / 2.483 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02087/98.56, allocations: 9.129 MB / 59.13 GB, free: 76.01 MB / 2.483 GB Notification: Performance of simCode: alias equations: time 0.01167/98.57, allocations: 4.085 MB / 59.14 GB, free: 71.91 MB / 2.483 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009241/98.58, allocations: 1.269 MB / 59.14 GB, free: 70.64 MB / 2.483 GB Notification: Performance of SimCode: time 1.924e-06/98.58, allocations: 0 / 59.14 GB, free: 70.64 MB / 2.483 GB Notification: Performance of Templates: time 0.7787/99.36, allocations: 260.4 MB / 59.39 GB, free: 1.939 GB / 2.483 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","../files/Modelica_trunk_Modelica.Blocks.Examples.Rectifier6pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches