Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.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.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_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_Modelica.Blocks.Examples.Rectifier12pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008105/0.0008104, allocations: 97.69 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.0009641/0.0009642, allocations: 195 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.425/1.425, allocations: 227.7 MB / 246.4 MB, free: 9.734 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002583/0.0002585, allocations: 8 kB / 307.1 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.09935, allocations: 51.52 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.01445/0.1139, allocations: 9.662 MB / 368.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01123/0.1251, allocations: 3.697 MB / 372 MB, free: 40 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.2087/0.3339, allocations: 73.86 kB / 372 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003425/0.3373, allocations: 0.6037 MB / 372.7 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005245/0.3426, allocations: 1.608 MB / 374.3 MB, free: 8.559 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.001881/0.3445, allocations: 474.5 kB / 374.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008811/0.3533, allocations: 5.548 MB / 380.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004624/0.358, allocations: 3.073 MB / 383.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005267/0.3633, allocations: 2.183 MB / 385.5 MB, free: 6.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006875/0.3702, allocations: 2.825 MB / 388.4 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001267/0.3715, allocations: 271.1 kB / 388.6 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003653/0.3751, allocations: 0.5318 MB / 389.2 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004312/0.3795, allocations: 4.863 MB / 394 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004107/0.3836, allocations: 2.565 MB / 396.6 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01321/0.3968, allocations: 12.71 MB / 409.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3969, allocations: 0 / 409.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3969, allocations: 4 kB / 409.3 MB, free: 7.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004764/0.3974, allocations: 0 / 409.3 MB, free: 7.184 MB / 318.1 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.02112/0.4185, allocations: 16.92 MB / 426.2 MB, free: 6.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.4186, allocations: 12.03 kB / 426.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003902/0.4225, allocations: 1.762 MB / 428 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007161/0.4296, allocations: 4.099 MB / 432.1 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002341/0.4299, allocations: 295.3 kB / 432.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007649/0.4307, allocations: 395.3 kB / 432.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03704/0.4677, allocations: 29.55 MB / 462.3 MB, free: 1.965 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.898e-05/0.4678, allocations: 0 / 462.3 MB, free: 1.965 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003683/0.4682, allocations: 163.4 kB / 462.5 MB, free: 1.809 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002215/0.4684, allocations: 208 kB / 462.7 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0307/0.4991, allocations: 26.77 MB / 489.4 MB, free: 7.156 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03873/0.5379, allocations: 22.25 MB / 0.4997 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.423/0.9609, allocations: 85.76 MB / 0.5835 GB, free: 92 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.04702/1.008, allocations: 81.67 MB / 0.6632 GB, free: 20.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000288/1.008, allocations: 136.1 kB / 0.6633 GB, free: 20.09 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0299/1.038, allocations: 30.81 MB / 0.6934 GB, free: 7.789 MB / 462.1 MB Notification: Performance of pre-optimization done (n=5058): time 6.402e-06/1.038, allocations: 0 / 0.6934 GB, free: 7.789 MB / 462.1 MB Notification: Performance of matching and sorting (n=5065): time 12.27/13.31, allocations: 2.903 GB / 3.596 GB, free: 2.281 MB / 1.826 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006315/13.31, allocations: 7.361 MB / 3.604 GB, free: 11.16 MB / 1.842 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005102/13.32, allocations: 2.63 MB / 3.606 GB, free: 8.508 MB / 1.842 GB Notification: Performance of collectPreVariables (initialization): time 0.006979/13.33, allocations: 3.957 MB / 3.61 GB, free: 4.539 MB / 1.842 GB Notification: Performance of collectInitialEqns (initialization): time 0.002276/13.33, allocations: 1.743 MB / 3.612 GB, free: 2.777 MB / 1.842 GB Notification: Performance of collectInitialBindings (initialization): time 0.0256/13.35, allocations: 21.64 MB / 3.633 GB, free: 13.24 MB / 1.873 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005215/13.36, allocations: 1.512 MB / 3.634 GB, free: 11.73 MB / 1.873 GB Notification: Performance of setup shared object (initialization): time 0.006105/13.37, allocations: 3.511 MB / 3.638 GB, free: 8.207 MB / 1.873 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05692/13.42, allocations: 26.85 MB / 3.664 GB, free: 13.34 MB / 1.904 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08377/13.51, allocations: 58.76 MB / 3.721 GB, free: 3.836 MB / 1.967 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0632/13.57, allocations: 38.48 MB / 3.759 GB, free: 13.3 MB / 2.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001197/13.57, allocations: 304 kB / 3.759 GB, free: 13 MB / 2.014 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1689/13.74, allocations: 87.69 MB / 3.845 GB, free: 5.195 MB / 2.092 GB Notification: Performance of prepare postOptimizeDAE: time 0.00156/13.74, allocations: 493.7 kB / 3.845 GB, free: 4.707 MB / 2.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002132/13.74, allocations: 1.031 MB / 3.846 GB, free: 3.676 MB / 2.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01151/13.76, allocations: 3.251 MB / 3.85 GB, free: 412 kB / 2.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04246/13.8, allocations: 10.73 MB / 3.86 GB, free: 5.648 MB / 2.108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02855/13.83, allocations: 25.61 MB / 3.885 GB, free: 10.73 MB / 2.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03664/13.86, allocations: 2.492 MB / 3.887 GB, free: 8.242 MB / 2.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01171/13.87, allocations: 3.594 MB / 3.891 GB, free: 4.648 MB / 2.139 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.02911/13.9, allocations: 15.09 MB / 3.906 GB, free: 5.5 MB / 2.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004249/13.91, allocations: 2.342 MB / 3.908 GB, free: 3.137 MB / 2.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.654/21.56, allocations: 8.843 GB / 12.75 GB, free: 1.715 GB / 2.42 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.034e-05/21.56, allocations: 24.59 kB / 12.75 GB, free: 1.715 GB / 2.42 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.567e-05/21.56, allocations: 8.5 kB / 12.75 GB, free: 1.715 GB / 2.42 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.114e-05/21.56, allocations: 11.95 kB / 12.75 GB, free: 1.715 GB / 2.42 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.595/29.16, allocations: 8.865 GB / 21.62 GB, free: 1.065 GB / 2.42 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.861e-05/29.16, allocations: 1.453 kB / 21.62 GB, free: 1.065 GB / 2.42 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/29.16, allocations: 293.6 kB / 21.62 GB, free: 1.065 GB / 2.42 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004782/29.16, allocations: 1.613 MB / 21.62 GB, free: 1.063 GB / 2.42 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002624/29.17, allocations: 0.6484 MB / 21.62 GB, free: 1.063 GB / 2.42 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01925/29.18, allocations: 23.23 MB / 21.64 GB, free: 1.039 GB / 2.42 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/29.18, allocations: 0 / 21.64 GB, free: 1.039 GB / 2.42 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.767/36.95, allocations: 8.897 GB / 30.54 GB, free: 370 MB / 2.42 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01125/36.96, allocations: 5.087 MB / 30.54 GB, free: 365.8 MB / 2.42 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003493/36.97, allocations: 0.6484 MB / 30.54 GB, free: 365.2 MB / 2.42 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007667/36.97, allocations: 0.7227 MB / 30.55 GB, free: 364.4 MB / 2.42 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005887/36.98, allocations: 0.6529 MB / 30.55 GB, free: 363.8 MB / 2.42 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0026/36.98, allocations: 0.6523 MB / 30.55 GB, free: 363.1 MB / 2.42 GB Notification: Performance of sorting global known variables: time 0.002863/36.99, allocations: 1.843 MB / 30.55 GB, free: 361.3 MB / 2.42 GB Notification: Performance of sort global known variables: time 4.51e-07/36.99, allocations: 0 / 30.55 GB, free: 361.3 MB / 2.42 GB Notification: Performance of remove unused functions: time 0.04288/37.03, allocations: 9.963 MB / 30.56 GB, free: 351.3 MB / 2.42 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.00398/37.03, allocations: 0.9841 MB / 30.56 GB, free: 350.5 MB / 2.42 GB Notification: Performance of simCode: created initialization part: time 0.1045/37.14, allocations: 84.21 MB / 30.64 GB, free: 266.6 MB / 2.42 GB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/37.14, allocations: 4.25 kB / 30.64 GB, free: 266.6 MB / 2.42 GB Notification: Performance of simCode: created simulation system equations: time 57.65/94.79, allocations: 28.59 GB / 59.23 GB, free: 1.838 GB / 2.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01041/94.8, allocations: 2.101 MB / 59.24 GB, free: 1.836 GB / 2.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08865/94.89, allocations: 65.03 MB / 59.3 GB, free: 1.773 GB / 2.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01574/94.91, allocations: 9.993 MB / 59.31 GB, free: 1.763 GB / 2.92 GB Notification: Performance of simCode: alias equations: time 0.008796/94.92, allocations: 4.363 MB / 59.31 GB, free: 1.759 GB / 2.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005553/94.92, allocations: 1.335 MB / 59.31 GB, free: 1.757 GB / 2.92 GB Notification: Performance of SimCode: time 1.122e-06/94.92, allocations: 0 / 59.31 GB, free: 1.757 GB / 2.92 GB Notification: Performance of Templates: time 0.3827/95.3, allocations: 287.5 MB / 59.6 GB, free: 1.478 GB / 2.92 GB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Rectifier12pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches