Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse,fileNamePrefix="Modelica_3_2_3_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.001855/0.001855, allocations: 110.6 kB / 17.73 MB, free: 5.328 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.002111/0.002111, allocations: 194.9 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.264/1.264, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 51.92 kB / 328.1 MB, free: 3.77 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07451/0.07565, allocations: 46.63 MB / 374.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse): time 0.1679/0.2436, allocations: 10.65 MB / 385.3 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007264/0.2509, allocations: 3.272 MB / 388.6 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00236/0.2534, allocations: 70.78 kB / 388.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001961/0.2553, allocations: 0.7036 MB / 389.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003245/0.2586, allocations: 1.139 MB / 390.5 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.2597, allocations: 498.5 kB / 391 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005786/0.2655, allocations: 5.287 MB / 396.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005886/0.2715, allocations: 4.117 MB / 400.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00515/0.2766, allocations: 2.372 MB / 402.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005068/0.2817, allocations: 2.753 MB / 405.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001915/0.2837, allocations: 0.6209 MB / 406.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002928/0.2866, allocations: 0.7072 MB / 406.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002699/0.2893, allocations: 1.63 MB / 408.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005683/0.295, allocations: 2.764 MB / 411.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008844/0.3039, allocations: 8.402 MB / 419.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3039, allocations: 4 kB / 419.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3039, allocations: 0 / 419.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001685/0.3041, allocations: 0 / 419.7 MB, free: 2.82 MB / 334.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.01064/0.3147, allocations: 5.076 MB / 424.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.3148, allocations: 12.03 kB / 424.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000904/0.3157, allocations: 0.5634 MB / 425.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001405/0.3171, allocations: 0.5498 MB / 425.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004939/0.3221, allocations: 2.623 MB / 428.5 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.3223, allocations: 295.8 kB / 428.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006596/0.323, allocations: 389 kB / 429.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008842/0.3318, allocations: 5.785 MB / 434.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.609e-05/0.3319, allocations: 3.938 kB / 434.9 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003559/0.3323, allocations: 160 kB / 435.1 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001724/0.3325, allocations: 204 kB / 435.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008125/0.3406, allocations: 5.016 MB / 440.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02712/0.3677, allocations: 16.2 MB / 456.5 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006439/0.3742, allocations: 6.801 MB / 463.3 MB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003677/0.3779, allocations: 2.622 MB / 465.9 MB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002832/0.3783, allocations: 139.1 kB / 466.1 MB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.421e-05/0.3783, allocations: 60.56 kB / 466.1 MB, free: 3.223 MB / 382.1 MB Notification: Performance of pre-optimization done (n=249): time 6.141e-06/0.3783, allocations: 7.922 kB / 466.1 MB, free: 3.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=256): time 0.01892/0.3973, allocations: 10.69 MB / 476.8 MB, free: 8.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.3973, allocations: 77.42 kB / 476.9 MB, free: 8.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003641/0.401, allocations: 2.64 MB / 479.5 MB, free: 5.516 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000188/0.4012, allocations: 69.7 kB / 479.6 MB, free: 5.441 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001/0.4022, allocations: 1.636 MB / 481.2 MB, free: 3.785 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005792/0.4028, allocations: 0.8432 MB / 482.1 MB, free: 2.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005898/0.4034, allocations: 412.6 kB / 482.5 MB, free: 2.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.523e-05/0.4035, allocations: 305.1 kB / 482.8 MB, free: 2.219 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001857/0.4053, allocations: 1.336 MB / 484.1 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002005/0.4074, allocations: 1.658 MB / 485.8 MB, free: 15.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003897/0.4113, allocations: 3.076 MB / 488.9 MB, free: 11.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.4113, allocations: 4 kB / 488.9 MB, free: 11.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=303) (initialization): time 0.006766/0.4181, allocations: 4.449 MB / 493.3 MB, free: 7.391 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.4181, allocations: 8 kB / 493.3 MB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.4181, allocations: 4 kB / 493.3 MB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004965/0.4231, allocations: 1.659 MB / 495 MB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.4246, allocations: 383.5 kB / 495.4 MB, free: 5.312 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02341/0.448, allocations: 25.72 MB / 0.5089 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002043/0.4501, allocations: 103.8 kB / 0.509 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002663/0.4503, allocations: 75.98 kB / 0.509 GB, free: 10.02 MB / 446.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.00222/0.4526, allocations: 1.415 MB / 0.5104 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006288/0.4532, allocations: 288.6 kB / 0.5107 GB, free: 8.312 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007162/0.4604, allocations: 4.387 MB / 0.515 GB, free: 3.832 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.08e-05/0.4604, allocations: 24 kB / 0.515 GB, free: 3.809 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.4604, allocations: 8 kB / 0.515 GB, free: 3.801 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.982e-05/0.4605, allocations: 15.95 kB / 0.515 GB, free: 3.785 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/0.4745, allocations: 8.769 MB / 0.5236 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.4746, allocations: 0 / 0.5236 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/0.4757, allocations: 287.6 kB / 0.5239 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004877/0.4806, allocations: 1.62 MB / 0.5254 GB, free: 8.973 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000174/0.4808, allocations: 63.97 kB / 0.5255 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1934/0.6742, allocations: 25.48 MB / 0.5504 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.6743, allocations: 2.516 kB / 0.5504 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009748/0.684, allocations: 6.097 MB / 0.5563 GB, free: 143.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001866/0.6859, allocations: 0.6753 MB / 0.557 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005599/0.6865, allocations: 56.09 kB / 0.5571 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.688, allocations: 123.7 kB / 0.5572 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006122/0.6886, allocations: 216.6 kB / 0.5574 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/0.6888, allocations: 67.38 kB / 0.5574 GB, free: 143.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003142/0.692, allocations: 1.853 MB / 0.5593 GB, free: 142.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 3e-07/0.692, allocations: 0 / 0.5593 GB, free: 142.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004624/0.6966, allocations: 0.9516 MB / 0.5602 GB, free: 142.6 MB / 478.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.0102/0.7069, allocations: 6.785 MB / 0.5668 GB, free: 139.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006882/0.7138, allocations: 4.88 MB / 0.5716 GB, free: 137.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.7138, allocations: 4.5 kB / 0.5716 GB, free: 137.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004095/0.7179, allocations: 3.36 MB / 0.5749 GB, free: 135.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003875/0.7218, allocations: 0.9478 MB / 0.5758 GB, free: 135.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04206/0.7639, allocations: 31.86 MB / 0.6069 GB, free: 110.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002353/0.7663, allocations: 3.173 MB / 0.61 GB, free: 107.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00149/0.7678, allocations: 0.5713 MB / 0.6106 GB, free: 106.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001354/0.7692, allocations: 1.472 MB / 0.612 GB, free: 105.4 MB / 478.1 MB Notification: Performance of SimCode: time 9.31e-07/0.7692, allocations: 4 kB / 0.612 GB, free: 105.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1284/0.8976, allocations: 91.21 MB / 0.7011 GB, free: 14.03 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.07/17.97, allocations: 8 kB / 0.7011 GB, free: 14.02 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe 2>&1)