Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002843/0.002849, allocations: 187.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.51/3.51, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001806/0.001806, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006133/0.0006133, allocations: 12 kB / 326.9 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.145, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.02232/0.1674, allocations: 8.774 MB / 383.3 MB, free: 6.629 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01519/0.1826, allocations: 3.805 MB / 387.1 MB, free: 2.816 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002776/0.1855, allocations: 67.62 kB / 387.2 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004524/0.1901, allocations: 0.6568 MB / 387.8 MB, free: 2.09 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007401/0.1975, allocations: 1.528 MB / 389.4 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00379/0.2014, allocations: 475.2 kB / 389.8 MB, free: 96 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.7613/0.9627, allocations: 3.51 MB / 393.3 MB, free: 9.223 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01118/0.974, allocations: 2.882 MB / 396.2 MB, free: 8.707 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008532/0.9826, allocations: 2.068 MB / 398.3 MB, free: 8.707 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01086/0.9935, allocations: 2.551 MB / 400.8 MB, free: 8.602 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 0.002852/0.9965, allocations: 286.1 kB / 401.1 MB, free: 8.598 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006724/1.003, allocations: 0.524 MB / 401.6 MB, free: 8.59 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 0.01077/1.014, allocations: 4.819 MB / 406.5 MB, free: 7.996 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 0.00917/1.023, allocations: 2.565 MB / 409 MB, free: 7.371 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.02741/1.051, allocations: 12.38 MB / 421.4 MB, free: 13.64 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/1.051, allocations: 2.406 kB / 421.4 MB, free: 13.64 MB / 298.8 MB Notification: Performance of FrontEnd: time 4.619e-06/1.051, allocations: 0 / 421.4 MB, free: 13.64 MB / 298.8 MB Notification: Performance of Transformations before backend: time 0.000776/1.052, allocations: 0 / 421.4 MB, free: 13.64 MB / 298.8 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.05128/1.103, allocations: 16.87 MB / 438.3 MB, free: 12.78 MB / 314.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.778e-05/1.103, allocations: 12.03 kB / 438.3 MB, free: 12.77 MB / 314.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008356/1.112, allocations: 1.723 MB / 440 MB, free: 11.02 MB / 314.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01768/1.129, allocations: 3.931 MB / 443.9 MB, free: 7.059 MB / 314.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000746/1.13, allocations: 294.5 kB / 444.2 MB, free: 6.773 MB / 314.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002387/1.133, allocations: 387.4 kB / 444.6 MB, free: 6.398 MB / 314.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08237/1.215, allocations: 29.52 MB / 474.1 MB, free: 8.816 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002327/1.215, allocations: 4 kB / 474.1 MB, free: 8.812 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001877/1.217, allocations: 160.7 kB / 474.3 MB, free: 8.656 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005693/1.218, allocations: 208 kB / 474.5 MB, free: 8.449 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07299/1.291, allocations: 26.69 MB / 0.4894 GB, free: 13.75 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08654/1.377, allocations: 22.27 MB / 0.5112 GB, free: 7.375 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5739/1.951, allocations: 85.76 MB / 0.5949 GB, free: 70.78 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008239/1.952, allocations: 147.8 kB / 0.5951 GB, free: 70.68 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.06468/2.017, allocations: 30.63 MB / 0.625 GB, free: 47.33 MB / 410.8 MB Notification: Performance of pre-optimization done (n=5058): time 1.334e-05/2.017, allocations: 0 / 0.625 GB, free: 47.33 MB / 410.8 MB Notification: Performance of matching and sorting (n=5065): time 33.71/35.72, allocations: 2.907 GB / 3.532 GB, free: 71.75 MB / 1.807 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009375/35.73, allocations: 7.361 MB / 3.539 GB, free: 64.62 MB / 1.807 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01003/35.74, allocations: 2.633 MB / 3.542 GB, free: 61.97 MB / 1.807 GB Notification: Performance of collectPreVariables (initialization): time 0.01532/35.76, allocations: 3.952 MB / 3.546 GB, free: 58 MB / 1.807 GB Notification: Performance of collectInitialEqns (initialization): time 0.003334/35.76, allocations: 1.612 MB / 3.547 GB, free: 56.38 MB / 1.807 GB Notification: Performance of collectInitialBindings (initialization): time 0.0403/35.8, allocations: 21.63 MB / 3.568 GB, free: 34.85 MB / 1.807 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009618/35.81, allocations: 1.516 MB / 3.57 GB, free: 33.33 MB / 1.807 GB Notification: Performance of setup shared object (initialization): time 0.008786/35.82, allocations: 3.506 MB / 3.573 GB, free: 29.81 MB / 1.807 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1084/35.93, allocations: 26.86 MB / 3.599 GB, free: 2.926 MB / 1.807 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1781/36.11, allocations: 58.47 MB / 3.657 GB, free: 9.695 MB / 1.886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1617/36.27, allocations: 38.5 MB / 3.694 GB, free: 3.141 MB / 1.917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00277/36.27, allocations: 304 kB / 3.694 GB, free: 2.844 MB / 1.917 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.4504/36.72, allocations: 87.55 MB / 3.78 GB, free: 11.18 MB / 2.011 GB Notification: Performance of prepare postOptimizeDAE: time 0.01564/36.74, allocations: 481.7 kB / 3.78 GB, free: 10.7 MB / 2.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005757/36.75, allocations: 1.035 MB / 3.781 GB, free: 9.664 MB / 2.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04434/36.79, allocations: 3.262 MB / 3.785 GB, free: 6.387 MB / 2.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1048/36.89, allocations: 10.73 MB / 3.795 GB, free: 11.63 MB / 2.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07434/36.97, allocations: 26.01 MB / 3.82 GB, free: 328 kB / 2.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.07795/37.05, allocations: 2.497 MB / 3.823 GB, free: 13.84 MB / 2.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.02187/37.07, allocations: 3.598 MB / 3.826 GB, free: 10.24 MB / 2.057 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.07403/37.14, allocations: 15.08 MB / 3.841 GB, free: 11.09 MB / 2.073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01044/37.15, allocations: 2.342 MB / 3.843 GB, free: 8.73 MB / 2.073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 23.39/60.55, allocations: 8.844 GB / 12.69 GB, free: 0.8209 GB / 2.62 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.13e-05/60.55, allocations: 31.67 kB / 12.69 GB, free: 0.8208 GB / 2.62 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-05/60.55, allocations: 8 kB / 12.69 GB, free: 0.8208 GB / 2.62 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.82e-05/60.55, allocations: 12.45 kB / 12.69 GB, free: 0.8208 GB / 2.62 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 23.93/84.48, allocations: 8.865 GB / 21.55 GB, free: 1.048 GB / 2.62 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.876e-05/84.48, allocations: 5.875 kB / 21.55 GB, free: 1.048 GB / 2.62 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003674/84.48, allocations: 294.7 kB / 21.55 GB, free: 1.048 GB / 2.62 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01397/84.5, allocations: 1.618 MB / 21.55 GB, free: 1.046 GB / 2.62 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00502/84.5, allocations: 0.6504 MB / 21.55 GB, free: 1.046 GB / 2.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05211/84.55, allocations: 23.64 MB / 21.58 GB, free: 1.022 GB / 2.62 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/84.55, allocations: 3.953 kB / 21.58 GB, free: 1.022 GB / 2.62 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 24.38/108.9, allocations: 8.898 GB / 30.48 GB, free: 1.223 GB / 2.62 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02583/109, allocations: 5.084 MB / 30.48 GB, free: 1.219 GB / 2.62 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006725/109, allocations: 0.6511 MB / 30.48 GB, free: 1.218 GB / 2.62 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01713/109, allocations: 0.7267 MB / 30.48 GB, free: 1.217 GB / 2.62 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007185/109, allocations: 0.6585 MB / 30.48 GB, free: 1.217 GB / 2.62 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00486/109, allocations: 0.6523 MB / 30.48 GB, free: 1.216 GB / 2.62 GB Notification: Performance of sorting global known variables: time 0.007252/109, allocations: 1.837 MB / 30.48 GB, free: 1.214 GB / 2.62 GB Notification: Performance of sort global known variables: time 1.363e-06/109, allocations: 0 / 30.48 GB, free: 1.214 GB / 2.62 GB Notification: Performance of remove unused functions: time 0.08864/109.1, allocations: 9.964 MB / 30.49 GB, free: 1.204 GB / 2.62 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.007897/109.1, allocations: 0.9938 MB / 30.5 GB, free: 1.204 GB / 2.62 GB Notification: Performance of simCode: created initialization part: time 0.249/109.3, allocations: 84.24 MB / 30.58 GB, free: 1.122 GB / 2.62 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-05/109.3, allocations: 6.031 kB / 30.58 GB, free: 1.122 GB / 2.62 GB Notification: Performance of simCode: created simulation system equations: time 99.36/208.7, allocations: 28.59 GB / 59.17 GB, free: 0.7433 GB / 3.292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02063/208.7, allocations: 1.476 MB / 59.17 GB, free: 0.742 GB / 3.292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2554/209, allocations: 65.05 MB / 59.23 GB, free: 0.6787 GB / 3.292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03126/209, allocations: 10.2 MB / 59.24 GB, free: 0.6687 GB / 3.292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01325/209, allocations: 1.343 MB / 59.25 GB, free: 0.6674 GB / 3.292 GB Notification: Performance of SimCode: time 1.593e-06/209, allocations: 6.438 kB / 59.25 GB, free: 0.6674 GB / 3.292 GB [CodegenCppCommonOld.tpl:1596:11-1596:11:writable] Error: Template error: ASUB_EASY_CASE 1:nfi.