Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Blocks.Examples.Rectifier12pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.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.0008878/0.0008878, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.0009864/0.0009864, allocations: 172.7 kB / 15.95 MB, free: 192 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.727/1.727, allocations: 205.4 MB / 222.1 MB, free: 5.508 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.0004768/0.0004771, allocations: 8 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3233, allocations: 47.59 MB / 326.5 MB, free: 1.453 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.01175/0.3351, allocations: 9.579 MB / 336 MB, free: 9.883 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01189/0.3471, allocations: 3.694 MB / 339.7 MB, free: 6.18 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004418/0.3516, allocations: 63.62 kB / 339.8 MB, free: 6.117 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003178/0.3548, allocations: 0.6135 MB / 340.4 MB, free: 5.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005625/0.3604, allocations: 1.608 MB / 342 MB, free: 3.887 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.002961/0.3634, allocations: 483.3 kB / 342.5 MB, free: 3.414 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.01035/0.3738, allocations: 5.647 MB / 348.1 MB, free: 13.74 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007019/0.3808, allocations: 2.886 MB / 351 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005444/0.3863, allocations: 2.197 MB / 353.2 MB, free: 8.602 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005926/0.3923, allocations: 2.843 MB / 356.1 MB, free: 5.75 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001142/0.3934, allocations: 288 kB / 356.3 MB, free: 5.469 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002938/0.3964, allocations: 0.5386 MB / 356.9 MB, free: 4.93 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004335/0.4007, allocations: 4.88 MB / 361.8 MB, free: 36 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003965/0.4047, allocations: 2.559 MB / 364.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01726/0.422, allocations: 12.69 MB / 377 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.433e-06/0.4221, allocations: 0 / 377 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.4221, allocations: 4 kB / 377 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00117/0.4233, allocations: 0 / 377 MB, free: 0.7266 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.03279/0.4561, allocations: 16.88 MB / 393.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.166e-05/0.4562, allocations: 8.031 kB / 393.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006063/0.4622, allocations: 1.73 MB / 395.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01096/0.4732, allocations: 3.931 MB / 399.6 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004511/0.4737, allocations: 291.9 kB / 399.9 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001817/0.4755, allocations: 392 kB / 400.2 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05631/0.5319, allocations: 29.54 MB / 429.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002091/0.5321, allocations: 0 / 429.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001717/0.5339, allocations: 167.9 kB / 429.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003003/0.5342, allocations: 208 kB / 430.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04301/0.5772, allocations: 26.69 MB / 456.8 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5152/1.093, allocations: 22.27 MB / 479.1 MB, free: 90.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05987/1.152, allocations: 85.76 MB / 0.5516 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3802/1.533, allocations: 81.68 MB / 0.6314 GB, free: 145.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005033/1.533, allocations: 134.7 kB / 0.6315 GB, free: 145.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03342/1.567, allocations: 30.63 MB / 0.6614 GB, free: 131.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=5058): time 1.068e-05/1.567, allocations: 0 / 0.6614 GB, free: 131.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=5065): time 13.27/14.83, allocations: 2.901 GB / 3.563 GB, free: 1.627 GB / 1.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005091/14.84, allocations: 7.356 MB / 3.57 GB, free: 1.621 GB / 1.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003992/14.84, allocations: 2.633 MB / 3.573 GB, free: 1.618 GB / 1.92 GB Notification: Performance of collectPreVariables (initialization): time 0.005175/14.85, allocations: 3.955 MB / 3.576 GB, free: 1.614 GB / 1.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.002067/14.85, allocations: 1.745 MB / 3.578 GB, free: 1.613 GB / 1.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.02545/14.87, allocations: 21.63 MB / 3.599 GB, free: 1.592 GB / 1.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006019/14.88, allocations: 1.512 MB / 3.601 GB, free: 1.59 GB / 1.92 GB Notification: Performance of setup shared object (initialization): time 0.006963/14.89, allocations: 3.499 MB / 3.604 GB, free: 1.587 GB / 1.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05278/14.94, allocations: 26.85 MB / 3.63 GB, free: 1.56 GB / 1.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06861/15.01, allocations: 58.75 MB / 3.688 GB, free: 1.489 GB / 1.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05777/15.07, allocations: 38.48 MB / 3.725 GB, free: 1.451 GB / 1.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00209/15.07, allocations: 300 kB / 3.726 GB, free: 1.451 GB / 1.92 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.1659/15.23, allocations: 87.7 MB / 3.811 GB, free: 1.365 GB / 1.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.002731/15.24, allocations: 485.7 kB / 3.812 GB, free: 1.365 GB / 1.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002994/15.24, allocations: 1.032 MB / 3.813 GB, free: 1.364 GB / 1.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01034/15.25, allocations: 3.271 MB / 3.816 GB, free: 1.36 GB / 1.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04122/15.29, allocations: 10.72 MB / 3.826 GB, free: 1.35 GB / 1.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02412/15.32, allocations: 25.59 MB / 3.851 GB, free: 1.324 GB / 1.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03973/15.36, allocations: 2.496 MB / 3.854 GB, free: 1.321 GB / 1.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01064/15.37, 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.05949/15.43, allocations: 15.09 MB / 3.872 GB, free: 1.303 GB / 1.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007699/15.43, allocations: 2.343 MB / 3.874 GB, free: 1.3 GB / 1.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.609/24.04, allocations: 8.843 GB / 12.72 GB, free: 347.2 MB / 1.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.225e-05/24.04, allocations: 24 kB / 12.72 GB, free: 347.2 MB / 1.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-05/24.04, allocations: 8 kB / 12.72 GB, free: 347.2 MB / 1.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.86e-05/24.04, allocations: 13.64 kB / 12.72 GB, free: 347.2 MB / 1.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.225/33.27, allocations: 8.865 GB / 21.58 GB, free: 0.914 GB / 1.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-05/33.27, allocations: 0 / 21.58 GB, free: 0.914 GB / 1.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001449/33.27, allocations: 298.1 kB / 21.58 GB, free: 0.9137 GB / 1.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005188/33.27, allocations: 1.621 MB / 21.58 GB, free: 0.9121 GB / 1.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003303/33.28, allocations: 0.6484 MB / 21.59 GB, free: 0.9115 GB / 1.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0213/33.3, allocations: 23.22 MB / 21.61 GB, free: 0.8879 GB / 1.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/33.3, allocations: 3.953 kB / 21.61 GB, free: 0.8878 GB / 1.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.957/42.26, allocations: 8.897 GB / 30.51 GB, free: 1.433 GB / 1.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02131/42.28, allocations: 5.09 MB / 30.51 GB, free: 1.429 GB / 1.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007483/42.29, allocations: 0.6445 MB / 30.51 GB, free: 1.428 GB / 1.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01438/42.3, allocations: 0.7236 MB / 30.51 GB, free: 1.428 GB / 1.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006182/42.31, allocations: 0.6529 MB / 30.51 GB, free: 1.427 GB / 1.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004248/42.31, allocations: 0.6531 MB / 30.51 GB, free: 1.426 GB / 1.92 GB Notification: Performance of sorting global known variables: time 0.004801/42.32, allocations: 1.841 MB / 30.51 GB, free: 1.425 GB / 1.92 GB Notification: Performance of sort global known variables: time 1.4e-07/42.32, allocations: 5.531 kB / 30.51 GB, free: 1.425 GB / 1.92 GB Notification: Performance of remove unused functions: time 0.05307/42.37, allocations: 9.959 MB / 30.52 GB, free: 1.415 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.005186/42.37, allocations: 0.988 MB / 30.53 GB, free: 1.414 GB / 1.92 GB Notification: Performance of simCode: created initialization part: time 0.1285/42.5, allocations: 84.2 MB / 30.61 GB, free: 1.332 GB / 1.92 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-05/42.5, allocations: 4 kB / 30.61 GB, free: 1.332 GB / 1.92 GB Notification: Performance of simCode: created simulation system equations: time 65.26/107.8, allocations: 28.59 GB / 59.2 GB, free: 0.8335 GB / 2.608 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01661/107.8, allocations: 2.101 MB / 59.2 GB, free: 0.8316 GB / 2.608 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1043/107.9, allocations: 65.01 MB / 59.26 GB, free: 0.7683 GB / 2.608 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01564/107.9, allocations: 9.985 MB / 59.27 GB, free: 0.7585 GB / 2.608 GB Notification: Performance of simCode: alias equations: time 0.0115/107.9, allocations: 4.359 MB / 59.28 GB, free: 0.7543 GB / 2.608 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007768/107.9, allocations: 1.339 MB / 59.28 GB, free: 0.753 GB / 2.608 GB Notification: Performance of SimCode: time 1.694e-06/107.9, allocations: 0 / 59.28 GB, free: 0.753 GB / 2.608 GB Notification: Performance of Templates: time 0.422/108.3, allocations: 287.4 MB / 59.56 GB, free: 483.8 MB / 2.608 GB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.sim & ./Modelica_3.1_Modelica.Blocks.Examples.Rectifier12pulseFFT -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.Rectifier12pulseFFT.pipe 2>&1)