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: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFT",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.001575/0.001575, allocations: 186.9 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.172/2.172, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001158/0.001158, allocations: 94.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003855, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.09917, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier12pulseFFT): time 0.01508/0.1143, allocations: 8.79 MB / 383.4 MB, free: 6.523 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.1248, allocations: 3.793 MB / 387.2 MB, free: 2.723 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002238/0.1271, allocations: 63.62 kB / 387.3 MB, free: 2.66 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00299/0.1301, allocations: 0.6568 MB / 387.9 MB, free: 1.996 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005306/0.1355, allocations: 1.536 MB / 389.5 MB, free: 468 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.5204/0.6559, allocations: 468.7 kB / 389.9 MB, free: 9.27 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.01039/0.6664, allocations: 3.506 MB / 393.4 MB, free: 9.258 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01024/0.6767, allocations: 2.884 MB / 396.3 MB, free: 8.738 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007261/0.684, allocations: 2.073 MB / 398.4 MB, free: 8.738 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009452/0.6936, allocations: 2.555 MB / 400.9 MB, free: 8.617 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 0.002525/0.6961, allocations: 281.7 kB / 401.2 MB, free: 8.617 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005441/0.7017, allocations: 0.5196 MB / 401.7 MB, free: 8.609 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 0.006633/0.7083, allocations: 4.816 MB / 406.6 MB, free: 8.016 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 0.006022/0.7144, allocations: 2.564 MB / 409.1 MB, free: 7.391 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0197/0.7342, allocations: 12.38 MB / 421.5 MB, free: 13.62 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.7342, allocations: 0 / 421.5 MB, free: 13.62 MB / 298.8 MB Notification: Performance of FrontEnd: time 3.677e-06/0.7343, allocations: 0 / 421.5 MB, free: 13.62 MB / 298.8 MB Notification: Performance of Transformations before backend: time 0.000744/0.735, allocations: 4 kB / 421.5 MB, free: 13.62 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.03765/0.7727, allocations: 16.87 MB / 438.4 MB, free: 12.77 MB / 314.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.7728, allocations: 10.44 kB / 438.4 MB, free: 12.76 MB / 314.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005381/0.7782, allocations: 2.297 MB / 440.7 MB, free: 10.45 MB / 314.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006037/0.7843, allocations: 1.723 MB / 442.4 MB, free: 8.707 MB / 314.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01106/0.7954, allocations: 3.932 MB / 446.3 MB, free: 4.742 MB / 314.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004746/0.7959, allocations: 298.9 kB / 446.6 MB, free: 4.453 MB / 314.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001664/0.7976, allocations: 387.2 kB / 447 MB, free: 4.078 MB / 314.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05352/0.8512, allocations: 29.52 MB / 476.5 MB, free: 6.504 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001295/0.8514, allocations: 0 / 476.5 MB, free: 6.504 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001166/0.8526, allocations: 167.5 kB / 476.7 MB, free: 6.344 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003525/0.8529, allocations: 204 kB / 476.9 MB, free: 6.141 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04891/0.9019, allocations: 26.69 MB / 0.4918 GB, free: 11.43 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0597/0.9616, allocations: 22.27 MB / 0.5135 GB, free: 5.055 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3864/1.348, allocations: 85.77 MB / 0.5973 GB, free: 70.84 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006764/1.349, allocations: 140.1 kB / 0.5974 GB, free: 70.74 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.05196/1.401, allocations: 30.64 MB / 0.6273 GB, free: 45.09 MB / 410.8 MB Notification: Performance of pre-optimization done (n=5058): time 1.248e-05/1.401, allocations: 0 / 0.6273 GB, free: 45.09 MB / 410.8 MB Notification: Performance of matching and sorting (n=5065): time 20.44/21.84, allocations: 2.907 GB / 3.534 GB, free: 3.289 MB / 1.761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008756/21.85, allocations: 7.357 MB / 3.541 GB, free: 12.17 MB / 1.776 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007363/21.86, allocations: 2.629 MB / 3.544 GB, free: 9.52 MB / 1.776 GB Notification: Performance of collectPreVariables (initialization): time 0.01024/21.87, allocations: 3.957 MB / 3.548 GB, free: 5.547 MB / 1.776 GB Notification: Performance of collectInitialEqns (initialization): time 0.002653/21.87, allocations: 1.607 MB / 3.549 GB, free: 3.926 MB / 1.776 GB Notification: Performance of collectInitialBindings (initialization): time 0.03354/21.91, allocations: 21.64 MB / 3.57 GB, free: 14.39 MB / 1.807 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006493/21.91, allocations: 1.516 MB / 3.572 GB, free: 12.87 MB / 1.807 GB Notification: Performance of setup shared object (initialization): time 0.00708/21.92, allocations: 3.51 MB / 3.575 GB, free: 9.348 MB / 1.807 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.07965/22, allocations: 26.86 MB / 3.602 GB, free: 14.46 MB / 1.839 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1147/22.11, allocations: 58.47 MB / 3.659 GB, free: 5.238 MB / 1.901 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1126/22.23, allocations: 38.5 MB / 3.696 GB, free: 14.68 MB / 1.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001633/22.23, allocations: 304 kB / 3.697 GB, free: 14.39 MB / 1.948 GB Notification: Performance of matching and sorting (n=9917) (initialization): time 0.2525/22.48, allocations: 87.55 MB / 3.782 GB, free: 6.727 MB / 2.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.003779/22.48, allocations: 485.7 kB / 3.783 GB, free: 6.246 MB / 2.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00578/22.49, allocations: 1.036 MB / 3.784 GB, free: 5.211 MB / 2.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02731/22.52, allocations: 3.257 MB / 3.787 GB, free: 1.93 MB / 2.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.07502/22.59, allocations: 10.72 MB / 3.797 GB, free: 7.18 MB / 2.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04458/22.64, allocations: 26.02 MB / 3.823 GB, free: 11.86 MB / 2.073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04354/22.68, allocations: 2.496 MB / 3.825 GB, free: 9.367 MB / 2.073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01097/22.69, allocations: 3.594 MB / 3.829 GB, free: 5.773 MB / 2.073 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.04103/22.73, allocations: 15.09 MB / 3.843 GB, free: 6.621 MB / 2.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007822/22.74, allocations: 2.346 MB / 3.846 GB, free: 4.254 MB / 2.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 12.54/35.28, allocations: 8.844 GB / 12.69 GB, free: 420.5 MB / 2.542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.012e-05/35.28, allocations: 25.31 kB / 12.69 GB, free: 420.5 MB / 2.542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-05/35.28, allocations: 12 kB / 12.69 GB, free: 420.5 MB / 2.542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-05/35.28, allocations: 11.95 kB / 12.69 GB, free: 420.5 MB / 2.542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 12.38/47.66, allocations: 8.865 GB / 21.55 GB, free: 333.6 MB / 2.542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.935e-05/47.66, allocations: 0 / 21.55 GB, free: 333.6 MB / 2.542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002563/47.67, allocations: 291.3 kB / 21.55 GB, free: 333.3 MB / 2.542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009251/47.67, allocations: 1.627 MB / 21.56 GB, free: 331.7 MB / 2.542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003178/47.68, allocations: 0.6435 MB / 21.56 GB, free: 331.1 MB / 2.542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03356/47.71, allocations: 23.64 MB / 21.58 GB, free: 306.4 MB / 2.542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/47.71, allocations: 9.984 kB / 21.58 GB, free: 306.4 MB / 2.542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 12.26/59.97, allocations: 8.898 GB / 30.48 GB, free: 192.6 MB / 2.542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01564/59.99, allocations: 5.093 MB / 30.48 GB, free: 188.4 MB / 2.542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004357/59.99, allocations: 0.6484 MB / 30.48 GB, free: 187.8 MB / 2.542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01064/60, allocations: 0.723 MB / 30.48 GB, free: 187 MB / 2.542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004934/60.01, allocations: 0.6595 MB / 30.48 GB, free: 186.4 MB / 2.542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003122/60.01, allocations: 0.6445 MB / 30.48 GB, free: 185.7 MB / 2.542 GB Notification: Performance of sorting global known variables: time 0.004185/60.01, allocations: 1.849 MB / 30.49 GB, free: 183.9 MB / 2.542 GB Notification: Performance of sort global known variables: time 1.172e-06/60.01, allocations: 0 / 30.49 GB, free: 183.9 MB / 2.542 GB Notification: Performance of remove unused functions: time 0.05104/60.07, allocations: 9.959 MB / 30.5 GB, free: 173.9 MB / 2.542 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 14.74/74.8, allocations: 8.899 GB / 39.4 GB, free: 50.58 MB / 2.542 GB Notification: Performance of simCode: created initialization part: time 0.6531/75.46, allocations: 84.23 MB / 39.48 GB, free: 2.147 GB / 2.542 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-05/75.46, allocations: 7.906 kB / 39.48 GB, free: 2.147 GB / 2.542 GB Notification: Performance of simCode: created simulation system equations: time 59.68/135.1, allocations: 28.59 GB / 68.07 GB, free: 315 MB / 3.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01278/135.2, allocations: 1.473 MB / 68.07 GB, free: 313.6 MB / 3.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.22/136.4, allocations: 1.132 GB / 69.2 GB, free: 1.966 GB / 3.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01929/136.4, allocations: 10.21 MB / 69.21 GB, free: 1.956 GB / 3.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02494/136.4, allocations: 8.048 MB / 69.22 GB, free: 1.948 GB / 3.167 GB Notification: Performance of SimCode: time 1.382e-06/136.4, allocations: 0 / 69.22 GB, free: 1.948 GB / 3.167 GB [CodegenCppCommonOld.tpl:1596:11-1596:11:writable] Error: Template error: ASUB_EASY_CASE 1:nfi.