Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.Rectifier12pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0009594/0.0009594, allocations: 87.38 kB / 16.31 MB, free: 5.676 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.00108/0.00108, allocations: 182.2 kB / 17.21 MB, free: 5.598 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.659/1.659, allocations: 205.4 MB / 223.4 MB, free: 13.16 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.0004572/0.0004572, allocations: 12 kB / 280.1 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1139, allocations: 47.58 MB / 327.7 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.009933/0.1239, allocations: 9.579 MB / 337.3 MB, free: 10.47 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00774/0.1317, allocations: 3.691 MB / 341 MB, free: 6.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001862/0.1336, allocations: 67.56 kB / 341.1 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002361/0.136, allocations: 0.6135 MB / 341.7 MB, free: 6.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003702/0.1397, allocations: 1.608 MB / 343.3 MB, free: 4.473 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/FastFourierTransform.mo:536:3-627: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.001799/0.1415, allocations: 487.2 kB / 343.7 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007603/0.1491, allocations: 5.65 MB / 349.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00531/0.1545, allocations: 2.882 MB / 352.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004029/0.1585, allocations: 2.193 MB / 354.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005011/0.1636, allocations: 2.847 MB / 357.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001308/0.1649, allocations: 284 kB / 357.6 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00291/0.1678, allocations: 0.5464 MB / 358.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004645/0.1725, allocations: 4.876 MB / 363 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00359/0.1761, allocations: 2.559 MB / 365.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0149/0.191, allocations: 12.69 MB / 378.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1911, allocations: 0 / 378.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1911, allocations: 4 kB / 378.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006154/0.1917, allocations: 0 / 378.3 MB, free: 1.316 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.4261/0.6179, allocations: 16.89 MB / 395.2 MB, free: 38.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.6179, allocations: 7.875 kB / 395.2 MB, free: 38.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006155/0.6241, allocations: 1.722 MB / 396.9 MB, free: 37.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008865/0.633, allocations: 3.934 MB / 400.8 MB, free: 33.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002043/0.6332, allocations: 292 kB / 401.1 MB, free: 33.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006096/0.6338, allocations: 386.9 kB / 401.5 MB, free: 33.1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03373/0.6676, allocations: 29.54 MB / 431 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.259e-05/0.6677, allocations: 4 kB / 431 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004063/0.6681, allocations: 159.1 kB / 431.2 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001755/0.6683, allocations: 204 kB / 431.4 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03571/0.704, allocations: 26.7 MB / 458.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04737/0.7514, allocations: 22.27 MB / 480.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2954/1.047, allocations: 85.78 MB / 0.5529 GB, free: 121.1 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.04888/1.096, allocations: 81.67 MB / 0.6326 GB, free: 57.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003604/1.096, allocations: 140.4 kB / 0.6328 GB, free: 57.13 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02249/1.119, allocations: 30.63 MB / 0.6627 GB, free: 26.74 MB / 430.1 MB Notification: Performance of pre-optimization done (n=5058): time 5.53e-06/1.119, allocations: 0 / 0.6627 GB, free: 26.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=5065): time 12.62/13.73, allocations: 2.902 GB / 3.565 GB, free: 6.957 MB / 1.811 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005706/13.74, allocations: 7.359 MB / 3.572 GB, free: 15.47 MB / 1.826 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004453/13.75, allocations: 2.633 MB / 3.574 GB, free: 12.82 MB / 1.826 GB Notification: Performance of collectPreVariables (initialization): time 0.006694/13.75, allocations: 3.952 MB / 3.578 GB, free: 8.848 MB / 1.826 GB Notification: Performance of collectInitialEqns (initialization): time 0.002558/13.75, allocations: 1.733 MB / 3.58 GB, free: 7.094 MB / 1.826 GB Notification: Performance of collectInitialBindings (initialization): time 0.02924/13.78, allocations: 21.64 MB / 3.601 GB, free: 1.164 MB / 1.842 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005849/13.79, allocations: 1.516 MB / 3.603 GB, free: 15.64 MB / 1.858 GB Notification: Performance of setup shared object (initialization): time 0.006382/13.8, allocations: 3.504 MB / 3.606 GB, free: 12.13 MB / 1.858 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05691/13.85, allocations: 26.84 MB / 3.632 GB, free: 1.266 MB / 1.873 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08872/13.94, allocations: 58.75 MB / 3.69 GB, free: 7.754 MB / 1.951 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06594/14.01, allocations: 38.48 MB / 3.727 GB, free: 1.215 MB / 1.983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001567/14.01, allocations: 307.8 kB / 3.727 GB, free: 0.918 MB / 1.983 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.2055/14.21, allocations: 87.69 MB / 3.813 GB, free: 9.109 MB / 2.076 GB Notification: Performance of prepare postOptimizeDAE: time 0.001762/14.22, allocations: 489.8 kB / 3.814 GB, free: 8.625 MB / 2.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002454/14.22, allocations: 1.035 MB / 3.815 GB, free: 7.59 MB / 2.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009572/14.23, allocations: 3.258 MB / 3.818 GB, free: 4.309 MB / 2.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04259/14.27, allocations: 10.72 MB / 3.828 GB, free: 9.562 MB / 2.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02958/14.3, allocations: 25.6 MB / 3.853 GB, free: 14.64 MB / 2.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0357/14.34, allocations: 2.488 MB / 3.856 GB, free: 12.15 MB / 2.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0119/14.35, allocations: 3.598 MB / 3.859 GB, free: 8.551 MB / 2.123 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.0378/14.39, allocations: 15.08 MB / 3.874 GB, free: 9.398 MB / 2.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006667/14.39, allocations: 2.354 MB / 3.876 GB, free: 7.023 MB / 2.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.966/22.36, allocations: 8.843 GB / 12.72 GB, free: 1.637 GB / 2.389 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.273e-05/22.36, allocations: 26.62 kB / 12.72 GB, free: 1.637 GB / 2.389 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.717e-05/22.36, allocations: 8 kB / 12.72 GB, free: 1.637 GB / 2.389 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-05/22.36, allocations: 15.73 kB / 12.72 GB, free: 1.637 GB / 2.389 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.834/30.19, allocations: 8.865 GB / 21.58 GB, free: 0.9363 GB / 2.389 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.878e-05/30.19, allocations: 4.5 kB / 21.58 GB, free: 0.9363 GB / 2.389 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001382/30.19, allocations: 293.2 kB / 21.58 GB, free: 0.936 GB / 2.389 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004742/30.2, allocations: 1.625 MB / 21.59 GB, free: 0.9345 GB / 2.389 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003136/30.2, allocations: 0.6523 MB / 21.59 GB, free: 0.9338 GB / 2.389 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01816/30.22, allocations: 23.21 MB / 21.61 GB, free: 0.9102 GB / 2.389 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/30.22, allocations: 2.375 kB / 21.61 GB, free: 0.9102 GB / 2.389 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.814/38.04, allocations: 8.897 GB / 30.51 GB, free: 187.1 MB / 2.389 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01134/38.05, allocations: 5.082 MB / 30.51 GB, free: 182.9 MB / 2.389 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003969/38.05, allocations: 0.6496 MB / 30.51 GB, free: 182.2 MB / 2.389 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008364/38.06, allocations: 0.7216 MB / 30.51 GB, free: 181.5 MB / 2.389 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003673/38.06, allocations: 0.6553 MB / 30.51 GB, free: 180.9 MB / 2.389 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001854/38.06, allocations: 0.6523 MB / 30.51 GB, free: 180.2 MB / 2.389 GB Notification: Performance of sorting global known variables: time 0.002498/38.07, allocations: 1.847 MB / 30.52 GB, free: 178.4 MB / 2.389 GB Notification: Performance of sort global known variables: time 1.7e-07/38.07, allocations: 0 / 30.52 GB, free: 178.4 MB / 2.389 GB Notification: Performance of remove unused functions: time 0.04757/38.11, allocations: 9.956 MB / 30.53 GB, free: 168.4 MB / 2.389 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.005/38.12, allocations: 0.985 MB / 30.53 GB, free: 167.5 MB / 2.389 GB Notification: Performance of simCode: created initialization part: time 0.1131/38.23, allocations: 84.2 MB / 30.61 GB, free: 83.63 MB / 2.389 GB Notification: Performance of simCode: created event and clocks part: time 1.334e-05/38.23, allocations: 0 / 30.61 GB, free: 83.63 MB / 2.389 GB Notification: Performance of simCode: created simulation system equations: time 56.72/94.96, allocations: 28.59 GB / 59.2 GB, free: 373.9 MB / 2.623 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0191/94.98, allocations: 2.102 MB / 59.2 GB, free: 371.9 MB / 2.623 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09565/95.07, allocations: 65 MB / 59.27 GB, free: 307.2 MB / 2.623 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01525/95.09, allocations: 9.989 MB / 59.28 GB, free: 297.1 MB / 2.623 GB Notification: Performance of simCode: alias equations: time 0.01051/95.1, allocations: 4.359 MB / 59.28 GB, free: 292.8 MB / 2.623 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006547/95.11, allocations: 1.335 MB / 59.28 GB, free: 291.4 MB / 2.623 GB Notification: Performance of SimCode: time 1.352e-06/95.11, allocations: 0 / 59.28 GB, free: 291.4 MB / 2.623 GB Notification: Performance of Templates: time 0.8033/95.91, allocations: 287.5 MB / 59.56 GB, free: 2.214 GB / 2.623 GB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.Rectifier12pulseFFT -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1)