Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.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.Rectifier12pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse",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.001297/0.001297, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.00129/0.00129, allocations: 200 kB / 18.01 MB, free: 5.047 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.331/1.331, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.001201, allocations: 51.92 kB / 350.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2823, allocations: 49.43 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse): time 0.0113/0.2936, allocations: 10.72 MB / 411 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006803/0.3005, allocations: 3.185 MB / 414.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002138/0.3026, allocations: 87.62 kB / 414.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00243/0.3051, allocations: 0.7255 MB / 415 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003778/0.3089, allocations: 1.169 MB / 416.1 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.3104, allocations: 471.4 kB / 416.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006881/0.3173, allocations: 5.124 MB / 421.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007134/0.3245, allocations: 4.787 MB / 426.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005289/0.3298, allocations: 2.4 MB / 428.9 MB, free: 12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005831/0.3357, allocations: 2.771 MB / 431.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002133/0.3379, allocations: 0.6211 MB / 432.3 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002574/0.3404, allocations: 0.703 MB / 433 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002409/0.3429, allocations: 1.636 MB / 434.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006113/0.349, allocations: 2.762 MB / 437.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.3603, allocations: 8.437 MB / 445.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.3603, allocations: 0 / 445.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3603, allocations: 0 / 445.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003009/0.3606, allocations: 0 / 445.8 MB, free: 11.02 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1046 * Number of variables: 1046 Notification: Performance of Generate backend data structure: time 0.01437/0.375, allocations: 5.219 MB / 451.1 MB, free: 5.719 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.3751, allocations: 8.031 kB / 451.1 MB, free: 5.711 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001766/0.3769, allocations: 0.5634 MB / 451.6 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002335/0.3792, allocations: 0.5681 MB / 452.2 MB, free: 4.566 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006752/0.386, allocations: 2.87 MB / 455.1 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002643/0.3863, allocations: 291.8 kB / 455.4 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001178/0.3875, allocations: 391.9 kB / 455.7 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01405/0.4015, allocations: 5.801 MB / 461.5 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001391/0.4017, allocations: 4 kB / 461.5 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009943/0.4027, allocations: 160 kB / 461.7 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000236/0.403, allocations: 208 kB / 461.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01104/0.414, allocations: 5.028 MB / 466.9 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03193/0.446, allocations: 16.23 MB / 483.2 MB, free: 5.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007374/0.4534, allocations: 6.806 MB / 490 MB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003976/0.4574, allocations: 2.611 MB / 492.6 MB, free: 11.19 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003568/0.4578, allocations: 143 kB / 492.7 MB, free: 11.03 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.539e-05/0.4579, allocations: 56.56 kB / 492.8 MB, free: 10.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=249): time 4.929e-06/0.4579, allocations: 0 / 492.8 MB, free: 10.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=256): time 0.02148/0.4794, allocations: 10.77 MB / 0.4917 GB, free: 15.95 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.4795, allocations: 85.36 kB / 0.4918 GB, free: 15.85 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005028/0.4845, allocations: 2.628 MB / 0.4944 GB, free: 13.2 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003063/0.4848, allocations: 65.7 kB / 0.4945 GB, free: 13.13 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00144/0.4863, allocations: 1.675 MB / 0.4961 GB, free: 11.44 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009204/0.4872, allocations: 0.8869 MB / 0.497 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008074/0.488, allocations: 412.7 kB / 0.4973 GB, free: 10.13 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.4882, allocations: 313 kB / 0.4976 GB, free: 9.824 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00212/0.4903, allocations: 1.336 MB / 0.499 GB, free: 8.484 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002311/0.4926, allocations: 1.65 MB / 0.5006 GB, free: 6.738 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004548/0.4972, allocations: 3.083 MB / 0.5036 GB, free: 3.531 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.4972, allocations: 4 kB / 0.5036 GB, free: 3.527 MB / 430.1 MB Notification: Performance of matching and sorting (n=303) (initialization): time 0.007731/0.505, allocations: 4.474 MB / 0.5079 GB, free: 14.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.505, allocations: 8 kB / 0.508 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.505, allocations: 12 kB / 0.508 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005208/0.5103, allocations: 1.64 MB / 0.5096 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001547/0.5118, allocations: 391.5 kB / 0.5099 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02548/0.5373, allocations: 25.75 MB / 0.5351 GB, free: 1.758 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00218/0.5395, allocations: 91.92 kB / 0.5352 GB, free: 1.668 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004391/0.54, allocations: 76 kB / 0.5353 GB, free: 1.594 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 12 (diode4.idealDiode[3].off,diode4.idealDiode[2].off,diode4.idealDiode[1].off,diode3.idealDiode[3].off,diode3.idealDiode[2].off,diode3.idealDiode[1].off,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 (198): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,9,100.0%), (1,9,100.0%), (1,9,100.0%), (2,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(2,7), (2,7), (2,7), (2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.002874/0.5429, allocations: 1.415 MB / 0.5366 GB, free: 172 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2358/0.7787, allocations: 302.8 kB / 0.5369 GB, free: 128.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009429/0.7882, allocations: 4.385 MB / 0.5412 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.75e-05/0.7882, allocations: 23.69 kB / 0.5412 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.189e-05/0.7883, allocations: 11.75 kB / 0.5412 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.723e-05/0.7883, allocations: 15.78 kB / 0.5413 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01968/0.808, allocations: 8.775 MB / 0.5498 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-05/0.8081, allocations: 0 / 0.5498 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/0.8098, allocations: 286.6 kB / 0.5501 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007485/0.8173, allocations: 1.613 MB / 0.5517 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002916/0.8176, allocations: 60.28 kB / 0.5517 GB, free: 124 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02457/0.8422, allocations: 25.51 MB / 0.5766 GB, free: 97.76 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.8423, allocations: 0 / 0.5766 GB, free: 97.76 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0117/0.854, allocations: 6.102 MB / 0.5826 GB, free: 91.71 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002381/0.8564, allocations: 0.6853 MB / 0.5833 GB, free: 91.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001134/0.8576, allocations: 59.98 kB / 0.5833 GB, free: 91.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002589/0.8602, allocations: 127.8 kB / 0.5834 GB, free: 90.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007866/0.861, allocations: 209.6 kB / 0.5836 GB, free: 90.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002664/0.8613, allocations: 67.98 kB / 0.5837 GB, free: 90.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004421/0.8657, allocations: 1.848 MB / 0.5855 GB, free: 88.84 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8657, allocations: 3.391 kB / 0.5855 GB, free: 88.84 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005933/0.8717, allocations: 0.9567 MB / 0.5865 GB, free: 87.89 MB / 462.1 MB 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: 12 (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 simulation (151): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,29,100.0%), (1,9,100.0%), (1,9,100.0%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(2,7), (2,7), (2,7), (2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009239/0.8809, allocations: 6.816 MB / 0.5931 GB, free: 81.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006131/0.8871, allocations: 4.88 MB / 0.5979 GB, free: 76 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.8871, allocations: 0 / 0.5979 GB, free: 76 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003932/0.891, allocations: 3.38 MB / 0.6012 GB, free: 72.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004652/0.8957, allocations: 0.9618 MB / 0.6021 GB, free: 71.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04419/0.9399, allocations: 31.97 MB / 0.6333 GB, free: 39.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003259/0.9432, allocations: 3.169 MB / 0.6364 GB, free: 35.93 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001716/0.945, allocations: 0.5713 MB / 0.637 GB, free: 35.35 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001611/0.9466, allocations: 1.468 MB / 0.6384 GB, free: 33.88 MB / 462.1 MB Notification: Performance of SimCode: time 4.01e-07/0.9466, allocations: 0 / 0.6384 GB, free: 33.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1627/1.109, allocations: 91.11 MB / 0.7274 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.57/18.68, allocations: 15.11 kB / 0.7274 GB, free: 7.598 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse_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_Rectifier12pulse.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe 2>&1)