Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001138/0.001138, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001457/0.001457, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001319, allocations: 59.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.267, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse): time 0.01198/0.2791, allocations: 10.73 MB / 419.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007345/0.2864, allocations: 3.239 MB / 422.8 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002643/0.2891, allocations: 87.62 kB / 422.8 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002774/0.292, allocations: 0.7294 MB / 423.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004966/0.297, allocations: 1.165 MB / 424.7 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001809/0.2988, allocations: 479.4 kB / 425.2 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007605/0.3064, allocations: 5.147 MB / 430.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007694/0.3142, allocations: 4.791 MB / 435.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004942/0.3191, allocations: 2.4 MB / 437.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00478/0.3239, allocations: 2.775 MB / 440.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001822/0.3258, allocations: 0.6211 MB / 440.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002522/0.3283, allocations: 0.7068 MB / 441.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002353/0.3307, allocations: 1.629 MB / 443.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005423/0.3361, allocations: 2.773 MB / 446 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01091/0.3471, allocations: 8.436 MB / 454.5 MB, free: 3.629 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.3471, allocations: 0 / 454.5 MB, free: 3.629 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3471, allocations: 0 / 454.5 MB, free: 3.629 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000311/0.3474, allocations: 0 / 454.5 MB, free: 3.629 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.01513/0.3626, allocations: 5.238 MB / 459.7 MB, free: 14.31 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.3627, allocations: 8.031 kB / 459.7 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001799/0.3645, allocations: 0.5517 MB / 460.3 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002771/0.3673, allocations: 0.6071 MB / 460.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007086/0.3744, allocations: 2.89 MB / 463.8 MB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003382/0.3747, allocations: 295.8 kB / 464.1 MB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001423/0.3762, allocations: 376 kB / 464.4 MB, free: 9.512 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01512/0.3913, allocations: 5.809 MB / 470.2 MB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001492/0.3915, allocations: 4 kB / 470.2 MB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001272/0.3928, allocations: 160 kB / 470.4 MB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002463/0.3931, allocations: 208 kB / 470.6 MB, free: 3.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/0.4038, allocations: 5.032 MB / 475.6 MB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03308/0.437, allocations: 16.22 MB / 491.9 MB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007654/0.4447, allocations: 6.798 MB / 498.7 MB, free: 6.344 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004093/0.4488, allocations: 2.618 MB / 0.4895 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003605/0.4492, allocations: 131.1 kB / 0.4897 GB, free: 3.582 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.161e-05/0.4493, allocations: 64.56 kB / 0.4897 GB, free: 3.508 MB / 414.1 MB Notification: Performance of pre-optimization done (n=249): time 4.509e-06/0.4493, allocations: 0 / 0.4897 GB, free: 3.508 MB / 414.1 MB Notification: Performance of matching and sorting (n=256): time 0.02255/0.4718, allocations: 10.77 MB / 0.5002 GB, free: 8.496 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.612e-05/0.4719, allocations: 77.42 kB / 0.5003 GB, free: 8.406 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005015/0.477, allocations: 2.636 MB / 0.5029 GB, free: 5.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003265/0.4773, allocations: 73.69 kB / 0.5029 GB, free: 5.672 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001386/0.4787, allocations: 1.675 MB / 0.5046 GB, free: 3.98 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009444/0.4797, allocations: 0.887 MB / 0.5054 GB, free: 3.086 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009126/0.4806, allocations: 416.7 kB / 0.5058 GB, free: 2.672 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4807, allocations: 309.1 kB / 0.5061 GB, free: 2.367 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002178/0.4829, allocations: 1.34 MB / 0.5074 GB, free: 1.023 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002417/0.4853, allocations: 1.65 MB / 0.5091 GB, free: 15.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004581/0.4899, allocations: 3.076 MB / 0.5121 GB, free: 12.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.49, allocations: 7.938 kB / 0.5121 GB, free: 12.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=303) (initialization): time 0.007848/0.4978, allocations: 4.47 MB / 0.5164 GB, free: 7.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.4979, allocations: 8 kB / 0.5164 GB, free: 7.512 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-05/0.4979, allocations: 8 kB / 0.5164 GB, free: 7.504 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005319/0.5032, allocations: 1.647 MB / 0.5181 GB, free: 5.824 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001578/0.5048, allocations: 395.3 kB / 0.5184 GB, free: 5.438 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2414/0.7462, allocations: 25.74 MB / 0.5436 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.7484, allocations: 99.55 kB / 0.5437 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/0.7487, allocations: 73.55 kB / 0.5437 GB, free: 117 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.002374/0.7511, allocations: 1.417 MB / 0.5451 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006525/0.7518, allocations: 310.6 kB / 0.5454 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006178/0.7579, allocations: 4.385 MB / 0.5497 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.931e-05/0.758, allocations: 28 kB / 0.5497 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/0.758, allocations: 13.69 kB / 0.5497 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.758, allocations: 11.2 kB / 0.5497 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01307/0.7711, allocations: 8.785 MB / 0.5583 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.7712, allocations: 0 / 0.5583 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.7722, allocations: 284.6 kB / 0.5586 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004372/0.7766, allocations: 1.618 MB / 0.5602 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002083/0.7769, allocations: 63.58 kB / 0.5602 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01847/0.7953, allocations: 25.49 MB / 0.5851 GB, free: 83.54 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.7954, allocations: 0 / 0.5851 GB, free: 83.54 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00753/0.8029, allocations: 6.109 MB / 0.5911 GB, free: 77.49 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001694/0.8046, allocations: 0.6926 MB / 0.5918 GB, free: 76.84 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004392/0.8051, allocations: 59.98 kB / 0.5918 GB, free: 76.78 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.8064, allocations: 119.9 kB / 0.5919 GB, free: 76.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004511/0.8069, allocations: 217.6 kB / 0.5921 GB, free: 76.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.807, allocations: 63.98 kB / 0.5922 GB, free: 76.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002152/0.8092, allocations: 1.852 MB / 0.594 GB, free: 74.52 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8092, allocations: 0 / 0.594 GB, free: 74.52 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002956/0.8121, allocations: 0.9593 MB / 0.595 GB, free: 73.56 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.00744/0.8196, allocations: 6.812 MB / 0.6016 GB, free: 66.65 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005789/0.8254, allocations: 4.883 MB / 0.6064 GB, free: 61.63 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.8254, allocations: 0 / 0.6064 GB, free: 61.63 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003777/0.8292, allocations: 3.378 MB / 0.6097 GB, free: 58.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00384/0.8331, allocations: 0.9647 MB / 0.6106 GB, free: 57.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04294/0.8761, allocations: 32.01 MB / 0.6419 GB, free: 24.72 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002754/0.8788, allocations: 3.181 MB / 0.645 GB, free: 21.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001583/0.8805, allocations: 0.5806 MB / 0.6455 GB, free: 20.92 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/0.8819, allocations: 1.475 MB / 0.647 GB, free: 19.45 MB / 462.1 MB Notification: Performance of SimCode: time 6.21e-07/0.8819, allocations: 0 / 0.647 GB, free: 19.45 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1575/1.039, allocations: 91.22 MB / 0.7361 GB, free: 9.023 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.18/19.22, allocations: 3.625 kB / 0.7361 GB, free: 9.023 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe 2>&1)