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.001028/0.001028, allocations: 109.8 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.001862/0.001862, 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.286/1.286, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 44.61 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07928/0.08036, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse): time 0.007955/0.08836, allocations: 6.884 MB / 357 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004042/0.09243, allocations: 2.263 MB / 359.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001018/0.09347, allocations: 47.81 kB / 359.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001258/0.09477, allocations: 445 kB / 359.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001892/0.09668, allocations: 0.6641 MB / 360.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000699/0.09739, allocations: 267.7 kB / 360.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003023/0.1004, allocations: 2.825 MB / 363.5 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00311/0.1035, allocations: 2.57 MB / 366.1 MB, free: 4.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002123/0.1057, allocations: 1.309 MB / 367.4 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002103/0.1078, allocations: 1.533 MB / 369 MB, free: 1.387 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006689/0.1085, allocations: 348 kB / 369.3 MB, free: 1.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001016/0.1095, allocations: 435.8 kB / 369.7 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1397/0.2492, allocations: 0.8845 MB / 370.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001996/0.2513, allocations: 1.527 MB / 372.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004257/0.2555, allocations: 4.579 MB / 376.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2556, allocations: 3.125 kB / 376.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2556, allocations: 2.219 kB / 376.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.932e-05/0.2557, allocations: 1.375 kB / 376.7 MB, free: 13.3 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: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.005342/0.261, allocations: 2.961 MB / 379.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.2611, allocations: 8.969 kB / 379.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004124/0.2615, allocations: 330.5 kB / 380 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007759/0.2623, allocations: 308.8 kB / 380.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002165/0.2644, allocations: 1.588 MB / 381.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.928e-05/0.2645, allocations: 166.8 kB / 382.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003038/0.2649, allocations: 217.7 kB / 382.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004437/0.2693, allocations: 3.179 MB / 385.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/0.2694, allocations: 1.156 kB / 385.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002215/0.2696, allocations: 93.45 kB / 385.5 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001077/0.2697, allocations: 114.2 kB / 385.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003946/0.2736, allocations: 2.733 MB / 388.4 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01086/0.2845, allocations: 8.877 MB / 397.3 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.2871, allocations: 3.374 MB / 400.6 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001731/0.2888, allocations: 1.325 MB / 402 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002295/0.289, allocations: 124.3 kB / 402.1 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.2891, allocations: 46.69 kB / 402.1 MB, free: 14.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=128): time 2.916e-06/0.2891, allocations: 3.938 kB / 402.1 MB, free: 14.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01025/0.2994, allocations: 5.769 MB / 407.9 MB, free: 9.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.2994, allocations: 71.34 kB / 408 MB, free: 9.219 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/0.3015, allocations: 1.49 MB / 409.5 MB, free: 7.711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.22e-05/0.3016, allocations: 45.7 kB / 409.5 MB, free: 7.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006099/0.3022, allocations: 0.9439 MB / 410.5 MB, free: 6.707 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/0.3025, allocations: 438.3 kB / 410.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003621/0.3029, allocations: 222.8 kB / 411.1 MB, free: 6.059 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.303, allocations: 353.9 kB / 411.4 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.304, allocations: 0.6974 MB / 412.1 MB, free: 5.008 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001129/0.3052, allocations: 0.8587 MB / 413 MB, free: 4.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00219/0.3074, allocations: 1.6 MB / 414.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3074, allocations: 0 / 414.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003659/0.3111, allocations: 2.308 MB / 416.9 MB, free: 180 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.3111, allocations: 7.984 kB / 416.9 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3111, allocations: 4 kB / 416.9 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002712/0.3138, allocations: 0.8288 MB / 417.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008406/0.3147, allocations: 203.7 kB / 417.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/0.327, allocations: 11.5 MB / 429.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.3283, allocations: 51.95 kB / 429.5 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/0.3285, allocations: 40.09 kB / 429.5 MB, free: 3.062 MB / 334.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.001437/0.33, allocations: 0.8284 MB / 430.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003741/0.3304, allocations: 162.1 kB / 430.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003782/0.3341, allocations: 2.27 MB / 432.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.3342, allocations: 12 kB / 432.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.3342, allocations: 4.062 kB / 432.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.3342, allocations: 15.97 kB / 432.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007516/0.3417, allocations: 4.73 MB / 437.6 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.3417, allocations: 4 kB / 437.6 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007895/0.3425, allocations: 160.5 kB / 437.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003059/0.3456, allocations: 0.8139 MB / 438.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.3457, allocations: 31.98 kB / 438.6 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01178/0.3575, allocations: 11.38 MB / 449.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3576, allocations: 0 / 449.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005036/0.3626, allocations: 3.235 MB / 453.2 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009367/0.3636, allocations: 399.1 kB / 453.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004024/0.364, allocations: 36.06 kB / 453.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009774/0.365, allocations: 63.94 kB / 453.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00028/0.3653, allocations: 117.1 kB / 453.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.3654, allocations: 40 kB / 453.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001688/0.3671, allocations: 1.062 MB / 454.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3671, allocations: 0 / 454.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001941/0.369, allocations: 0.5078 MB / 455.4 MB, free: 8.629 MB / 366.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.005742/0.3748, allocations: 3.896 MB / 459.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005455/0.3803, allocations: 2.932 MB / 462.2 MB, free: 1.766 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/0.3803, allocations: 4 kB / 462.2 MB, free: 1.762 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002553/0.3829, allocations: 1.633 MB / 463.9 MB, free: 104 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002926/0.3858, allocations: 0.5045 MB / 464.4 MB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02952/0.4153, allocations: 19.1 MB / 483.5 MB, free: 11.78 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002001/0.4174, allocations: 2.043 MB / 485.5 MB, free: 9.699 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009717/0.4184, allocations: 305.5 kB / 485.8 MB, free: 9.395 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001022/0.4194, allocations: 0.7766 MB / 486.6 MB, free: 8.617 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4194, allocations: 0 / 486.6 MB, free: 8.617 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09019/0.5096, allocations: 49.57 MB / 0.5236 GB, free: 7.672 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.85, allocations: 7.844 kB / 0.5236 GB, free: 7.664 MB / 446.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)