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.001427/0.001427, allocations: 107.5 kB / 16.92 MB, free: 6.145 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.001568/0.001568, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.395/1.395, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009599/0.0009599, allocations: 48.02 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08135/0.08233, allocations: 49.45 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse): time 0.01084/0.0932, allocations: 10.7 MB / 360.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006269/0.0995, allocations: 3.174 MB / 364.1 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.1008, allocations: 83.62 kB / 364.1 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.1024, allocations: 0.7021 MB / 364.8 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00303/0.1054, allocations: 1.146 MB / 366 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.1065, allocations: 459.5 kB / 366.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1657/0.2722, allocations: 5.11 MB / 371.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004783/0.277, allocations: 4.786 MB / 376.3 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003749/0.2808, allocations: 2.378 MB / 378.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003456/0.2843, allocations: 2.767 MB / 381.5 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008773/0.2851, allocations: 0.6227 MB / 382.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001318/0.2865, allocations: 0.702 MB / 382.8 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00129/0.2878, allocations: 1.631 MB / 384.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002626/0.2904, allocations: 2.766 MB / 387.2 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005908/0.2963, allocations: 8.349 MB / 395.5 MB, free: 1.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2964, allocations: 0 / 395.5 MB, free: 1.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2964, allocations: 0 / 395.5 MB, free: 1.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001523/0.2965, allocations: 4 kB / 395.6 MB, free: 1.52 MB / 302.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.008764/0.3053, allocations: 5.091 MB / 400.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.3054, allocations: 20.17 kB / 400.7 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007442/0.3061, allocations: 0.5568 MB / 401.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001319/0.3074, allocations: 0.5454 MB / 401.8 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004191/0.3116, allocations: 2.753 MB / 404.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.3119, allocations: 299.1 kB / 404.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005205/0.3124, allocations: 387.4 kB / 405.2 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008659/0.321, allocations: 5.803 MB / 411 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-05/0.3211, allocations: 4 kB / 411 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000365/0.3215, allocations: 159.1 kB / 411.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001817/0.3217, allocations: 208 kB / 411.4 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007594/0.3293, allocations: 5.033 MB / 416.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02275/0.352, allocations: 16.38 MB / 432.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00639/0.3585, allocations: 6.797 MB / 439.6 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003471/0.362, allocations: 2.641 MB / 442.2 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002738/0.3623, allocations: 135.1 kB / 442.3 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/0.3623, allocations: 63.19 kB / 442.4 MB, free: 4.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=249): time 4.088e-06/0.3623, allocations: 0 / 442.4 MB, free: 4.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=256): time 0.01948/0.3818, allocations: 10.71 MB / 453.1 MB, free: 9.316 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.3819, allocations: 77.42 kB / 453.2 MB, free: 9.227 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004073/0.386, allocations: 2.631 MB / 455.8 MB, free: 6.578 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001771/0.3861, allocations: 69.7 kB / 455.9 MB, free: 6.504 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001186/0.3873, allocations: 1.642 MB / 457.5 MB, free: 4.848 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006641/0.388, allocations: 0.839 MB / 458.4 MB, free: 4.016 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006679/0.3887, allocations: 412.6 kB / 458.8 MB, free: 3.605 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.161e-05/0.3888, allocations: 309.1 kB / 459.1 MB, free: 3.301 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/0.3907, allocations: 1.336 MB / 460.4 MB, free: 1.961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002201/0.393, allocations: 1.645 MB / 462 MB, free: 228 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004298/0.3973, allocations: 3.094 MB / 465.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.3973, allocations: 0 / 465.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=303) (initialization): time 0.007353/0.4046, allocations: 4.457 MB / 469.6 MB, free: 8.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.4047, allocations: 8 kB / 469.6 MB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.4047, allocations: 8 kB / 469.6 MB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005294/0.41, allocations: 1.654 MB / 471.3 MB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/0.4115, allocations: 392.6 kB / 471.6 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02518/0.4367, allocations: 25.76 MB / 497.4 MB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001971/0.4387, allocations: 99.89 kB / 497.5 MB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002832/0.439, allocations: 76 kB / 497.6 MB, free: 11.34 MB / 414.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.002393/0.4414, allocations: 1.413 MB / 499 MB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007092/0.4421, allocations: 288.6 kB / 499.3 MB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007298/0.4495, allocations: 4.377 MB / 0.4918 GB, free: 5.234 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/0.4495, allocations: 31.38 kB / 0.4919 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-05/0.4495, allocations: 15.98 kB / 0.4919 GB, free: 5.191 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.082e-05/0.4495, allocations: 11.95 kB / 0.4919 GB, free: 5.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01434/0.4639, allocations: 8.866 MB / 0.5006 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.4639, allocations: 0 / 0.5006 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.465, allocations: 281.8 kB / 0.5008 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004844/0.4699, allocations: 1.634 MB / 0.5024 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001684/0.4701, allocations: 59.97 kB / 0.5025 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1675/0.6376, allocations: 25.49 MB / 0.5274 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.6377, allocations: 5.688 kB / 0.5274 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009375/0.6471, allocations: 6.094 MB / 0.5333 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/0.6488, allocations: 0.6708 MB / 0.534 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004132/0.6492, allocations: 60.12 kB / 0.534 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.6506, allocations: 119.8 kB / 0.5342 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005229/0.6511, allocations: 210.2 kB / 0.5344 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/0.6513, allocations: 70.23 kB / 0.5344 GB, free: 142.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002644/0.6539, allocations: 1.848 MB / 0.5362 GB, free: 142.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6539, allocations: 0 / 0.5362 GB, free: 142.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003338/0.6573, allocations: 0.9544 MB / 0.5372 GB, free: 142.1 MB / 446.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.008887/0.6662, allocations: 6.795 MB / 0.5438 GB, free: 139.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0101/0.6763, allocations: 6.976 MB / 0.5506 GB, free: 136.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.6763, allocations: 3.781 kB / 0.5506 GB, free: 136.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003665/0.68, allocations: 3.355 MB / 0.5539 GB, free: 134.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003571/0.6836, allocations: 0.9543 MB / 0.5548 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03874/0.7223, allocations: 36.97 MB / 0.5909 GB, free: 98.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002278/0.7246, allocations: 3.169 MB / 0.594 GB, free: 95.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001523/0.7262, allocations: 0.5674 MB / 0.5946 GB, free: 94.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001335/0.7275, allocations: 1.468 MB / 0.596 GB, free: 93.52 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.7275, allocations: 0 / 0.596 GB, free: 93.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1278/0.8553, allocations: 92.39 MB / 0.6862 GB, free: 1.949 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/14.36, allocations: 7.75 kB / 0.6862 GB, free: 1.945 MB / 446.1 MB (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)