Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 112.5 kB / 17.07 MB, free: 5.973 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.0009948/0.0009949, allocations: 198.8 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 43.94 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2923, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse): time 0.008389/0.3008, allocations: 6.874 MB / 407.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004139/0.3049, allocations: 2.263 MB / 409.4 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006947/0.3057, allocations: 47.81 kB / 409.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001073/0.3068, allocations: 459.9 kB / 409.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00174/0.3085, allocations: 0.6837 MB / 410.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005171/0.3091, allocations: 267.7 kB / 410.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002728/0.3118, allocations: 2.832 MB / 413.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002719/0.3145, allocations: 2.57 MB / 416.2 MB, free: 8.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002569/0.3171, allocations: 1.335 MB / 417.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001978/0.3191, allocations: 1.537 MB / 419.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004018/0.3195, allocations: 348 kB / 419.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007315/0.3203, allocations: 431.8 kB / 419.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007111/0.321, allocations: 0.8922 MB / 420.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.3227, allocations: 1.529 MB / 422.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004796/0.3275, allocations: 4.633 MB / 426.9 MB, free: 14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3275, allocations: 0 / 426.9 MB, free: 14 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3275, allocations: 0 / 426.9 MB, free: 14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001153/0.3276, allocations: 0 / 426.9 MB, free: 14 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.006083/0.3337, allocations: 3.037 MB / 429.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.3338, allocations: 8.031 kB / 430 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004087/0.3342, allocations: 328.9 kB / 430.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007828/0.335, allocations: 323.1 kB / 430.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002845/0.3379, allocations: 1.648 MB / 432.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.338, allocations: 164.4 kB / 432.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003517/0.3384, allocations: 219.9 kB / 432.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005266/0.3436, allocations: 3.182 MB / 435.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.257e-05/0.3437, allocations: 3.938 kB / 435.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002049/0.3439, allocations: 88 kB / 435.9 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/0.344, allocations: 112.4 kB / 436 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004326/0.3484, allocations: 2.73 MB / 438.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01321/0.3616, allocations: 8.789 MB / 447.5 MB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003075/0.3647, allocations: 3.379 MB / 450.9 MB, free: 5.281 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001784/0.3665, allocations: 1.315 MB / 452.2 MB, free: 3.973 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002323/0.3668, allocations: 122.4 kB / 452.3 MB, free: 3.832 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.3668, allocations: 51.88 kB / 452.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 3.377e-06/0.3668, allocations: 0 / 452.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01013/0.377, allocations: 5.781 MB / 458.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.377, allocations: 64.72 kB / 458.2 MB, free: 13.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002297/0.3793, allocations: 1.486 MB / 459.7 MB, free: 12.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.437e-05/0.3794, allocations: 53.7 kB / 459.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006709/0.3801, allocations: 0.9626 MB / 460.7 MB, free: 11.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003517/0.3805, allocations: 468 kB / 461.2 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003535/0.3808, allocations: 218.9 kB / 461.4 MB, free: 10.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.381, allocations: 357.9 kB / 461.7 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.382, allocations: 0.6896 MB / 462.4 MB, free: 9.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.3832, allocations: 0.8668 MB / 463.3 MB, free: 8.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/0.3853, allocations: 1.604 MB / 464.9 MB, free: 6.941 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.3853, allocations: 0 / 464.9 MB, free: 6.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003793/0.3891, allocations: 2.311 MB / 467.2 MB, free: 4.609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.3892, allocations: 18.62 kB / 467.2 MB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.3892, allocations: 4 kB / 467.2 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002632/0.3918, allocations: 0.8233 MB / 468.1 MB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007786/0.3926, allocations: 203.7 kB / 468.3 MB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0127/0.4053, allocations: 11.49 MB / 479.8 MB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.4065, allocations: 59.97 kB / 479.8 MB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.4066, allocations: 40 kB / 479.9 MB, free: 7.41 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (diode2.idealDiode[3].off,diode2.idealDiode[2].off,diode2.idealDiode[1].off,diode1.idealDiode[3].off,diode1.idealDiode[2].off,diode1.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0015/0.4082, allocations: 0.8213 MB / 480.7 MB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004764/0.4086, allocations: 167 kB / 480.8 MB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003981/0.4126, allocations: 2.277 MB / 483.1 MB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.4127, allocations: 12 kB / 483.1 MB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.4127, allocations: 4 kB / 483.1 MB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.4127, allocations: 7.969 kB / 483.1 MB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008318/0.421, allocations: 4.719 MB / 487.9 MB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.421, allocations: 0 / 487.9 MB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006577/0.4217, allocations: 159.9 kB / 488 MB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002479/0.4242, allocations: 0.8033 MB / 488.8 MB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-05/0.4243, allocations: 31.98 kB / 488.8 MB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/0.4359, allocations: 11.4 MB / 0.4885 GB, free: 2.312 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.4359, allocations: 3.938 kB / 0.4885 GB, free: 2.309 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004991/0.4409, allocations: 3.236 MB / 0.4917 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.4419, allocations: 416 kB / 0.4921 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003926/0.4423, allocations: 31.98 kB / 0.4921 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009931/0.4433, allocations: 67.94 kB / 0.4922 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002829/0.4436, allocations: 121 kB / 0.4923 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.382e-05/0.4437, allocations: 35.98 kB / 0.4923 GB, free: 14.36 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001846/0.4456, allocations: 1.056 MB / 0.4934 GB, free: 13.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4456, allocations: 0 / 0.4934 GB, free: 13.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002059/0.4477, allocations: 0.5156 MB / 0.4939 GB, free: 12.78 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i) * Number of discrete variables: 6 (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 simulation (79): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005608/0.4533, allocations: 3.899 MB / 0.4977 GB, free: 8.836 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003838/0.4572, allocations: 2.412 MB / 0.5 GB, free: 6.367 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.4572, allocations: 0 / 0.5 GB, free: 6.367 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002479/0.4597, allocations: 1.636 MB / 0.5016 GB, free: 4.68 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.4622, allocations: 0.5019 MB / 0.5021 GB, free: 4.184 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0288/0.4911, allocations: 17.63 MB / 0.5193 GB, free: 2.238 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002245/0.4933, allocations: 2.039 MB / 0.5213 GB, free: 168 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009592/0.4943, allocations: 305.5 kB / 0.5216 GB, free: 15.86 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/0.4954, allocations: 0.7765 MB / 0.5224 GB, free: 15.08 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4954, allocations: 4 kB / 0.5224 GB, free: 15.08 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3036/0.799, allocations: 50.46 MB / 0.5717 GB, free: 107.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.41, allocations: 13.94 kB / 0.5717 GB, free: 107.8 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulse.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.pipe 2>&1)