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.001005/0.001005, allocations: 196.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 226.6 MB / 244.3 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008517/0.0008515, allocations: 99.08 kB / 296.4 MB, free: 7.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003035, allocations: 8 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2434, allocations: 51.29 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.006812/0.2502, allocations: 9.642 MB / 417.1 MB, free: 18.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006446/0.2567, allocations: 3.676 MB / 420.8 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001958/0.2587, allocations: 79.56 kB / 420.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001578/0.2603, allocations: 0.6135 MB / 421.5 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002498/0.2628, allocations: 1.604 MB / 423.1 MB, free: 12.2 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.001182/0.264, allocations: 463.3 kB / 423.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003963/0.268, allocations: 5.514 MB / 429.1 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002559/0.2705, allocations: 3.072 MB / 432.1 MB, free: 3.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002159/0.2727, allocations: 2.189 MB / 434.3 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002899/0.2756, allocations: 2.819 MB / 437.1 MB, free: 14.06 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005277/0.2762, allocations: 268 kB / 437.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.2777, allocations: 0.5386 MB / 437.9 MB, free: 13.26 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003386/0.2811, allocations: 4.865 MB / 442.8 MB, free: 8.383 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002588/0.2837, allocations: 2.563 MB / 445.4 MB, free: 5.805 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01161/0.2953, allocations: 12.7 MB / 458.1 MB, free: 9.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.2953, allocations: 0 / 458.1 MB, free: 9.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2953, allocations: 0 / 458.1 MB, free: 9.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005207/0.2959, allocations: 0 / 458.1 MB, free: 9.07 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.02268/0.3186, allocations: 16.92 MB / 475 MB, free: 8.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.3186, allocations: 8.031 kB / 475 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004197/0.3228, allocations: 1.762 MB / 476.8 MB, free: 6.227 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006693/0.3295, allocations: 4.087 MB / 480.9 MB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.3297, allocations: 295.9 kB / 481.1 MB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005893/0.3303, allocations: 387.9 kB / 481.5 MB, free: 1.379 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03036/0.3607, allocations: 29.56 MB / 0.4991 GB, free: 3.738 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.824e-05/0.3608, allocations: 0 / 0.4991 GB, free: 3.738 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000379/0.3612, allocations: 164 kB / 0.4993 GB, free: 3.578 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001836/0.3614, allocations: 212 kB / 0.4995 GB, free: 3.367 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.185/0.5464, allocations: 26.7 MB / 0.5255 GB, free: 70.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02404/0.5704, allocations: 22.26 MB / 0.5473 GB, free: 48.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04635/0.6168, allocations: 85.76 MB / 0.631 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2455/0.8624, allocations: 81.69 MB / 0.7108 GB, free: 128.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002871/0.8627, allocations: 133.9 kB / 0.7109 GB, free: 128 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01997/0.8827, allocations: 30.63 MB / 0.7408 GB, free: 103 MB / 458.7 MB Notification: Performance of pre-optimization done (n=5058): time 4.679e-06/0.8827, allocations: 0 / 0.7408 GB, free: 103 MB / 458.7 MB Notification: Performance of matching and sorting (n=5065): time 10.05/10.93, allocations: 2.902 GB / 3.642 GB, free: 1.587 GB / 1.917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003237/10.94, allocations: 7.363 MB / 3.65 GB, free: 1.58 GB / 1.917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003456/10.94, allocations: 2.625 MB / 3.652 GB, free: 1.577 GB / 1.917 GB Notification: Performance of collectPreVariables (initialization): time 0.0041/10.95, allocations: 3.955 MB / 3.656 GB, free: 1.574 GB / 1.917 GB Notification: Performance of collectInitialEqns (initialization): time 0.001375/10.95, allocations: 1.74 MB / 3.658 GB, free: 1.572 GB / 1.917 GB Notification: Performance of collectInitialBindings (initialization): time 0.018/10.97, allocations: 21.64 MB / 3.679 GB, free: 1.551 GB / 1.917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00459/10.97, allocations: 1.516 MB / 3.68 GB, free: 1.549 GB / 1.917 GB Notification: Performance of setup shared object (initialization): time 0.004916/10.97, allocations: 3.503 MB / 3.684 GB, free: 1.546 GB / 1.917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04654/11.02, allocations: 26.85 MB / 3.71 GB, free: 1.519 GB / 1.917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.07165/11.09, allocations: 58.74 MB / 3.767 GB, free: 1.448 GB / 1.917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0552/11.15, allocations: 38.48 MB / 3.805 GB, free: 1.41 GB / 1.917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001415/11.15, allocations: 304.5 kB / 3.805 GB, free: 1.41 GB / 1.917 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1566/11.31, allocations: 87.69 MB / 3.891 GB, free: 1.324 GB / 1.917 GB Notification: Performance of prepare postOptimizeDAE: time 0.00145/11.31, allocations: 493.8 kB / 3.891 GB, free: 1.324 GB / 1.917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002082/11.31, allocations: 1.031 MB / 3.892 GB, free: 1.323 GB / 1.917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008019/11.32, allocations: 3.258 MB / 3.896 GB, free: 1.319 GB / 1.917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.036/11.35, allocations: 10.73 MB / 3.906 GB, free: 1.309 GB / 1.917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02038/11.37, allocations: 25.61 MB / 3.931 GB, free: 1.283 GB / 1.917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02755/11.4, allocations: 2.492 MB / 3.933 GB, free: 1.28 GB / 1.917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007977/11.41, allocations: 3.602 MB / 3.937 GB, free: 1.277 GB / 1.917 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.02375/11.43, allocations: 15.08 MB / 3.952 GB, free: 1.262 GB / 1.917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003667/11.44, allocations: 2.346 MB / 3.954 GB, free: 1.259 GB / 1.917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.92/18.36, allocations: 8.843 GB / 12.8 GB, free: 213.7 MB / 1.917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/18.36, allocations: 28 kB / 12.8 GB, free: 213.6 MB / 1.917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/18.36, allocations: 8 kB / 12.8 GB, free: 213.6 MB / 1.917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.724e-05/18.36, allocations: 11.95 kB / 12.8 GB, free: 213.6 MB / 1.917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.996/25.35, allocations: 8.865 GB / 21.66 GB, free: 0.6784 GB / 1.917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/25.35, allocations: 0 / 21.66 GB, free: 0.6784 GB / 1.917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/25.35, allocations: 298.3 kB / 21.66 GB, free: 0.6781 GB / 1.917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004936/25.36, allocations: 1.612 MB / 21.66 GB, free: 0.6766 GB / 1.917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001824/25.36, allocations: 0.6556 MB / 21.67 GB, free: 0.6759 GB / 1.917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01694/25.38, allocations: 23.22 MB / 21.69 GB, free: 0.6523 GB / 1.917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/25.38, allocations: 3.953 kB / 21.69 GB, free: 0.6523 GB / 1.917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.227/32.6, allocations: 8.897 GB / 30.59 GB, free: 1.09 GB / 1.917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01072/32.62, allocations: 5.084 MB / 30.59 GB, free: 1.086 GB / 1.917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002998/32.62, allocations: 0.6484 MB / 30.59 GB, free: 1.085 GB / 1.917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006687/32.63, allocations: 0.722 MB / 30.59 GB, free: 1.084 GB / 1.917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003002/32.63, allocations: 0.6481 MB / 30.59 GB, free: 1.084 GB / 1.917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002094/32.63, allocations: 0.6523 MB / 30.59 GB, free: 1.083 GB / 1.917 GB Notification: Performance of sorting global known variables: time 0.002727/32.63, allocations: 1.839 MB / 30.59 GB, free: 1.081 GB / 1.917 GB Notification: Performance of sort global known variables: time 1.5e-07/32.63, allocations: 0 / 30.59 GB, free: 1.081 GB / 1.917 GB Notification: Performance of remove unused functions: time 0.03816/32.67, allocations: 9.964 MB / 30.6 GB, free: 1.072 GB / 1.917 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.003472/32.68, allocations: 0.999 MB / 30.61 GB, free: 1.071 GB / 1.917 GB Notification: Performance of simCode: created initialization part: time 0.08938/32.76, allocations: 84.21 MB / 30.69 GB, free: 0.9888 GB / 1.917 GB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/32.76, allocations: 0 / 30.69 GB, free: 0.9888 GB / 1.917 GB Notification: Performance of simCode: created simulation system equations: time 44.82/77.58, allocations: 28.59 GB / 59.28 GB, free: 1.699 GB / 2.401 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0126/77.59, allocations: 2.107 MB / 59.28 GB, free: 1.697 GB / 2.401 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08598/77.68, allocations: 65.63 MB / 59.35 GB, free: 1.633 GB / 2.401 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01185/77.69, allocations: 9.911 MB / 59.35 GB, free: 1.624 GB / 2.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005385/77.7, allocations: 1.347 MB / 59.36 GB, free: 1.622 GB / 2.401 GB Notification: Performance of SimCode: time 1.142e-06/77.7, allocations: 0 / 59.36 GB, free: 1.622 GB / 2.401 GB Notification: Performance of Templates: time 2.573/80.27, allocations: 1.74 GB / 61.1 GB, free: 1.906 GB / 2.401 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