Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.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 3.2.3+maint.om/package.mo", uses=false) 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 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.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_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_Modelica.Blocks.Examples.Rectifier12pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009577/0.0009577, allocations: 95.97 kB / 16.94 MB, free: 6.445 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.0008831/0.0008832, allocations: 183.9 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004543/0.0004543, allocations: 8.219 kB / 280.7 MB, free: 3.77 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1244, allocations: 47.59 MB / 328.3 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.009833/0.1343, allocations: 8.787 MB / 337.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009038/0.1434, allocations: 3.793 MB / 340.9 MB, free: 7.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002822/0.1462, allocations: 67.62 kB / 341 MB, free: 7.422 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002098/0.1484, allocations: 0.6529 MB / 341.6 MB, free: 6.766 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004158/0.1525, allocations: 1.54 MB / 343.2 MB, free: 5.223 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001813/0.1544, allocations: 475.1 kB / 343.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006373/0.1607, allocations: 3.506 MB / 347.1 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003807/0.1646, allocations: 2.882 MB / 350 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00411/0.1687, allocations: 2.076 MB / 352.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005052/0.1738, allocations: 2.551 MB / 354.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000943/0.1747, allocations: 280 kB / 354.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002585/0.1773, allocations: 0.5192 MB / 355.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004391/0.1817, allocations: 4.814 MB / 360.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004788/0.1866, allocations: 2.567 MB / 362.8 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01486/0.2014, allocations: 12.37 MB / 375.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2015, allocations: 0 / 375.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.2015, allocations: 0 / 375.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006518/0.2022, allocations: 4 kB / 375.2 MB, free: 5.059 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.408/0.6102, allocations: 16.87 MB / 392.1 MB, free: 37.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.6102, allocations: 8.062 kB / 392.1 MB, free: 37.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006654/0.6169, allocations: 1.73 MB / 393.8 MB, free: 36.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01024/0.6271, allocations: 3.921 MB / 397.7 MB, free: 33.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002532/0.6274, allocations: 297.2 kB / 398 MB, free: 33.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008753/0.6283, allocations: 403.2 kB / 398.4 MB, free: 33.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03582/0.6642, allocations: 29.5 MB / 427.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.148e-05/0.6643, allocations: 4 kB / 427.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003927/0.6647, allocations: 163.2 kB / 428.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001701/0.6649, allocations: 210.8 kB / 428.3 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03088/0.6958, allocations: 26.69 MB / 455 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04329/0.7391, allocations: 22.28 MB / 477.2 MB, free: 2.375 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3005/1.04, allocations: 85.79 MB / 0.5498 GB, free: 120.4 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003317/1.04, allocations: 139.1 kB / 0.55 GB, free: 120.3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02635/1.066, allocations: 30.64 MB / 0.5799 GB, free: 108.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=5058): time 7.434e-06/1.067, allocations: 0 / 0.5799 GB, free: 108.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=5065): time 12.91/13.98, allocations: 2.905 GB / 3.485 GB, free: 1.595 GB / 1.904 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003623/13.98, allocations: 7.363 MB / 3.492 GB, free: 1.588 GB / 1.904 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003868/13.99, allocations: 2.625 MB / 3.495 GB, free: 1.585 GB / 1.904 GB Notification: Performance of collectPreVariables (initialization): time 0.005588/13.99, allocations: 3.952 MB / 3.499 GB, free: 1.581 GB / 1.904 GB Notification: Performance of collectInitialEqns (initialization): time 0.002467/14, allocations: 1.744 MB / 3.501 GB, free: 1.58 GB / 1.904 GB Notification: Performance of collectInitialBindings (initialization): time 0.02639/14.02, allocations: 21.64 MB / 3.522 GB, free: 1.559 GB / 1.904 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006307/14.03, allocations: 1.516 MB / 3.523 GB, free: 1.557 GB / 1.904 GB Notification: Performance of setup shared object (initialization): time 0.00641/14.03, allocations: 3.501 MB / 3.527 GB, free: 1.554 GB / 1.904 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0465/14.08, allocations: 26.87 MB / 3.553 GB, free: 1.527 GB / 1.904 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06329/14.14, allocations: 58.47 MB / 3.61 GB, free: 1.456 GB / 1.904 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05417/14.2, allocations: 38.5 MB / 3.647 GB, free: 1.418 GB / 1.904 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001497/14.2, allocations: 300 kB / 3.648 GB, free: 1.418 GB / 1.904 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1542/14.35, allocations: 87.73 MB / 3.733 GB, free: 1.332 GB / 1.904 GB Notification: Performance of prepare postOptimizeDAE: time 0.00166/14.36, allocations: 496.5 kB / 3.734 GB, free: 1.332 GB / 1.904 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002188/14.36, allocations: 1.035 MB / 3.735 GB, free: 1.331 GB / 1.904 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008624/14.37, allocations: 3.261 MB / 3.738 GB, free: 1.328 GB / 1.904 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03708/14.4, allocations: 10.72 MB / 3.749 GB, free: 1.317 GB / 1.904 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02337/14.43, allocations: 26.01 MB / 3.774 GB, free: 1.29 GB / 1.904 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03584/14.46, allocations: 2.496 MB / 3.776 GB, free: 1.288 GB / 1.904 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.011/14.47, allocations: 3.602 MB / 3.78 GB, free: 1.284 GB / 1.904 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.03884/14.51, allocations: 15.08 MB / 3.795 GB, free: 1.27 GB / 1.904 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005827/14.52, allocations: 2.346 MB / 3.797 GB, free: 1.267 GB / 1.904 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.214/22.73, allocations: 8.844 GB / 12.64 GB, free: 233.3 MB / 1.904 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-05/22.73, allocations: 26.64 kB / 12.64 GB, free: 233.3 MB / 1.904 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.948e-05/22.73, allocations: 11.78 kB / 12.64 GB, free: 233.3 MB / 1.904 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.068e-05/22.73, allocations: 15.94 kB / 12.64 GB, free: 233.3 MB / 1.904 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.915/31.65, allocations: 8.865 GB / 21.51 GB, free: 0.7096 GB / 1.904 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.16e-05/31.65, allocations: 0.625 kB / 21.51 GB, free: 0.7096 GB / 1.904 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/31.65, allocations: 299.4 kB / 21.51 GB, free: 0.7093 GB / 1.904 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005427/31.66, allocations: 1.621 MB / 21.51 GB, free: 0.7078 GB / 1.904 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003041/31.66, allocations: 0.6523 MB / 21.51 GB, free: 0.7071 GB / 1.904 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02208/31.68, allocations: 23.64 MB / 21.53 GB, free: 0.6831 GB / 1.904 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/31.68, allocations: 3.984 kB / 21.53 GB, free: 0.6831 GB / 1.904 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.506/40.19, allocations: 8.898 GB / 30.43 GB, free: 1.132 GB / 1.904 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01385/40.2, allocations: 5.094 MB / 30.43 GB, free: 1.128 GB / 1.904 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004372/40.21, allocations: 0.6492 MB / 30.43 GB, free: 1.128 GB / 1.904 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01146/40.22, allocations: 0.7239 MB / 30.44 GB, free: 1.127 GB / 1.904 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006057/40.22, allocations: 0.6497 MB / 30.44 GB, free: 1.126 GB / 1.904 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002838/40.23, allocations: 0.6575 MB / 30.44 GB, free: 1.126 GB / 1.904 GB Notification: Performance of sorting global known variables: time 0.002754/40.23, allocations: 1.838 MB / 30.44 GB, free: 1.124 GB / 1.904 GB Notification: Performance of sort global known variables: time 3.81e-07/40.23, allocations: 0.625 kB / 30.44 GB, free: 1.124 GB / 1.904 GB Notification: Performance of remove unused functions: time 0.04189/40.27, allocations: 9.962 MB / 30.45 GB, free: 1.114 GB / 1.904 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.004133/40.27, allocations: 0.9822 MB / 30.45 GB, free: 1.113 GB / 1.904 GB Notification: Performance of simCode: created initialization part: time 0.1062/40.38, allocations: 84.24 MB / 30.53 GB, free: 1.031 GB / 1.904 GB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/40.38, allocations: 4 kB / 30.53 GB, free: 1.031 GB / 1.904 GB Notification: Performance of simCode: created simulation system equations: time 59.74/100.1, allocations: 28.59 GB / 59.12 GB, free: 1.992 GB / 2.811 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009744/100.1, allocations: 1.48 MB / 59.12 GB, free: 1.99 GB / 2.811 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09407/100.2, allocations: 64.41 MB / 59.19 GB, free: 1.928 GB / 2.811 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01282/100.2, allocations: 10.29 MB / 59.2 GB, free: 1.918 GB / 2.811 GB Notification: Performance of simCode: alias equations: time 0.009089/100.3, allocations: 4.371 MB / 59.2 GB, free: 1.913 GB / 2.811 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005736/100.3, allocations: 1.335 MB / 59.2 GB, free: 1.912 GB / 2.811 GB Notification: Performance of SimCode: time 8.81e-07/100.3, allocations: 0 / 59.2 GB, free: 1.912 GB / 2.811 GB Notification: Performance of Templates: time 0.5165/100.8, allocations: 287.5 MB / 59.48 GB, free: 1.632 GB / 2.811 GB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_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_Modelica.Blocks.Examples.Rectifier12pulseFFT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches