Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001452/0.001452, allocations: 191.8 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007283/0.0007284, allocations: 99.16 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000331/0.000331, allocations: 4 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2441, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.004434/0.2486, allocations: 6.232 MB / 414.3 MB, free: 21.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003177/0.2518, allocations: 2.768 MB / 417 MB, free: 18.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004264/0.2522, allocations: 43.75 kB / 417.1 MB, free: 18.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008859/0.2531, allocations: 429.6 kB / 417.5 MB, free: 18.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001182/0.2543, allocations: 1.188 MB / 418.7 MB, free: 17.03 MB / 298.7 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.0007521/0.2551, allocations: 347.4 kB / 419 MB, free: 16.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002322/0.2574, allocations: 3.14 MB / 422.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.2592, allocations: 2.15 MB / 424.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00164/0.2608, allocations: 1.416 MB / 425.7 MB, free: 9.906 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001473/0.2623, allocations: 1.839 MB / 427.6 MB, free: 8.062 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002015/0.2625, allocations: 152 kB / 427.7 MB, free: 7.914 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009879/0.2635, allocations: 475.4 kB / 428.2 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001621/0.2651, allocations: 4.316 MB / 432.5 MB, free: 3.121 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003189/0.2683, allocations: 4.921 MB / 437.4 MB, free: 14.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007603/0.2759, allocations: 9.609 MB / 447 MB, free: 4.523 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.276, allocations: 4 kB / 447 MB, free: 4.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.276, allocations: 0 / 447 MB, free: 4.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000241/0.2762, allocations: 0 / 447 MB, free: 4.52 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: 5386 * Number of variables: 5386 Notification: Performance of Generate backend data structure: time 0.01627/0.2925, allocations: 14.95 MB / 462 MB, free: 5.441 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.2926, allocations: 12.02 kB / 462 MB, free: 5.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002675/0.2952, allocations: 1.511 MB / 463.5 MB, free: 3.898 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004299/0.2996, allocations: 3.016 MB / 466.5 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.2997, allocations: 160.4 kB / 466.7 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003002/0.3, allocations: 223.9 kB / 466.9 MB, free: 436 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.026/0.326, allocations: 26.94 MB / 493.8 MB, free: 5.402 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-05/0.3261, allocations: 0 / 493.8 MB, free: 5.402 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003461/0.3265, allocations: 92 kB / 493.9 MB, free: 5.312 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000117/0.3266, allocations: 116.5 kB / 494.1 MB, free: 5.195 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3814/0.708, allocations: 24.41 MB / 0.5063 GB, free: 80.58 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02027/0.7283, allocations: 14.7 MB / 0.5207 GB, free: 74.74 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04154/0.7699, allocations: 82.36 MB / 0.6011 GB, free: 10.21 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2547/1.025, allocations: 80.4 MB / 0.6796 GB, free: 160 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002459/1.025, allocations: 126 kB / 0.6797 GB, free: 159.9 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01982/1.045, allocations: 29.8 MB / 0.7088 GB, free: 138.8 MB / 458.8 MB Notification: Performance of pre-optimization done (n=4937): time 3.787e-06/1.045, allocations: 0 / 0.7088 GB, free: 138.8 MB / 458.8 MB Notification: Performance of matching and sorting (n=4941): time 10.02/11.07, allocations: 2.896 GB / 3.605 GB, free: 10.89 MB / 1.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005266/11.07, allocations: 7.192 MB / 3.612 GB, free: 3.969 MB / 1.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002734/11.07, allocations: 1.491 MB / 3.613 GB, free: 2.461 MB / 1.948 GB Notification: Performance of collectPreVariables (initialization): time 0.005206/11.08, allocations: 3.936 MB / 3.617 GB, free: 14.51 MB / 1.964 GB Notification: Performance of collectInitialEqns (initialization): time 0.001214/11.08, allocations: 1.033 MB / 3.618 GB, free: 13.46 MB / 1.964 GB Notification: Performance of collectInitialBindings (initialization): time 0.02171/11.1, allocations: 21.23 MB / 3.639 GB, free: 8.051 MB / 1.979 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004366/11.11, allocations: 1.489 MB / 3.64 GB, free: 6.562 MB / 1.979 GB Notification: Performance of setup shared object (initialization): time 0.005059/11.11, allocations: 3.463 MB / 3.644 GB, free: 3.094 MB / 1.979 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3074/11.42, allocations: 26.2 MB / 3.669 GB, free: 1.668 GB / 1.995 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05917/11.48, allocations: 57.91 MB / 3.726 GB, free: 1.615 GB / 1.995 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07915/11.56, allocations: 86.42 MB / 3.81 GB, free: 1.516 GB / 1.995 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001048/11.56, allocations: 304 kB / 3.81 GB, free: 1.516 GB / 1.995 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1326/11.69, allocations: 85.55 MB / 3.894 GB, free: 1.434 GB / 1.995 GB Notification: Performance of prepare postOptimizeDAE: time 0.001807/11.69, allocations: 489.7 kB / 3.894 GB, free: 1.434 GB / 1.995 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00233/11.7, allocations: 1.027 MB / 3.895 GB, free: 1.433 GB / 1.995 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00451/11.7, allocations: 2.291 MB / 3.898 GB, free: 1.43 GB / 1.995 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03325/11.73, allocations: 10.54 MB / 3.908 GB, free: 1.42 GB / 1.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01178/11.75, allocations: 12.65 MB / 3.92 GB, free: 1.407 GB / 1.995 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02773/11.77, allocations: 2.434 MB / 3.923 GB, free: 1.405 GB / 1.995 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007543/11.78, allocations: 3.555 MB / 3.926 GB, free: 1.401 GB / 1.995 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.02366/11.8, allocations: 14.49 MB / 3.94 GB, free: 1.388 GB / 1.995 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003319/11.81, allocations: 2.217 MB / 3.943 GB, free: 1.387 GB / 1.995 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.028/18.84, allocations: 8.841 GB / 12.78 GB, free: 0.7732 GB / 1.995 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/18.84, allocations: 14 kB / 12.78 GB, free: 0.7732 GB / 1.995 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.812e-05/18.84, allocations: 8 kB / 12.78 GB, free: 0.7732 GB / 1.995 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.02e-05/18.84, allocations: 7.547 kB / 12.78 GB, free: 0.7732 GB / 1.995 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.216/26.05, allocations: 8.861 GB / 21.64 GB, free: 135.8 MB / 1.995 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/26.05, allocations: 0 / 21.64 GB, free: 135.8 MB / 1.995 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007058/26.05, allocations: 159.2 kB / 21.64 GB, free: 135.6 MB / 1.995 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002372/26.05, allocations: 0.8156 MB / 21.65 GB, free: 134.8 MB / 1.995 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001952/26.06, allocations: 0.6211 MB / 21.65 GB, free: 134.2 MB / 1.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008501/26.06, allocations: 10.41 MB / 21.66 GB, free: 123.5 MB / 1.995 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/26.06, allocations: 0 / 21.66 GB, free: 123.5 MB / 1.995 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.75/33.81, allocations: 8.895 GB / 30.55 GB, free: 1.09 GB / 1.995 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008735/33.82, allocations: 4.654 MB / 30.56 GB, free: 1.086 GB / 1.995 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002606/33.83, allocations: 0.6269 MB / 30.56 GB, free: 1.086 GB / 1.995 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005952/33.83, allocations: 0.662 MB / 30.56 GB, free: 1.085 GB / 1.995 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002385/33.83, allocations: 0.563 MB / 30.56 GB, free: 1.085 GB / 1.995 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001912/33.84, allocations: 0.625 MB / 30.56 GB, free: 1.084 GB / 1.995 GB Notification: Performance of sorting global known variables: time 0.001565/33.84, allocations: 1.053 MB / 30.56 GB, free: 1.083 GB / 1.995 GB Notification: Performance of sort global known variables: time 1.7e-07/33.84, allocations: 0 / 30.56 GB, free: 1.083 GB / 1.995 GB Notification: Performance of remove unused functions: time 0.03645/33.87, allocations: 9.524 MB / 30.57 GB, free: 1.074 GB / 1.995 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.003504/33.88, allocations: 0.9948 MB / 30.57 GB, free: 1.073 GB / 1.995 GB Notification: Performance of simCode: created initialization part: time 0.09614/33.97, allocations: 81.73 MB / 30.65 GB, free: 0.9934 GB / 1.995 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/33.97, allocations: 4.188 kB / 30.65 GB, free: 0.9934 GB / 1.995 GB Notification: Performance of simCode: created simulation system equations: time 18.82/52.79, allocations: 28.57 GB / 59.22 GB, free: 307.9 MB / 1.995 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01197/52.8, allocations: 1.649 MB / 59.22 GB, free: 306.3 MB / 1.995 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09781/52.9, allocations: 66.86 MB / 59.29 GB, free: 239.6 MB / 1.995 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01394/52.92, allocations: 8.826 MB / 59.3 GB, free: 230.8 MB / 1.995 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005718/52.92, allocations: 1.273 MB / 59.3 GB, free: 229.5 MB / 1.995 GB Notification: Performance of SimCode: time 1.212e-06/52.92, allocations: 0 / 59.3 GB, free: 229.5 MB / 1.995 GB Notification: Performance of Templates: time 2.403/55.32, allocations: 1.408 GB / 60.71 GB, free: 455.6 MB / 1.995 GB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches