Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.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: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001529/0.001529, allocations: 188.3 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 2.093/2.093, 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.001119/0.001119, allocations: 106.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004085/0.0004085, allocations: 8 kB / 327 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1037, allocations: 47.6 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.009995/0.1138, allocations: 5.715 MB / 380.4 MB, free: 9.598 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00991/0.1237, allocations: 2.827 MB / 383.2 MB, free: 6.766 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001867/0.1257, allocations: 35.81 kB / 383.2 MB, free: 6.73 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002992/0.1287, allocations: 445.9 kB / 383.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004813/0.1336, allocations: 1.143 MB / 384.8 MB, free: 5.148 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002836/0.1365, allocations: 359.3 kB / 385.1 MB, free: 4.797 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007343/0.1439, allocations: 2.024 MB / 387.2 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00467/0.1486, allocations: 1.583 MB / 388.8 MB, free: 1.156 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4981/0.6468, allocations: 1.356 MB / 390.1 MB, free: 10.23 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004115/0.651, allocations: 1.692 MB / 391.8 MB, free: 10.23 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 0.001202/0.6522, allocations: 156.5 kB / 392 MB, free: 10.23 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003493/0.6558, allocations: 410.7 kB / 392.4 MB, free: 10.23 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 0.006657/0.6625, allocations: 4.302 MB / 396.7 MB, free: 10.07 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 0.005848/0.6684, allocations: 2.146 MB / 398.8 MB, free: 9.508 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01725/0.6857, allocations: 9.299 MB / 408.1 MB, free: 5.891 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.6857, allocations: 1.844 kB / 408.1 MB, free: 5.891 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.696e-06/0.6857, allocations: 1.156 kB / 408.1 MB, free: 5.891 MB / 282.8 MB Notification: Performance of Transformations before backend: time 0.0008347/0.6866, allocations: 0 / 408.1 MB, free: 5.891 MB / 282.8 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.02818/0.7148, allocations: 15.11 MB / 423.2 MB, free: 11.12 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.7149, allocations: 12.03 kB / 423.2 MB, free: 11.11 MB / 298.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005427/0.7203, allocations: 2.049 MB / 425.3 MB, free: 9.055 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005291/0.7256, allocations: 1.479 MB / 426.8 MB, free: 7.555 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008741/0.7344, allocations: 2.877 MB / 429.6 MB, free: 4.633 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002437/0.7347, allocations: 166.5 kB / 429.8 MB, free: 4.469 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009397/0.7357, allocations: 221.3 kB / 430 MB, free: 4.254 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06546/0.8012, allocations: 26.92 MB / 456.9 MB, free: 9.258 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001104/0.8013, allocations: 0 / 456.9 MB, free: 9.258 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009334/0.8023, allocations: 89.8 kB / 457 MB, free: 9.172 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000315/0.8026, allocations: 108.5 kB / 457.1 MB, free: 9.062 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06421/0.8669, allocations: 24.43 MB / 481.6 MB, free: 0.6836 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05799/0.9249, allocations: 14.71 MB / 496.3 MB, free: 1.922 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3999/1.325, allocations: 82.37 MB / 0.5651 GB, free: 107.8 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004265/1.325, allocations: 127.3 kB / 0.5652 GB, free: 107.7 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.04231/1.368, allocations: 29.82 MB / 0.5943 GB, free: 85.5 MB / 410.8 MB Notification: Performance of pre-optimization done (n=4937): time 5.461e-06/1.368, allocations: 1.219 kB / 0.5943 GB, free: 85.5 MB / 410.8 MB Notification: Performance of matching and sorting (n=4941): time 20.85/22.21, allocations: 2.9 GB / 3.495 GB, free: 108.1 MB / 1.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005315/22.22, allocations: 7.192 MB / 3.502 GB, free: 101.1 MB / 1.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003255/22.22, allocations: 1.499 MB / 3.503 GB, free: 99.59 MB / 1.823 GB Notification: Performance of collectPreVariables (initialization): time 0.007722/22.23, allocations: 3.928 MB / 3.507 GB, free: 95.65 MB / 1.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001334/22.23, allocations: 0.9976 MB / 3.508 GB, free: 94.64 MB / 1.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.02664/22.26, allocations: 21.22 MB / 3.529 GB, free: 73.14 MB / 1.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009052/22.27, allocations: 1.496 MB / 3.53 GB, free: 71.64 MB / 1.823 GB Notification: Performance of setup shared object (initialization): time 0.009082/22.28, allocations: 3.463 MB / 3.533 GB, free: 68.16 MB / 1.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.09822/22.38, allocations: 26.21 MB / 3.559 GB, free: 41.93 MB / 1.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1149/22.49, allocations: 57.62 MB / 3.615 GB, free: 1.586 MB / 1.854 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1005/22.59, allocations: 37.72 MB / 3.652 GB, free: 11.83 MB / 1.901 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001784/22.59, allocations: 308 kB / 3.652 GB, free: 11.53 MB / 1.901 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.2694/22.86, allocations: 85.48 MB / 3.736 GB, free: 5.988 MB / 1.979 GB Notification: Performance of prepare postOptimizeDAE: time 0.00268/22.86, allocations: 485.7 kB / 3.736 GB, free: 5.508 MB / 1.979 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005258/22.87, allocations: 1.031 MB / 3.737 GB, free: 4.477 MB / 1.979 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01487/22.89, allocations: 2.437 MB / 3.74 GB, free: 2.035 MB / 1.979 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06833/22.95, allocations: 10.54 MB / 3.75 GB, free: 7.469 MB / 1.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02619/22.98, allocations: 12.85 MB / 3.763 GB, free: 10.08 MB / 2.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04521/23.03, allocations: 2.43 MB / 3.765 GB, free: 7.652 MB / 2.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01215/23.04, allocations: 3.562 MB / 3.768 GB, free: 4.09 MB / 2.011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4822 * 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.04595/23.08, allocations: 14.49 MB / 3.783 GB, free: 5.535 MB / 2.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007447/23.09, allocations: 2.211 MB / 3.785 GB, free: 3.305 MB / 2.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 12.33/35.42, allocations: 8.841 GB / 12.63 GB, free: 0.9962 GB / 2.636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.296e-05/35.42, allocations: 16 kB / 12.63 GB, free: 0.9961 GB / 2.636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/35.42, allocations: 5.594 kB / 12.63 GB, free: 0.9961 GB / 2.636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.63e-05/35.42, allocations: 5.938 kB / 12.63 GB, free: 0.9961 GB / 2.636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 12.64/48.06, allocations: 8.861 GB / 21.49 GB, free: 1.349 GB / 2.636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/48.06, allocations: 0 / 21.49 GB, free: 1.349 GB / 2.636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/48.06, allocations: 164.9 kB / 21.49 GB, free: 1.349 GB / 2.636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004579/48.07, allocations: 0.8169 MB / 21.49 GB, free: 1.349 GB / 2.636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0034/48.07, allocations: 0.618 MB / 21.49 GB, free: 1.348 GB / 2.636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01593/48.09, allocations: 10.62 MB / 21.5 GB, free: 1.337 GB / 2.636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/48.09, allocations: 1.078 kB / 21.5 GB, free: 1.337 GB / 2.636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 12.33/60.42, allocations: 8.895 GB / 30.39 GB, free: 1.66 GB / 2.636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01589/60.43, allocations: 4.802 MB / 30.4 GB, free: 1.656 GB / 2.636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004679/60.44, allocations: 0.6226 MB / 30.4 GB, free: 1.655 GB / 2.636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01094/60.45, allocations: 0.6695 MB / 30.4 GB, free: 1.654 GB / 2.636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004848/60.46, allocations: 0.5548 MB / 30.4 GB, free: 1.654 GB / 2.636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003774/60.46, allocations: 0.6211 MB / 30.4 GB, free: 1.653 GB / 2.636 GB Notification: Performance of sorting global known variables: time 0.002366/60.46, allocations: 1.06 MB / 30.4 GB, free: 1.652 GB / 2.636 GB Notification: Performance of sort global known variables: time 4.7e-07/60.46, allocations: 0 / 30.4 GB, free: 1.652 GB / 2.636 GB Notification: Performance of remove unused functions: time 0.05745/60.52, allocations: 9.517 MB / 30.41 GB, free: 1.643 GB / 2.636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (82): * Single equations (assignments): 76 * 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 12.36/72.87, allocations: 8.896 GB / 39.31 GB, free: 1.959 GB / 2.636 GB Notification: Performance of simCode: created initialization part: time 0.1577/73.03, allocations: 81.77 MB / 39.39 GB, free: 1.88 GB / 2.636 GB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/73.03, allocations: 0 / 39.39 GB, free: 1.88 GB / 2.636 GB Notification: Performance of simCode: created simulation system equations: time 57.02/130.1, allocations: 28.59 GB / 67.98 GB, free: 1.805 GB / 2.933 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0134/130.1, allocations: 1.065 MB / 67.98 GB, free: 1.804 GB / 2.933 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6779/130.7, allocations: 1.103 GB / 69.08 GB, free: 0.672 GB / 2.933 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02051/130.8, allocations: 9.089 MB / 69.09 GB, free: 0.6631 GB / 2.933 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01824/130.8, allocations: 7.049 MB / 69.1 GB, free: 0.6562 GB / 2.933 GB Notification: Performance of SimCode: time 2.254e-06/130.8, allocations: 4 kB / 69.1 GB, free: 0.6562 GB / 2.933 GB [CodegenCppCommonOld.tpl:1596:11-1596:11:writable] Error: Template error: ASUB_EASY_CASE 1:nfi.