Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Blocks.Examples.Rectifier12pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.0008196/0.0008196, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008367/0.0008368, allocations: 172.7 kB / 15.95 MB, free: 208 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.418/1.418, allocations: 205.4 MB / 222.1 MB, free: 5.5 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.0006192/0.0006192, allocations: 14.81 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2635, allocations: 47.59 MB / 326.5 MB, free: 1.637 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.01032/0.2739, allocations: 9.573 MB / 336 MB, free: 10.04 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008445/0.2824, allocations: 3.698 MB / 339.7 MB, free: 6.328 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002051/0.2844, allocations: 63.62 kB / 339.8 MB, free: 6.266 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.2863, allocations: 0.6096 MB / 340.4 MB, free: 5.652 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003458/0.2898, allocations: 1.612 MB / 342 MB, free: 4.035 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.001492/0.2913, allocations: 483.3 kB / 342.5 MB, free: 3.562 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006805/0.2981, allocations: 5.639 MB / 348.1 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003535/0.3016, allocations: 2.89 MB / 351 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004307/0.306, allocations: 2.193 MB / 353.2 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004329/0.3103, allocations: 2.847 MB / 356.1 MB, free: 5.902 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005823/0.3109, allocations: 284 kB / 356.3 MB, free: 5.625 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001867/0.3128, allocations: 0.5425 MB / 356.9 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003711/0.3165, allocations: 4.88 MB / 361.8 MB, free: 192 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002997/0.3195, allocations: 2.559 MB / 364.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.3317, allocations: 12.69 MB / 377 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3317, allocations: 0 / 377 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3318, allocations: 4 kB / 377 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000522/0.3323, allocations: 0 / 377 MB, free: 0.8828 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: 5853 * Number of variables: 5853 Notification: Performance of Generate backend data structure: time 0.02243/0.3547, allocations: 16.88 MB / 393.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.3548, allocations: 8.031 kB / 393.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00421/0.359, allocations: 1.727 MB / 395.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007487/0.3665, allocations: 3.931 MB / 399.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000202/0.3667, allocations: 295.9 kB / 399.9 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005257/0.3673, allocations: 395.9 kB / 400.2 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03551/0.4028, allocations: 29.55 MB / 429.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.321e-05/0.4029, allocations: 3.984 kB / 429.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00041/0.4033, allocations: 164 kB / 429.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002208/0.4035, allocations: 204 kB / 430.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02996/0.4335, allocations: 26.69 MB / 456.8 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3641/0.7977, allocations: 22.27 MB / 479.1 MB, free: 91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04227/0.84, allocations: 85.77 MB / 0.5516 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2629/1.103, allocations: 81.68 MB / 0.6314 GB, free: 144.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003275/1.103, allocations: 140.5 kB / 0.6315 GB, free: 144.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02175/1.125, allocations: 30.62 MB / 0.6614 GB, free: 131.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=5058): time 4.939e-06/1.125, allocations: 0 / 0.6614 GB, free: 131.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=5065): time 11.06/12.19, allocations: 2.901 GB / 3.563 GB, free: 1.628 GB / 1.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003352/12.19, allocations: 7.356 MB / 3.57 GB, free: 1.621 GB / 1.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003791/12.2, allocations: 2.636 MB / 3.573 GB, free: 1.618 GB / 1.92 GB Notification: Performance of collectPreVariables (initialization): time 0.004469/12.2, allocations: 3.952 MB / 3.577 GB, free: 1.614 GB / 1.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001706/12.2, allocations: 1.743 MB / 3.578 GB, free: 1.613 GB / 1.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0213/12.22, allocations: 21.64 MB / 3.599 GB, free: 1.592 GB / 1.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004605/12.23, allocations: 1.512 MB / 3.601 GB, free: 1.59 GB / 1.92 GB Notification: Performance of setup shared object (initialization): time 0.005261/12.23, allocations: 3.503 MB / 3.604 GB, free: 1.587 GB / 1.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04687/12.28, allocations: 26.85 MB / 3.63 GB, free: 1.56 GB / 1.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0671/12.35, allocations: 58.75 MB / 3.688 GB, free: 1.489 GB / 1.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05827/12.41, allocations: 38.48 MB / 3.725 GB, free: 1.451 GB / 1.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002238/12.41, allocations: 300 kB / 3.726 GB, free: 1.451 GB / 1.92 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1653/12.57, allocations: 87.7 MB / 3.811 GB, free: 1.365 GB / 1.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.00275/12.58, allocations: 485.7 kB / 3.812 GB, free: 1.364 GB / 1.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003778/12.58, allocations: 1.031 MB / 3.813 GB, free: 1.363 GB / 1.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008335/12.59, allocations: 3.267 MB / 3.816 GB, free: 1.36 GB / 1.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0377/12.63, allocations: 10.72 MB / 3.826 GB, free: 1.35 GB / 1.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02241/12.65, allocations: 25.58 MB / 3.851 GB, free: 1.323 GB / 1.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03221/12.68, allocations: 2.496 MB / 3.854 GB, free: 1.321 GB / 1.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009577/12.69, allocations: 3.594 MB / 3.857 GB, free: 1.318 GB / 1.92 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.03003/12.72, allocations: 15.08 MB / 3.872 GB, free: 1.303 GB / 1.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003947/12.73, allocations: 2.346 MB / 3.874 GB, free: 1.3 GB / 1.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.313/20.04, allocations: 8.843 GB / 12.72 GB, free: 348 MB / 1.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.369e-05/20.04, allocations: 24 kB / 12.72 GB, free: 347.9 MB / 1.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.466e-05/20.04, allocations: 8 kB / 12.72 GB, free: 347.9 MB / 1.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.745e-05/20.04, allocations: 11.95 kB / 12.72 GB, free: 347.9 MB / 1.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.196/28.23, allocations: 8.865 GB / 21.58 GB, free: 0.9141 GB / 1.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/28.23, allocations: 4 kB / 21.58 GB, free: 0.9141 GB / 1.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/28.24, allocations: 298.6 kB / 21.58 GB, free: 0.9139 GB / 1.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00446/28.24, allocations: 1.619 MB / 21.58 GB, free: 0.9123 GB / 1.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002571/28.24, allocations: 0.6484 MB / 21.59 GB, free: 0.9117 GB / 1.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01774/28.26, allocations: 23.22 MB / 21.61 GB, free: 0.8881 GB / 1.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/28.26, allocations: 7.984 kB / 21.61 GB, free: 0.888 GB / 1.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.325/36.59, allocations: 8.897 GB / 30.51 GB, free: 1.435 GB / 1.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009676/36.6, allocations: 5.084 MB / 30.51 GB, free: 1.431 GB / 1.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002534/36.6, allocations: 0.6501 MB / 30.51 GB, free: 1.43 GB / 1.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005605/36.6, allocations: 0.7215 MB / 30.51 GB, free: 1.43 GB / 1.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002927/36.61, allocations: 0.6574 MB / 30.51 GB, free: 1.429 GB / 1.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001177/36.61, allocations: 0.653 MB / 30.51 GB, free: 1.428 GB / 1.92 GB Notification: Performance of sorting global known variables: time 0.002469/36.61, allocations: 1.837 MB / 30.51 GB, free: 1.427 GB / 1.92 GB Notification: Performance of sort global known variables: time 1.273e-06/36.61, allocations: 0 / 30.51 GB, free: 1.427 GB / 1.92 GB Notification: Performance of remove unused functions: time 0.03844/36.65, allocations: 9.968 MB / 30.52 GB, free: 1.417 GB / 1.92 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.002607/36.65, allocations: 0.9843 MB / 30.53 GB, free: 1.416 GB / 1.92 GB Notification: Performance of simCode: created initialization part: time 0.09114/36.74, allocations: 84.21 MB / 30.61 GB, free: 1.334 GB / 1.92 GB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/36.74, allocations: 0 / 30.61 GB, free: 1.334 GB / 1.92 GB Notification: Performance of simCode: created simulation system equations: time 61.03/97.77, allocations: 28.59 GB / 59.2 GB, free: 0.7542 GB / 2.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01089/97.78, allocations: 2.102 MB / 59.2 GB, free: 0.7523 GB / 2.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08567/97.87, allocations: 65 MB / 59.26 GB, free: 0.6891 GB / 2.592 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0168/97.89, allocations: 9.984 MB / 59.27 GB, free: 0.6793 GB / 2.592 GB Notification: Performance of simCode: alias equations: time 0.01037/97.9, allocations: 4.363 MB / 59.28 GB, free: 0.675 GB / 2.592 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006488/97.9, allocations: 1.339 MB / 59.28 GB, free: 0.6737 GB / 2.592 GB Notification: Performance of SimCode: time 2.114e-06/97.9, allocations: 0 / 59.28 GB, free: 0.6737 GB / 2.592 GB Notification: Performance of Templates: time 0.383/98.29, allocations: 287.4 MB / 59.56 GB, free: 402.6 MB / 2.592 GB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.Rectifier12pulseFFT -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1)