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.001012/0.001011, allocations: 89.11 kB / 16.32 MB, free: 6.449 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.001385/0.001385, allocations: 178.7 kB / 17.21 MB, free: 6.32 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.517/1.517, allocations: 223.3 MB / 241.2 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003139/0.0003143, allocations: 5.844 kB / 300.8 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1256, allocations: 50.42 MB / 351.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.007986/0.1336, allocations: 6.222 MB / 357.4 MB, free: 5.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00638/0.1401, allocations: 2.751 MB / 360.2 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002097/0.1422, allocations: 47.75 kB / 360.2 MB, free: 2.621 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00204/0.1443, allocations: 421.7 kB / 360.7 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003/0.1473, allocations: 1.184 MB / 361.8 MB, free: 1.02 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.001561/0.1489, allocations: 335.5 kB / 362.2 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005046/0.1539, allocations: 3.137 MB / 365.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003443/0.1574, allocations: 1.698 MB / 367 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003222/0.1607, allocations: 1.418 MB / 368.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003436/0.1641, allocations: 1.831 MB / 370.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009419/0.1651, allocations: 152 kB / 370.4 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002738/0.1678, allocations: 427.5 kB / 370.8 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004507/0.1723, allocations: 4.319 MB / 375.1 MB, free: 3.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003347/0.1757, allocations: 2.15 MB / 377.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01143/0.1871, allocations: 9.605 MB / 386.9 MB, free: 7.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1872, allocations: 4 kB / 386.9 MB, free: 7.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1872, allocations: 0 / 386.9 MB, free: 7.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004655/0.1877, allocations: 0 / 386.9 MB, free: 7.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.02428/0.212, allocations: 15.13 MB / 402 MB, free: 8.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.821e-05/0.2121, allocations: 12.03 kB / 402 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004779/0.2169, allocations: 1.475 MB / 403.5 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00763/0.2245, allocations: 2.962 MB / 406.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002556/0.2248, allocations: 168.4 kB / 406.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009554/0.2258, allocations: 223.9 kB / 406.9 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2629/0.4887, allocations: 26.94 MB / 433.8 MB, free: 53.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.863e-05/0.4888, allocations: 1.375 kB / 433.8 MB, free: 53.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002392/0.4891, allocations: 88.91 kB / 433.9 MB, free: 53.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001775/0.4893, allocations: 111.8 kB / 434 MB, free: 53.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03516/0.5244, allocations: 24.43 MB / 458.4 MB, free: 42.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01908/0.5436, allocations: 14.7 MB / 473.1 MB, free: 28.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05993/0.6036, allocations: 82.43 MB / 0.5425 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3065/0.9101, allocations: 80.34 MB / 0.621 GB, free: 122.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003064/0.9104, allocations: 124.4 kB / 0.6211 GB, free: 122.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02851/0.9389, allocations: 29.8 MB / 0.6502 GB, free: 101.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=4937): time 3.767e-06/0.939, allocations: 4 kB / 0.6502 GB, free: 101.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=4941): time 14.19/15.13, allocations: 2.896 GB / 3.547 GB, free: 136.8 MB / 1.857 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003754/15.13, allocations: 7.194 MB / 3.554 GB, free: 129.9 MB / 1.857 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002236/15.13, allocations: 1.499 MB / 3.555 GB, free: 128.4 MB / 1.857 GB Notification: Performance of collectPreVariables (initialization): time 0.004685/15.14, allocations: 3.936 MB / 3.559 GB, free: 124.4 MB / 1.857 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009765/15.14, allocations: 1.022 MB / 3.56 GB, free: 123.4 MB / 1.857 GB Notification: Performance of collectInitialBindings (initialization): time 0.02369/15.16, allocations: 21.23 MB / 3.581 GB, free: 102.1 MB / 1.857 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005551/15.17, allocations: 1.492 MB / 3.582 GB, free: 100.6 MB / 1.857 GB Notification: Performance of setup shared object (initialization): time 0.005776/15.17, allocations: 3.458 MB / 3.586 GB, free: 97.09 MB / 1.857 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04569/15.22, allocations: 26.2 MB / 3.611 GB, free: 70.86 MB / 1.857 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06985/15.29, allocations: 57.9 MB / 3.668 GB, free: 14.27 MB / 1.873 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06553/15.35, allocations: 37.72 MB / 3.705 GB, free: 8.512 MB / 1.904 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002302/15.36, allocations: 304 kB / 3.705 GB, free: 8.215 MB / 1.904 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.182/15.54, allocations: 85.56 MB / 3.788 GB, free: 2.594 MB / 1.982 GB Notification: Performance of prepare postOptimizeDAE: time 0.001517/15.54, allocations: 481.7 kB / 3.789 GB, free: 2.117 MB / 1.982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002437/15.54, allocations: 1.031 MB / 3.79 GB, free: 1.086 MB / 1.982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006793/15.55, allocations: 2.432 MB / 3.792 GB, free: 14.64 MB / 1.998 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04244/15.59, allocations: 10.54 MB / 3.803 GB, free: 4.074 MB / 1.998 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01446/15.61, allocations: 12.64 MB / 3.815 GB, free: 6.895 MB / 2.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03414/15.64, allocations: 2.422 MB / 3.817 GB, free: 4.473 MB / 2.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01365/15.65, allocations: 3.562 MB / 3.821 GB, free: 0.9102 MB / 2.014 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.02806/15.68, allocations: 14.49 MB / 3.835 GB, free: 2.359 MB / 2.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006205/15.69, allocations: 2.215 MB / 3.837 GB, free: 128 kB / 2.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.211/23.9, allocations: 8.841 GB / 12.68 GB, free: 1.185 GB / 2.686 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/23.9, allocations: 12 kB / 12.68 GB, free: 1.185 GB / 2.686 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/23.9, allocations: 8 kB / 12.68 GB, free: 1.185 GB / 2.686 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.821e-05/23.9, allocations: 7.766 kB / 12.68 GB, free: 1.185 GB / 2.686 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.761/31.66, allocations: 8.861 GB / 21.54 GB, free: 1.681 GB / 2.686 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/31.66, allocations: 10.5 kB / 21.54 GB, free: 1.681 GB / 2.686 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007567/31.66, allocations: 159.1 kB / 21.54 GB, free: 1.681 GB / 2.686 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00227/31.66, allocations: 0.8135 MB / 21.54 GB, free: 1.68 GB / 2.686 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002405/31.67, allocations: 0.6243 MB / 21.54 GB, free: 1.679 GB / 2.686 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008676/31.67, allocations: 10.4 MB / 21.55 GB, free: 1.669 GB / 2.686 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/31.67, allocations: 0 / 21.55 GB, free: 1.669 GB / 2.686 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.887/39.56, allocations: 8.895 GB / 30.45 GB, free: 2.136 GB / 2.686 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01124/39.57, allocations: 4.801 MB / 30.45 GB, free: 2.132 GB / 2.686 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00416/39.58, allocations: 0.6211 MB / 30.45 GB, free: 2.131 GB / 2.686 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007921/39.59, allocations: 0.6677 MB / 30.45 GB, free: 2.131 GB / 2.686 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003771/39.59, allocations: 0.5504 MB / 30.45 GB, free: 2.13 GB / 2.686 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002154/39.59, allocations: 0.6289 MB / 30.45 GB, free: 2.129 GB / 2.686 GB Notification: Performance of sorting global known variables: time 0.00161/39.59, allocations: 1.053 MB / 30.45 GB, free: 2.128 GB / 2.686 GB Notification: Performance of sort global known variables: time 2.093e-06/39.59, allocations: 0 / 30.45 GB, free: 2.128 GB / 2.686 GB Notification: Performance of remove unused functions: time 0.0438/39.64, allocations: 9.522 MB / 30.46 GB, free: 2.119 GB / 2.686 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.003852/39.64, allocations: 0.9729 MB / 30.46 GB, free: 2.118 GB / 2.686 GB Notification: Performance of simCode: created initialization part: time 0.1115/39.75, allocations: 81.73 MB / 30.54 GB, free: 2.039 GB / 2.686 GB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/39.75, allocations: 4 kB / 30.54 GB, free: 2.039 GB / 2.686 GB Notification: Performance of simCode: created simulation system equations: time 52.3/92.05, allocations: 28.59 GB / 59.13 GB, free: 64.64 MB / 3.155 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009293/92.06, allocations: 1.668 MB / 59.13 GB, free: 63.02 MB / 3.155 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4877/92.55, allocations: 66.21 MB / 59.2 GB, free: 2.742 GB / 3.155 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01159/92.56, allocations: 8.869 MB / 59.21 GB, free: 2.74 GB / 3.155 GB Notification: Performance of simCode: alias equations: time 0.008918/92.57, allocations: 4.087 MB / 59.21 GB, free: 2.74 GB / 3.155 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003845/92.57, allocations: 1.263 MB / 59.21 GB, free: 2.74 GB / 3.155 GB Notification: Performance of SimCode: time 1.373e-06/92.57, allocations: 1.344 kB / 59.21 GB, free: 2.74 GB / 3.155 GB Notification: Performance of Templates: time 0.3705/92.94, allocations: 260.4 MB / 59.47 GB, free: 2.523 GB / 3.155 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Rectifier6pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches