Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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 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.Rectifier6pulseFFT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.Rectifier6pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier6pulseFFT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_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.0008062/0.0008063, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008202/0.0008203, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.696/1.696, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.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.0004365/0.0004365, allocations: 18.66 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3239, allocations: 47.6 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.007595/0.3316, allocations: 6.158 MB / 332.6 MB, free: 12.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007472/0.3391, allocations: 2.768 MB / 335.4 MB, free: 10.34 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00163/0.3408, allocations: 35.94 kB / 335.4 MB, free: 10.33 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.3425, allocations: 428.4 kB / 335.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002771/0.3453, allocations: 1.176 MB / 337 MB, free: 8.926 MB / 270.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.001587/0.3469, allocations: 371.4 kB / 337.4 MB, free: 8.562 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005003/0.3519, allocations: 3.203 MB / 340.6 MB, free: 5.344 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002343/0.3543, allocations: 1.587 MB / 342.2 MB, free: 3.727 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003014/0.3573, allocations: 1.426 MB / 343.6 MB, free: 2.297 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003199/0.3605, allocations: 1.85 MB / 345.5 MB, free: 452 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004423/0.361, allocations: 160 kB / 345.6 MB, free: 292 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001865/0.3628, allocations: 431.5 kB / 346 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003815/0.3667, allocations: 4.327 MB / 350.4 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003546/0.3702, allocations: 2.154 MB / 352.5 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01391/0.3842, allocations: 9.605 MB / 362.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.979e-06/0.3842, allocations: 4 kB / 362.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3842, allocations: 0 / 362.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0006211/0.3849, allocations: 0 / 362.1 MB, free: 15.71 MB / 302.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.02685/0.4117, allocations: 15.1 MB / 377.2 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.4118, allocations: 12.02 kB / 377.2 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00389/0.4157, allocations: 1.479 MB / 378.7 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007404/0.4231, allocations: 2.861 MB / 381.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.4233, allocations: 176.3 kB / 381.8 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004995/0.4238, allocations: 223.8 kB / 382 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03889/0.4627, allocations: 26.93 MB / 408.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.247e-05/0.4628, allocations: 7.719 kB / 408.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000254/0.4631, allocations: 95.98 kB / 409 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001657/0.4633, allocations: 116.5 kB / 409.1 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03557/0.4989, allocations: 24.41 MB / 433.5 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02736/0.5263, allocations: 14.69 MB / 448.2 MB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5123/1.039, allocations: 82.34 MB / 0.5181 GB, free: 42.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.05744/1.096, allocations: 80.35 MB / 0.5966 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003902/1.097, allocations: 127.4 kB / 0.5967 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3304/1.427, allocations: 29.81 MB / 0.6258 GB, free: 143.2 MB / 430.1 MB Notification: Performance of pre-optimization done (n=4937): time 6.793e-06/1.427, allocations: 0 / 0.6258 GB, free: 143.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=4941): time 13.22/14.64, allocations: 2.896 GB / 3.522 GB, free: 11.98 MB / 1.936 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005317/14.65, allocations: 7.23 MB / 3.529 GB, free: 4.66 MB / 1.936 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002701/14.65, allocations: 1.495 MB / 3.53 GB, free: 3.148 MB / 1.936 GB Notification: Performance of collectPreVariables (initialization): time 0.005892/14.66, allocations: 3.929 MB / 3.534 GB, free: 15.2 MB / 1.951 GB Notification: Performance of collectInitialEqns (initialization): time 0.001273/14.66, allocations: 1.034 MB / 3.535 GB, free: 14.16 MB / 1.951 GB Notification: Performance of collectInitialBindings (initialization): time 0.3852/15.04, allocations: 21.22 MB / 3.556 GB, free: 1.662 GB / 1.951 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008751/15.05, allocations: 1.491 MB / 3.557 GB, free: 1.661 GB / 1.951 GB Notification: Performance of setup shared object (initialization): time 0.007441/15.06, allocations: 3.46 MB / 3.561 GB, free: 1.659 GB / 1.951 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0511/15.11, allocations: 26.2 MB / 3.586 GB, free: 1.641 GB / 1.951 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.07032/15.18, allocations: 57.91 MB / 3.643 GB, free: 1.57 GB / 1.951 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05662/15.24, allocations: 37.72 MB / 3.68 GB, free: 1.533 GB / 1.951 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002279/15.24, allocations: 304 kB / 3.68 GB, free: 1.533 GB / 1.951 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.1619/15.4, allocations: 85.56 MB / 3.764 GB, free: 1.45 GB / 1.951 GB Notification: Performance of prepare postOptimizeDAE: time 0.002454/15.4, allocations: 495.1 kB / 3.764 GB, free: 1.45 GB / 1.951 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002735/15.41, allocations: 1.027 MB / 3.765 GB, free: 1.449 GB / 1.951 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005392/15.41, allocations: 2.446 MB / 3.767 GB, free: 1.447 GB / 1.951 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04209/15.45, allocations: 10.54 MB / 3.778 GB, free: 1.436 GB / 1.951 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01362/15.47, allocations: 12.64 MB / 3.79 GB, free: 1.424 GB / 1.951 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03684/15.51, allocations: 2.426 MB / 3.792 GB, free: 1.421 GB / 1.951 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01107/15.52, allocations: 3.566 MB / 3.796 GB, free: 1.418 GB / 1.951 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4823 * 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.03409/15.55, allocations: 14.49 MB / 3.81 GB, free: 1.404 GB / 1.951 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00392/15.55, allocations: 2.217 MB / 3.812 GB, free: 1.403 GB / 1.951 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.47/24.02, allocations: 8.841 GB / 12.65 GB, free: 0.6755 GB / 1.951 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.681e-05/24.02, allocations: 12 kB / 12.65 GB, free: 0.6755 GB / 1.951 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/24.02, allocations: 8 kB / 12.65 GB, free: 0.6755 GB / 1.951 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-05/24.03, allocations: 3.984 kB / 12.65 GB, free: 0.6755 GB / 1.951 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.173/33.2, allocations: 8.861 GB / 21.51 GB, free: 1.539 GB / 1.951 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/33.2, allocations: 5.281 kB / 21.51 GB, free: 1.539 GB / 1.951 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007466/33.2, allocations: 164.2 kB / 21.51 GB, free: 1.539 GB / 1.951 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002346/33.2, allocations: 0.8079 MB / 21.52 GB, free: 1.538 GB / 1.951 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002969/33.2, allocations: 0.6267 MB / 21.52 GB, free: 1.537 GB / 1.951 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009708/33.21, allocations: 10.39 MB / 21.53 GB, free: 1.527 GB / 1.951 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/33.21, allocations: 7.984 kB / 21.53 GB, free: 1.527 GB / 1.951 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.522/41.74, allocations: 8.895 GB / 30.42 GB, free: 0.7361 GB / 1.951 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01102/41.75, allocations: 4.806 MB / 30.43 GB, free: 0.7322 GB / 1.951 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003374/41.75, allocations: 0.623 MB / 30.43 GB, free: 0.7316 GB / 1.951 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007293/41.76, allocations: 0.666 MB / 30.43 GB, free: 0.7309 GB / 1.951 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00583/41.76, allocations: 0.5547 MB / 30.43 GB, free: 0.7304 GB / 1.951 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002516/41.77, allocations: 0.625 MB / 30.43 GB, free: 0.7298 GB / 1.951 GB Notification: Performance of sorting global known variables: time 0.001822/41.77, allocations: 1.057 MB / 30.43 GB, free: 0.7287 GB / 1.951 GB Notification: Performance of sort global known variables: time 1.1e-07/41.77, allocations: 0 / 30.43 GB, free: 0.7287 GB / 1.951 GB Notification: Performance of remove unused functions: time 0.05541/41.82, allocations: 9.522 MB / 30.44 GB, free: 0.7195 GB / 1.951 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.004653/41.83, allocations: 0.9548 MB / 30.44 GB, free: 0.7186 GB / 1.951 GB Notification: Performance of simCode: created initialization part: time 0.1139/41.94, allocations: 81.74 MB / 30.52 GB, free: 0.6391 GB / 1.951 GB Notification: Performance of simCode: created event and clocks part: time 1.546e-05/41.94, allocations: 4.188 kB / 30.52 GB, free: 0.6391 GB / 1.951 GB Notification: Performance of simCode: created simulation system equations: time 60.37/102.3, allocations: 28.59 GB / 59.11 GB, free: 51.05 MB / 2.451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02138/102.3, allocations: 1.663 MB / 59.11 GB, free: 49.43 MB / 2.451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5594/102.9, allocations: 66.2 MB / 59.17 GB, free: 2.063 GB / 2.451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01421/102.9, allocations: 8.866 MB / 59.18 GB, free: 2.062 GB / 2.451 GB Notification: Performance of simCode: alias equations: time 0.01049/102.9, allocations: 4.09 MB / 59.18 GB, free: 2.062 GB / 2.451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007427/102.9, allocations: 1.263 MB / 59.19 GB, free: 2.062 GB / 2.451 GB Notification: Performance of SimCode: time 2.344e-06/102.9, allocations: 0 / 59.19 GB, free: 2.062 GB / 2.451 GB Notification: Performance of Templates: time 0.3803/103.3, allocations: 260.4 MB / 59.44 GB, free: 1.828 GB / 2.451 GB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.Rectifier6pulseFFT.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.Rectifier6pulseFFT.sim & ./Modelica_3.1_Modelica.Blocks.Examples.Rectifier6pulseFFT -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.Rectifier6pulseFFT.pipe 2>&1)