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: translateModel(Modelica.Blocks.Examples.Rectifier6pulseFFT,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.Rectifier6pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier6pulseFFT,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.Rectifier6pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002608/0.002615, allocations: 189.2 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.564/3.564, 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.001696/0.001696, allocations: 98.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007427/0.0007428, allocations: 12 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2386, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.01903/0.2577, allocations: 5.715 MB / 380.2 MB, free: 9.695 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01127/0.269, allocations: 2.819 MB / 383.1 MB, free: 6.871 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001951/0.2711, allocations: 39.75 kB / 383.1 MB, free: 6.832 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003257/0.2744, allocations: 445.9 kB / 383.5 MB, free: 6.395 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00521/0.2797, allocations: 1.147 MB / 384.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003005/0.2828, allocations: 347.4 kB / 385 MB, free: 4.906 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007544/0.2903, allocations: 2.035 MB / 387.1 MB, free: 2.867 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005223/0.2956, allocations: 1.583 MB / 388.6 MB, free: 1.254 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.7756/1.071, allocations: 1.35 MB / 390 MB, free: 10.2 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005988/1.077, allocations: 1.692 MB / 391.7 MB, free: 10.2 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 0.001663/1.079, allocations: 158.1 kB / 391.8 MB, free: 10.2 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004595/1.084, allocations: 412.9 kB / 392.2 MB, free: 10.2 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 0.009592/1.093, allocations: 4.299 MB / 396.5 MB, free: 10.05 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 0.008207/1.102, allocations: 2.152 MB / 398.7 MB, free: 9.484 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.02402/1.126, allocations: 9.305 MB / 408 MB, free: 5.883 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/1.126, allocations: 0 / 408 MB, free: 5.883 MB / 282.8 MB Notification: Performance of FrontEnd: time 3.928e-06/1.126, allocations: 0 / 408 MB, free: 5.883 MB / 282.8 MB Notification: Performance of Transformations before backend: time 0.0008431/1.127, allocations: 0 / 408 MB, free: 5.883 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.0425/1.169, allocations: 15.1 MB / 423.1 MB, free: 11.2 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 7.474e-05/1.169, allocations: 8.031 kB / 423.1 MB, free: 11.19 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00747/1.177, allocations: 1.476 MB / 424.6 MB, free: 9.691 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01404/1.191, allocations: 2.873 MB / 427.5 MB, free: 6.773 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004383/1.192, allocations: 166.4 kB / 427.6 MB, free: 6.609 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001533/1.193, allocations: 221.8 kB / 427.8 MB, free: 6.395 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07913/1.272, allocations: 26.92 MB / 454.8 MB, free: 11.41 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001251/1.272, allocations: 1.375 kB / 454.8 MB, free: 11.41 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/1.274, allocations: 93.56 kB / 454.9 MB, free: 11.32 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003038/1.274, allocations: 108.5 kB / 455 MB, free: 11.21 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06809/1.342, allocations: 24.42 MB / 479.4 MB, free: 2.777 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06179/1.404, allocations: 14.73 MB / 494.1 MB, free: 4 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.579/1.983, allocations: 82.35 MB / 0.5629 GB, free: 109.5 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006288/1.984, allocations: 123.3 kB / 0.5631 GB, free: 109.4 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0838/2.068, allocations: 29.82 MB / 0.5922 GB, free: 87.29 MB / 410.8 MB Notification: Performance of pre-optimization done (n=4937): time 9.348e-06/2.068, allocations: 0 / 0.5922 GB, free: 87.29 MB / 410.8 MB Notification: Performance of matching and sorting (n=4941): time 33.8/35.87, allocations: 2.9 GB / 3.493 GB, free: 107.6 MB / 1.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008575/35.88, allocations: 7.193 MB / 3.5 GB, free: 100.6 MB / 1.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004897/35.88, allocations: 1.495 MB / 3.501 GB, free: 99.11 MB / 1.823 GB Notification: Performance of collectPreVariables (initialization): time 0.01298/35.9, allocations: 3.932 MB / 3.505 GB, free: 95.16 MB / 1.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001968/35.9, allocations: 0.9881 MB / 3.506 GB, free: 94.16 MB / 1.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.03813/35.94, allocations: 21.23 MB / 3.527 GB, free: 72.65 MB / 1.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009624/35.95, allocations: 1.496 MB / 3.528 GB, free: 71.15 MB / 1.823 GB Notification: Performance of setup shared object (initialization): time 0.009776/35.96, allocations: 3.459 MB / 3.531 GB, free: 67.68 MB / 1.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.09493/36.05, allocations: 26.22 MB / 3.557 GB, free: 41.44 MB / 1.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.151/36.2, allocations: 57.62 MB / 3.613 GB, free: 1.102 MB / 1.854 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1688/36.37, allocations: 37.73 MB / 3.65 GB, free: 11.34 MB / 1.901 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002374/36.37, allocations: 300 kB / 3.65 GB, free: 11.04 MB / 1.901 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.5189/36.89, allocations: 85.48 MB / 3.734 GB, free: 5.508 MB / 1.979 GB Notification: Performance of prepare postOptimizeDAE: time 0.003839/36.9, allocations: 489.7 kB / 3.734 GB, free: 5.023 MB / 1.979 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006084/36.9, allocations: 1.031 MB / 3.735 GB, free: 3.992 MB / 1.979 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01656/36.92, allocations: 2.433 MB / 3.738 GB, free: 1.555 MB / 1.979 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.09395/37.01, allocations: 10.54 MB / 3.748 GB, free: 6.988 MB / 1.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03772/37.05, allocations: 12.85 MB / 3.761 GB, free: 9.602 MB / 2.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.07467/37.13, allocations: 2.435 MB / 3.763 GB, free: 7.168 MB / 2.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.04166/37.17, allocations: 3.559 MB / 3.766 GB, free: 3.609 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.145/37.31, allocations: 14.49 MB / 3.781 GB, free: 5.055 MB / 2.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01572/37.33, allocations: 2.216 MB / 3.783 GB, free: 2.82 MB / 2.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 22.72/60.05, allocations: 8.841 GB / 12.62 GB, free: 0.9948 GB / 2.636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.753e-05/60.05, allocations: 12 kB / 12.62 GB, free: 0.9948 GB / 2.636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.416e-05/60.05, allocations: 4 kB / 12.62 GB, free: 0.9947 GB / 2.636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.157e-05/60.05, allocations: 3.984 kB / 12.62 GB, free: 0.9947 GB / 2.636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 22.59/82.64, allocations: 8.861 GB / 21.49 GB, free: 1.347 GB / 2.636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.692e-05/82.64, allocations: 0 / 21.49 GB, free: 1.347 GB / 2.636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001695/82.64, allocations: 167 kB / 21.49 GB, free: 1.347 GB / 2.636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005784/82.64, allocations: 0.8063 MB / 21.49 GB, free: 1.346 GB / 2.636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004618/82.65, allocations: 0.621 MB / 21.49 GB, free: 1.345 GB / 2.636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02322/82.67, allocations: 10.61 MB / 21.5 GB, free: 1.335 GB / 2.636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/82.67, allocations: 2 kB / 21.5 GB, free: 1.335 GB / 2.636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 23.19/105.9, allocations: 8.895 GB / 30.39 GB, free: 1.655 GB / 2.636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.03087/105.9, allocations: 4.808 MB / 30.4 GB, free: 1.652 GB / 2.636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006229/105.9, allocations: 0.6211 MB / 30.4 GB, free: 1.651 GB / 2.636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01609/105.9, allocations: 0.6705 MB / 30.4 GB, free: 1.65 GB / 2.636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007124/105.9, allocations: 0.5441 MB / 30.4 GB, free: 1.65 GB / 2.636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004912/105.9, allocations: 0.6289 MB / 30.4 GB, free: 1.649 GB / 2.636 GB Notification: Performance of sorting global known variables: time 0.003827/105.9, allocations: 1.06 MB / 30.4 GB, free: 1.648 GB / 2.636 GB Notification: Performance of sort global known variables: time 1.222e-06/105.9, allocations: 1.281 kB / 30.4 GB, free: 1.648 GB / 2.636 GB Notification: Performance of remove unused functions: time 0.08872/106, allocations: 9.515 MB / 30.41 GB, free: 1.639 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 0.007804/106, allocations: 0.9526 MB / 30.41 GB, free: 1.638 GB / 2.636 GB Notification: Performance of simCode: created initialization part: time 0.2763/106.3, allocations: 81.76 MB / 30.49 GB, free: 1.558 GB / 2.636 GB Notification: Performance of simCode: created event and clocks part: time 1.789e-05/106.3, allocations: 0 / 30.49 GB, free: 1.558 GB / 2.636 GB Notification: Performance of simCode: created simulation system equations: time 101.8/208.1, allocations: 28.59 GB / 59.08 GB, free: 1.314 GB / 3.417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01881/208.1, allocations: 1.055 MB / 59.08 GB, free: 1.313 GB / 3.417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2344/208.3, allocations: 66.25 MB / 59.14 GB, free: 1.249 GB / 3.417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03122/208.4, allocations: 9.09 MB / 59.15 GB, free: 1.24 GB / 3.417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01456/208.4, allocations: 1.273 MB / 59.15 GB, free: 1.239 GB / 3.417 GB Notification: Performance of SimCode: time 3.707e-06/208.4, allocations: 0 / 59.15 GB, free: 1.239 GB / 3.417 GB [CodegenCppCommonOld.tpl:1596:11-1596:11:writable] Error: Template error: ASUB_EASY_CASE 1:nfi.