Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009527/0.0009525, allocations: 94.14 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001361/0.001362, allocations: 178.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.2 MB / 241.1 MB, free: 5.312 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000265/0.000265, allocations: 10.44 kB / 300.7 MB, free: 5.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1031, allocations: 50.42 MB / 351.1 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.006067/0.1092, allocations: 5.771 MB / 356.9 MB, free: 5.711 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004741/0.114, allocations: 2.802 MB / 359.7 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008163/0.1149, allocations: 43.75 kB / 359.7 MB, free: 2.859 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001036/0.1159, allocations: 445.9 kB / 360.2 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001634/0.1175, allocations: 1.147 MB / 361.3 MB, free: 1.273 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0008979/0.1185, allocations: 331.3 kB / 361.6 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002505/0.121, allocations: 1.977 MB / 363.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00187/0.1229, allocations: 1.698 MB / 365.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001509/0.1244, allocations: 1.36 MB / 366.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001939/0.1263, allocations: 1.671 MB / 368.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002582/0.1266, allocations: 152 kB / 368.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001116/0.1277, allocations: 399.6 kB / 368.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002517/0.1302, allocations: 4.296 MB / 373.2 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001759/0.132, allocations: 2.146 MB / 375.3 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007738/0.1398, allocations: 9.305 MB / 384.6 MB, free: 9.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1398, allocations: 0 / 384.6 MB, free: 9.855 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1398, allocations: 0 / 384.6 MB, free: 9.855 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005041/0.1403, allocations: 4 kB / 384.6 MB, free: 9.852 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: 5386 * Number of variables: 5386 Notification: Performance of Generate backend data structure: time 0.02193/0.1623, allocations: 15.12 MB / 399.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.365e-05/0.1624, allocations: 15.97 kB / 399.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005271/0.1676, allocations: 1.475 MB / 401.3 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007236/0.1749, allocations: 2.962 MB / 404.2 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.1751, allocations: 164.4 kB / 404.4 MB, free: 5.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003881/0.1755, allocations: 219.9 kB / 404.6 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4032/0.5787, allocations: 26.93 MB / 431.5 MB, free: 49.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.227e-05/0.5788, allocations: 2.484 kB / 431.5 MB, free: 49.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002281/0.579, allocations: 86.97 kB / 431.6 MB, free: 49.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001421/0.5792, allocations: 114.2 kB / 431.7 MB, free: 49.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02835/0.6075, allocations: 24.42 MB / 456.1 MB, free: 41.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01903/0.6266, allocations: 14.7 MB / 470.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05746/0.6841, allocations: 82.42 MB / 0.5403 GB, free: 8.824 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003031/0.6844, allocations: 133.7 kB / 0.5404 GB, free: 8.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03019/0.7147, allocations: 29.81 MB / 0.5695 GB, free: 10.79 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4937): time 6.131e-06/0.7147, allocations: 4 kB / 0.5695 GB, free: 10.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=4941): time 12.08/12.8, allocations: 2.9 GB / 3.47 GB, free: 14.14 MB / 1.858 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004819/12.8, allocations: 7.194 MB / 3.477 GB, free: 6.852 MB / 1.858 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002347/12.81, allocations: 1.491 MB / 3.478 GB, free: 5.344 MB / 1.858 GB Notification: Performance of collectPreVariables (initialization): time 0.004986/12.81, allocations: 3.935 MB / 3.482 GB, free: 1.395 MB / 1.858 GB Notification: Performance of collectInitialEqns (initialization): time 0.001067/12.81, allocations: 1.03 MB / 3.483 GB, free: 360 kB / 1.858 GB Notification: Performance of collectInitialBindings (initialization): time 0.02674/12.84, allocations: 21.23 MB / 3.504 GB, free: 10.84 MB / 1.889 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00632/12.85, allocations: 1.492 MB / 3.505 GB, free: 9.352 MB / 1.889 GB Notification: Performance of setup shared object (initialization): time 0.006216/12.85, allocations: 3.458 MB / 3.509 GB, free: 5.883 MB / 1.889 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05121/12.9, allocations: 26.21 MB / 3.534 GB, free: 11.64 MB / 1.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.07903/12.98, allocations: 57.61 MB / 3.59 GB, free: 3.336 MB / 1.983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05795/13.04, allocations: 37.73 MB / 3.627 GB, free: 13.57 MB / 2.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001857/13.04, allocations: 308 kB / 3.628 GB, free: 13.27 MB / 2.029 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1552/13.2, allocations: 85.59 MB / 3.711 GB, free: 7.625 MB / 2.108 GB Notification: Performance of prepare postOptimizeDAE: time 0.002048/13.2, allocations: 485.7 kB / 3.712 GB, free: 7.145 MB / 2.108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002674/13.2, allocations: 1.031 MB / 3.713 GB, free: 6.113 MB / 2.108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005765/13.21, allocations: 2.436 MB / 3.715 GB, free: 3.668 MB / 2.108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03794/13.25, allocations: 10.54 MB / 3.725 GB, free: 9.098 MB / 2.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0157/13.26, allocations: 12.85 MB / 3.738 GB, free: 11.71 MB / 2.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0339/13.3, allocations: 2.426 MB / 3.74 GB, free: 9.285 MB / 2.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01025/13.31, allocations: 3.559 MB / 3.744 GB, free: 5.727 MB / 2.139 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.03417/13.34, allocations: 14.49 MB / 3.758 GB, free: 7.172 MB / 2.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004414/13.34, allocations: 2.219 MB / 3.76 GB, free: 4.934 MB / 2.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.135/21.48, allocations: 8.841 GB / 12.6 GB, free: 1.051 GB / 2.295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/21.48, allocations: 16.7 kB / 12.6 GB, free: 1.051 GB / 2.295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.789e-05/21.48, allocations: 4.938 kB / 12.6 GB, free: 1.051 GB / 2.295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.54e-05/21.48, allocations: 3.984 kB / 12.6 GB, free: 1.051 GB / 2.295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.073/29.55, allocations: 8.861 GB / 21.46 GB, free: 1.894 GB / 2.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/29.55, allocations: 0.625 kB / 21.46 GB, free: 1.894 GB / 2.295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006907/29.55, allocations: 161.5 kB / 21.46 GB, free: 1.894 GB / 2.295 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002244/29.56, allocations: 0.8083 MB / 21.46 GB, free: 1.894 GB / 2.295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001652/29.56, allocations: 0.6295 MB / 21.46 GB, free: 1.894 GB / 2.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008731/29.57, allocations: 10.61 MB / 21.47 GB, free: 1.886 GB / 2.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/29.57, allocations: 0 / 21.47 GB, free: 1.886 GB / 2.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.533/37.1, allocations: 8.895 GB / 30.37 GB, free: 0.8056 GB / 2.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01257/37.11, allocations: 4.802 MB / 30.37 GB, free: 0.8017 GB / 2.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003018/37.11, allocations: 0.6236 MB / 30.37 GB, free: 0.8011 GB / 2.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006906/37.12, allocations: 0.6699 MB / 30.38 GB, free: 0.8005 GB / 2.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003692/37.13, allocations: 0.5487 MB / 30.38 GB, free: 0.7999 GB / 2.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002417/37.13, allocations: 0.625 MB / 30.38 GB, free: 0.7993 GB / 2.295 GB Notification: Performance of sorting global known variables: time 0.001439/37.13, allocations: 1.057 MB / 30.38 GB, free: 0.7983 GB / 2.295 GB Notification: Performance of sort global known variables: time 2.8e-07/37.13, allocations: 0 / 30.38 GB, free: 0.7983 GB / 2.295 GB Notification: Performance of remove unused functions: time 0.03805/37.17, allocations: 9.516 MB / 30.39 GB, free: 0.789 GB / 2.295 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.003201/37.17, allocations: 0.9691 MB / 30.39 GB, free: 0.7882 GB / 2.295 GB Notification: Performance of simCode: created initialization part: time 0.09682/37.27, allocations: 81.76 MB / 30.47 GB, free: 0.7087 GB / 2.295 GB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/37.27, allocations: 1.938 kB / 30.47 GB, free: 0.7087 GB / 2.295 GB Notification: Performance of simCode: created simulation system equations: time 54.41/91.68, allocations: 28.59 GB / 59.05 GB, free: 1.393 GB / 2.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007521/91.69, allocations: 1.057 MB / 59.06 GB, free: 1.392 GB / 2.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09485/91.78, allocations: 65.6 MB / 59.12 GB, free: 1.328 GB / 2.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01394/91.8, allocations: 9.125 MB / 59.13 GB, free: 1.319 GB / 2.795 GB Notification: Performance of simCode: alias equations: time 0.009816/91.8, allocations: 4.095 MB / 59.13 GB, free: 1.315 GB / 2.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00743/91.81, allocations: 1.261 MB / 59.13 GB, free: 1.314 GB / 2.795 GB Notification: Performance of SimCode: time 1.303e-06/91.81, allocations: 0 / 59.13 GB, free: 1.314 GB / 2.795 GB Notification: Performance of Templates: time 0.3475/92.16, allocations: 260.4 MB / 59.39 GB, free: 1.06 GB / 2.795 GB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches