Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001788/0.001788, allocations: 175.4 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008764/0.0008764, allocations: 89 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003414/0.0003417, allocations: 8 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1984, allocations: 47.57 MB / 375.1 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.00794/0.2064, allocations: 9.587 MB / 384.7 MB, free: 37.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007186/0.2136, allocations: 3.69 MB / 388.4 MB, free: 34.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002236/0.2159, allocations: 65.12 kB / 388.4 MB, free: 34.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001838/0.2178, allocations: 0.6066 MB / 389 MB, free: 34.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003324/0.2211, allocations: 1.632 MB / 390.7 MB, free: 33.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001391/0.2225, allocations: 475.3 kB / 391.1 MB, free: 32.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005344/0.2279, allocations: 5.686 MB / 396.8 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003612/0.2315, allocations: 3.345 MB / 400.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003745/0.2353, allocations: 2.201 MB / 402.4 MB, free: 21.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003998/0.2393, allocations: 2.851 MB / 405.2 MB, free: 18.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001021/0.2404, allocations: 280 kB / 405.5 MB, free: 18.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002416/0.2428, allocations: 0.5814 MB / 406.1 MB, free: 17.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003062/0.2459, allocations: 4.872 MB / 410.9 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007784/0.2537, allocations: 5.905 MB / 416.8 MB, free: 6.746 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.2651, allocations: 12.71 MB / 429.5 MB, free: 10 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2652, allocations: 3.938 kB / 429.5 MB, free: 10 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.2652, allocations: 4 kB / 429.6 MB, free: 9.996 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004671/0.2657, allocations: 0 / 429.6 MB, free: 9.996 MB / 314.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.02233/0.288, allocations: 16.68 MB / 446.2 MB, free: 9.176 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.2881, allocations: 8.031 kB / 446.2 MB, free: 9.168 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004156/0.2922, allocations: 1.727 MB / 448 MB, free: 7.418 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006879/0.2991, allocations: 4.012 MB / 452 MB, free: 3.312 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002372/0.2994, allocations: 299.9 kB / 452.3 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008195/0.3002, allocations: 391.9 kB / 452.7 MB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03381/0.3341, allocations: 29.54 MB / 482.2 MB, free: 5.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.878e-05/0.3342, allocations: 0 / 482.2 MB, free: 5.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003904/0.3346, allocations: 164 kB / 482.4 MB, free: 4.859 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001852/0.3348, allocations: 212 kB / 482.6 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3343/0.669, allocations: 26.68 MB / 0.4973 GB, free: 95.28 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03163/0.7007, allocations: 22.28 MB / 0.5191 GB, free: 81.33 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04343/0.7442, allocations: 85.76 MB / 0.6028 GB, free: 11.06 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2793/1.024, allocations: 81.75 MB / 0.6827 GB, free: 142.6 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004069/1.024, allocations: 144 kB / 0.6828 GB, free: 142.5 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02695/1.051, allocations: 30.63 MB / 0.7127 GB, free: 119.2 MB / 442.8 MB Notification: Performance of pre-optimization done (n=5058): time 5.159e-06/1.051, allocations: 3.031 kB / 0.7127 GB, free: 119.2 MB / 442.8 MB Notification: Performance of matching and sorting (n=5065): time 12.64/13.69, allocations: 2.901 GB / 3.614 GB, free: 141.3 MB / 1.854 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003461/13.7, allocations: 7.356 MB / 3.621 GB, free: 134.2 MB / 1.854 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003956/13.7, allocations: 2.633 MB / 3.624 GB, free: 131.6 MB / 1.854 GB Notification: Performance of collectPreVariables (initialization): time 0.004624/13.71, allocations: 3.952 MB / 3.627 GB, free: 127.6 MB / 1.854 GB Notification: Performance of collectInitialEqns (initialization): time 0.001729/13.71, allocations: 1.741 MB / 3.629 GB, free: 125.8 MB / 1.854 GB Notification: Performance of collectInitialBindings (initialization): time 0.02229/13.73, allocations: 21.64 MB / 3.65 GB, free: 104.1 MB / 1.854 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006114/13.74, allocations: 1.512 MB / 3.652 GB, free: 102.6 MB / 1.854 GB Notification: Performance of setup shared object (initialization): time 0.005717/13.74, allocations: 3.507 MB / 3.655 GB, free: 99.06 MB / 1.854 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04971/13.79, allocations: 26.85 MB / 3.681 GB, free: 72.19 MB / 1.854 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06864/13.86, allocations: 58.75 MB / 3.739 GB, free: 14.68 MB / 1.87 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1028/13.96, allocations: 87.88 MB / 3.825 GB, free: 7.832 MB / 1.964 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001389/13.97, allocations: 303.9 kB / 3.825 GB, free: 7.535 MB / 1.964 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1692/14.13, allocations: 87.71 MB / 3.911 GB, free: 15.71 MB / 2.057 GB Notification: Performance of prepare postOptimizeDAE: time 0.001614/14.14, allocations: 482.3 kB / 3.911 GB, free: 15.24 MB / 2.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002254/14.14, allocations: 1.035 MB / 3.912 GB, free: 14.2 MB / 2.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009375/14.15, allocations: 3.11 MB / 3.915 GB, free: 11.07 MB / 2.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03948/14.19, allocations: 10.72 MB / 3.926 GB, free: 328 kB / 2.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02951/14.22, allocations: 25.61 MB / 3.951 GB, free: 5.383 MB / 2.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03368/14.25, allocations: 2.496 MB / 3.953 GB, free: 2.887 MB / 2.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01167/14.26, allocations: 3.598 MB / 3.956 GB, free: 15.29 MB / 2.104 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.03485/14.3, allocations: 15.08 MB / 3.971 GB, free: 148 kB / 2.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004975/14.3, allocations: 2.343 MB / 3.974 GB, free: 13.78 MB / 2.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.137/21.44, allocations: 8.843 GB / 12.82 GB, free: 1.167 GB / 2.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.51e-05/21.44, allocations: 29.53 kB / 12.82 GB, free: 1.167 GB / 2.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.396e-05/21.44, allocations: 8 kB / 12.82 GB, free: 1.167 GB / 2.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.224e-05/21.44, allocations: 15.8 kB / 12.82 GB, free: 1.167 GB / 2.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.104/28.54, allocations: 8.865 GB / 21.68 GB, free: 1.703 GB / 2.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.758e-05/28.54, allocations: 1.031 kB / 21.68 GB, free: 1.703 GB / 2.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/28.55, allocations: 289.3 kB / 21.68 GB, free: 1.703 GB / 2.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00495/28.55, allocations: 1.621 MB / 21.68 GB, free: 1.702 GB / 2.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002602/28.55, allocations: 0.6484 MB / 21.68 GB, free: 1.701 GB / 2.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01833/28.57, allocations: 23.22 MB / 21.71 GB, free: 1.677 GB / 2.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/28.57, allocations: 0 / 21.71 GB, free: 1.677 GB / 2.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.36/35.93, allocations: 8.897 GB / 30.6 GB, free: 2.188 GB / 2.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01011/35.94, allocations: 4.936 MB / 30.61 GB, free: 2.184 GB / 2.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003476/35.95, allocations: 0.6484 MB / 30.61 GB, free: 2.184 GB / 2.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007359/35.95, allocations: 0.7197 MB / 30.61 GB, free: 2.183 GB / 2.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003132/35.96, allocations: 0.6595 MB / 30.61 GB, free: 2.182 GB / 2.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002216/35.96, allocations: 0.6484 MB / 30.61 GB, free: 2.182 GB / 2.698 GB Notification: Performance of sorting global known variables: time 0.002761/35.96, allocations: 1.841 MB / 30.61 GB, free: 2.18 GB / 2.698 GB Notification: Performance of sort global known variables: time 5.01e-07/35.96, allocations: 3.844 kB / 30.61 GB, free: 2.18 GB / 2.698 GB Notification: Performance of remove unused functions: time 0.04453/36.01, allocations: 9.959 MB / 30.62 GB, free: 2.17 GB / 2.698 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.004286/36.01, allocations: 1.033 MB / 30.62 GB, free: 2.169 GB / 2.698 GB Notification: Performance of simCode: created initialization part: time 0.1047/36.11, allocations: 84.19 MB / 30.71 GB, free: 2.087 GB / 2.698 GB Notification: Performance of simCode: created event and clocks part: time 1.592e-05/36.11, allocations: 3.234 kB / 30.71 GB, free: 2.087 GB / 2.698 GB Notification: Performance of simCode: created simulation system equations: time 18.93/55.05, allocations: 28.57 GB / 59.28 GB, free: 1.678 GB / 2.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01979/55.07, allocations: 2.076 MB / 59.28 GB, free: 1.676 GB / 2.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1195/55.18, allocations: 65.64 MB / 59.35 GB, free: 1.613 GB / 2.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01992/55.2, allocations: 9.915 MB / 59.36 GB, free: 1.603 GB / 2.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007981/55.21, allocations: 1.343 MB / 59.36 GB, free: 1.602 GB / 2.698 GB Notification: Performance of SimCode: time 3.426e-06/55.21, allocations: 0 / 59.36 GB, free: 1.602 GB / 2.698 GB Notification: Performance of Templates: time 3.136/58.35, allocations: 1.74 GB / 61.1 GB, free: 2.192 GB / 2.698 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/Rectifier12pulseFFT/Rectifier12pulseFFT.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches