Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.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.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_cpp_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_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001067, allocations: 197.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008049/0.0008051, allocations: 99.77 kB / 296.8 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002192/0.0002193, allocations: 12 kB / 356.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2797, allocations: 51.29 MB / 408 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.009067/0.2888, allocations: 9.653 MB / 417.7 MB, free: 18.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005474/0.2943, allocations: 3.662 MB / 421.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.2956, allocations: 75.62 kB / 421.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001324/0.297, allocations: 0.6135 MB / 422 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00239/0.2994, allocations: 1.616 MB / 423.7 MB, free: 12.08 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.001353/0.3007, allocations: 471.3 kB / 424.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004359/0.3051, allocations: 5.541 MB / 429.7 MB, free: 6.059 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003257/0.3084, allocations: 4.004 MB / 433.7 MB, free: 1.965 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003095/0.3115, allocations: 2.211 MB / 435.9 MB, free: 15.76 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00334/0.3148, allocations: 2.823 MB / 438.7 MB, free: 12.93 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005311/0.3154, allocations: 268 kB / 439 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001569/0.3169, allocations: 0.5737 MB / 439.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003338/0.3203, allocations: 4.865 MB / 444.4 MB, free: 7.211 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006118/0.3264, allocations: 5.886 MB / 450.3 MB, free: 1.281 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.3382, allocations: 12.7 MB / 463 MB, free: 4.539 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3382, allocations: 0 / 463 MB, free: 4.539 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3382, allocations: 0 / 463 MB, free: 4.539 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004369/0.3387, allocations: 0 / 463 MB, free: 4.539 MB / 330.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.02115/0.3598, allocations: 16.73 MB / 479.7 MB, free: 3.676 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.3599, allocations: 8.031 kB / 479.7 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004095/0.364, allocations: 1.759 MB / 481.5 MB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00758/0.3716, allocations: 4.176 MB / 485.7 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002295/0.3719, allocations: 295.9 kB / 485.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006712/0.3725, allocations: 396 kB / 486.3 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4075/0.7801, allocations: 29.54 MB / 0.5038 GB, free: 80.66 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.7803, allocations: 4.969 kB / 0.5038 GB, free: 80.66 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000665/0.7809, allocations: 162.7 kB / 0.5039 GB, free: 80.66 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003832/0.7813, allocations: 206.2 kB / 0.5041 GB, free: 80.65 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02917/0.8105, allocations: 26.7 MB / 0.5302 GB, free: 62.98 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0296/0.8402, allocations: 22.28 MB / 0.552 GB, free: 40.88 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05381/0.894, allocations: 85.77 MB / 0.6357 GB, free: 2.672 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.25/1.144, allocations: 81.69 MB / 0.7155 GB, free: 148.4 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000324/1.144, allocations: 139.2 kB / 0.7156 GB, free: 148.3 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02317/1.168, allocations: 30.63 MB / 0.7456 GB, free: 123.9 MB / 474.8 MB Notification: Performance of pre-optimization done (n=5058): time 7.213e-06/1.168, allocations: 3.844 kB / 0.7456 GB, free: 123.9 MB / 474.8 MB Notification: Performance of matching and sorting (n=5065): time 10.11/11.28, allocations: 2.902 GB / 3.647 GB, free: 12.07 MB / 1.964 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005288/11.28, allocations: 7.355 MB / 3.654 GB, free: 4.582 MB / 1.964 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004177/11.29, allocations: 2.633 MB / 3.657 GB, free: 1.93 MB / 1.964 GB Notification: Performance of collectPreVariables (initialization): time 0.261/11.55, allocations: 3.948 MB / 3.661 GB, free: 1.665 GB / 1.964 GB Notification: Performance of collectInitialEqns (initialization): time 0.001569/11.55, allocations: 1.744 MB / 3.663 GB, free: 1.664 GB / 1.964 GB Notification: Performance of collectInitialBindings (initialization): time 0.01835/11.57, allocations: 21.64 MB / 3.684 GB, free: 1.648 GB / 1.964 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004674/11.57, allocations: 1.514 MB / 3.685 GB, free: 1.647 GB / 1.964 GB Notification: Performance of setup shared object (initialization): time 0.004241/11.58, allocations: 3.512 MB / 3.689 GB, free: 1.644 GB / 1.964 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04217/11.62, allocations: 26.85 MB / 3.715 GB, free: 1.62 GB / 1.964 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05993/11.68, allocations: 58.75 MB / 3.772 GB, free: 1.549 GB / 1.964 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.081/11.76, allocations: 87.89 MB / 3.858 GB, free: 1.448 GB / 1.964 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001297/11.76, allocations: 300 kB / 3.858 GB, free: 1.448 GB / 1.964 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1921/11.95, allocations: 87.69 MB / 3.944 GB, free: 1.362 GB / 1.964 GB Notification: Performance of prepare postOptimizeDAE: time 0.001867/11.96, allocations: 487.8 kB / 3.944 GB, free: 1.362 GB / 1.964 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002565/11.96, allocations: 1.035 MB / 3.945 GB, free: 1.361 GB / 1.964 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008934/11.97, allocations: 3.108 MB / 3.948 GB, free: 1.358 GB / 1.964 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03567/12, allocations: 10.72 MB / 3.959 GB, free: 1.347 GB / 1.964 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02194/12.03, allocations: 25.62 MB / 3.984 GB, free: 1.321 GB / 1.964 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03062/12.06, allocations: 2.493 MB / 3.986 GB, free: 1.318 GB / 1.964 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009083/12.07, allocations: 3.598 MB / 3.99 GB, free: 1.315 GB / 1.964 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.02807/12.09, allocations: 15.08 MB / 4.005 GB, free: 1.3 GB / 1.964 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004178/12.1, allocations: 2.342 MB / 4.007 GB, free: 1.298 GB / 1.964 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.343/19.44, allocations: 8.843 GB / 12.85 GB, free: 482.1 MB / 1.964 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.272e-05/19.44, allocations: 28 kB / 12.85 GB, free: 482.1 MB / 1.964 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-05/19.44, allocations: 9.312 kB / 12.85 GB, free: 482.1 MB / 1.964 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.557e-05/19.44, allocations: 16.02 kB / 12.85 GB, free: 482.1 MB / 1.964 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.739/27.18, allocations: 8.865 GB / 21.72 GB, free: 1.208 GB / 1.964 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.286e-05/27.18, allocations: 2.688 kB / 21.72 GB, free: 1.208 GB / 1.964 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/27.18, allocations: 289.2 kB / 21.72 GB, free: 1.208 GB / 1.964 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00485/27.19, allocations: 1.63 MB / 21.72 GB, free: 1.206 GB / 1.964 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002706/27.19, allocations: 0.642 MB / 21.72 GB, free: 1.206 GB / 1.964 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01802/27.21, allocations: 23.23 MB / 21.74 GB, free: 1.182 GB / 1.964 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/27.21, allocations: 6.031 kB / 21.74 GB, free: 1.182 GB / 1.964 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.227/34.43, allocations: 8.897 GB / 30.64 GB, free: 290.4 MB / 1.964 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01244/34.45, allocations: 4.936 MB / 30.64 GB, free: 286.3 MB / 1.964 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004146/34.45, allocations: 0.6484 MB / 30.64 GB, free: 285.7 MB / 1.964 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008774/34.46, allocations: 0.7206 MB / 30.64 GB, free: 284.9 MB / 1.964 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003106/34.46, allocations: 0.6547 MB / 30.64 GB, free: 284.3 MB / 1.964 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002318/34.47, allocations: 0.6582 MB / 30.65 GB, free: 283.6 MB / 1.964 GB Notification: Performance of sorting global known variables: time 0.002718/34.47, allocations: 1.841 MB / 30.65 GB, free: 281.8 MB / 1.964 GB Notification: Performance of sort global known variables: time 1.4e-07/34.47, allocations: 0 / 30.65 GB, free: 281.8 MB / 1.964 GB Notification: Performance of remove unused functions: time 0.04308/34.51, allocations: 9.955 MB / 30.66 GB, free: 271.8 MB / 1.964 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.00381/34.52, allocations: 1.044 MB / 30.66 GB, free: 270.9 MB / 1.964 GB Notification: Performance of simCode: created initialization part: time 0.1027/34.62, allocations: 84.19 MB / 30.74 GB, free: 187 MB / 1.964 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-05/34.62, allocations: 4 kB / 30.74 GB, free: 187 MB / 1.964 GB Notification: Performance of simCode: created simulation system equations: time 19.17/53.79, allocations: 28.57 GB / 59.31 GB, free: 318.4 MB / 1.964 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009845/53.8, allocations: 2.074 MB / 59.32 GB, free: 316.4 MB / 1.964 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07822/53.88, allocations: 65.63 MB / 59.38 GB, free: 250.9 MB / 1.964 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01005/53.89, allocations: 9.918 MB / 59.39 GB, free: 241 MB / 1.964 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005127/53.89, allocations: 1.343 MB / 59.39 GB, free: 239.6 MB / 1.964 GB Notification: Performance of SimCode: time 7.21e-07/53.89, allocations: 0 / 59.39 GB, free: 239.6 MB / 1.964 GB Notification: Performance of Templates: time 3.036/56.93, allocations: 1.74 GB / 61.13 GB, free: 77.12 MB / 1.964 GB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches