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.001294/0.001293, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001072/0.001072, allocations: 194.9 kB / 18.67 MB, free: 4.406 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.356/1.356, 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.001263/0.001263, allocations: 51.92 kB / 328.1 MB, free: 3.773 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.09218, allocations: 46.62 MB / 374.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse): time 0.1945/0.2867, allocations: 10.65 MB / 385.3 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007134/0.2939, allocations: 3.272 MB / 388.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00211/0.2961, allocations: 76.12 kB / 388.7 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001929/0.2981, allocations: 0.7175 MB / 389.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003371/0.3015, allocations: 1.176 MB / 390.6 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.3027, allocations: 499.2 kB / 391.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006612/0.3093, allocations: 5.289 MB / 396.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004897/0.3142, allocations: 4.117 MB / 400.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005415/0.3197, allocations: 2.385 MB / 402.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006381/0.3261, allocations: 2.753 MB / 405.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002544/0.3286, allocations: 0.6225 MB / 406.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003588/0.3322, allocations: 0.7014 MB / 406.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00319/0.3354, allocations: 1.633 MB / 408.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00637/0.3418, allocations: 2.764 MB / 411.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01281/0.3546, allocations: 8.421 MB / 419.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.848e-06/0.3547, allocations: 8 kB / 419.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.488e-06/0.3547, allocations: 7.922 kB / 419.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003607/0.3551, allocations: 0 / 419.8 MB, free: 2.723 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.01579/0.3709, allocations: 5.195 MB / 425 MB, free: 13.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.371, allocations: 9.156 kB / 425 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001764/0.3727, allocations: 0.5596 MB / 425.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001932/0.3747, allocations: 0.572 MB / 426.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005593/0.3803, allocations: 2.637 MB / 428.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.3805, allocations: 299.8 kB / 429 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005966/0.3811, allocations: 387.9 kB / 429.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009804/0.3909, allocations: 5.785 MB / 435.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.43e-05/0.391, allocations: 3.938 kB / 435.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003773/0.3914, allocations: 164 kB / 435.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002116/0.3916, allocations: 208 kB / 435.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007981/0.3996, allocations: 5.012 MB / 440.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02445/0.4241, allocations: 16.25 MB / 456.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006092/0.4302, allocations: 6.797 MB / 463.6 MB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003233/0.4335, allocations: 2.622 MB / 466.2 MB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002649/0.4337, allocations: 147 kB / 466.4 MB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/0.4338, allocations: 64.55 kB / 466.4 MB, free: 2.918 MB / 382.1 MB Notification: Performance of pre-optimization done (n=249): time 4.078e-06/0.4338, allocations: 0 / 466.4 MB, free: 2.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=256): time 0.01965/0.4535, allocations: 10.75 MB / 477.2 MB, free: 7.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.803e-05/0.4536, allocations: 77.42 kB / 477.3 MB, free: 7.828 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004058/0.4576, allocations: 2.636 MB / 479.9 MB, free: 5.172 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003369/0.458, allocations: 65.7 kB / 480 MB, free: 5.102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001301/0.4593, allocations: 1.683 MB / 481.6 MB, free: 3.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008413/0.4602, allocations: 0.8869 MB / 482.5 MB, free: 2.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006043/0.4608, allocations: 412.7 kB / 482.9 MB, free: 2.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.467e-05/0.4609, allocations: 305.1 kB / 483.2 MB, free: 1.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001879/0.4628, allocations: 1.34 MB / 484.6 MB, free: 464 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002043/0.4648, allocations: 1.651 MB / 486.2 MB, free: 14.7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003916/0.4687, allocations: 3.079 MB / 489.3 MB, free: 11.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.4688, allocations: 0 / 489.3 MB, free: 11.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=303) (initialization): time 0.00706/0.4758, allocations: 4.47 MB / 493.8 MB, free: 6.949 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.4759, allocations: 8 kB / 493.8 MB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.4759, allocations: 4 kB / 493.8 MB, free: 6.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005056/0.481, allocations: 1.655 MB / 495.4 MB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.4825, allocations: 387.5 kB / 495.8 MB, free: 4.871 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02441/0.5069, allocations: 25.75 MB / 0.5093 GB, free: 9.742 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002233/0.5092, allocations: 99.88 kB / 0.5094 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001884/0.5094, allocations: 72 kB / 0.5095 GB, free: 9.574 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.002331/0.5118, allocations: 1.415 MB / 0.5109 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006502/0.5124, allocations: 306.1 kB / 0.5112 GB, free: 7.848 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006804/0.5192, allocations: 4.387 MB / 0.5155 GB, free: 3.367 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.5193, allocations: 24 kB / 0.5155 GB, free: 3.344 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/0.5193, allocations: 8 kB / 0.5155 GB, free: 3.336 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.5193, allocations: 15.95 kB / 0.5155 GB, free: 3.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/0.533, allocations: 8.773 MB / 0.5241 GB, free: 10.44 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.5331, allocations: 0 / 0.5241 GB, free: 10.44 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.5342, allocations: 291.6 kB / 0.5244 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004791/0.539, allocations: 1.62 MB / 0.5259 GB, free: 8.504 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001789/0.5392, allocations: 59.98 kB / 0.526 GB, free: 8.445 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2116/0.7508, allocations: 25.51 MB / 0.5509 GB, free: 143.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.7508, allocations: 1.344 kB / 0.5509 GB, free: 143.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/0.7609, allocations: 6.113 MB / 0.5569 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002199/0.7631, allocations: 0.6881 MB / 0.5575 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004849/0.7636, allocations: 54.81 kB / 0.5576 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.765, allocations: 125.5 kB / 0.5577 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005684/0.7655, allocations: 213.1 kB / 0.5579 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.7657, allocations: 64.69 kB / 0.558 GB, free: 143.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002945/0.7687, allocations: 1.856 MB / 0.5598 GB, free: 142.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7687, allocations: 0 / 0.5598 GB, free: 142.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004011/0.7727, allocations: 0.9511 MB / 0.5607 GB, free: 142.4 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.0105/0.7832, allocations: 6.801 MB / 0.5674 GB, free: 139.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00689/0.7901, allocations: 4.888 MB / 0.5721 GB, free: 137.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.7902, allocations: 0 / 0.5721 GB, free: 137.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004212/0.7944, allocations: 3.378 MB / 0.5754 GB, free: 135.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004164/0.7986, allocations: 0.9553 MB / 0.5764 GB, free: 134.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04218/0.8408, allocations: 32.01 MB / 0.6076 GB, free: 110.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002398/0.8432, allocations: 3.177 MB / 0.6107 GB, free: 106.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001533/0.8448, allocations: 0.5716 MB / 0.6113 GB, free: 106.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001422/0.8462, allocations: 1.464 MB / 0.6127 GB, free: 104.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.493e-06/0.8462, allocations: 0 / 0.6127 GB, free: 104.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1347/0.9809, allocations: 91.21 MB / 0.7018 GB, free: 13.49 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.31/18.29, allocations: 11.84 kB / 0.7018 GB, free: 13.48 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)