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.001024/0.001024, allocations: 105.3 kB / 17.58 MB, free: 5.559 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.001111/0.001111, allocations: 192 kB / 18.51 MB, free: 4.641 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.343/1.343, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.00206/0.002061, allocations: 52.25 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1202, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse): time 0.02131/0.1415, allocations: 10.64 MB / 338 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01028/0.1519, allocations: 3.272 MB / 341.3 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002371/0.1544, allocations: 71.62 kB / 341.4 MB, free: 6.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003502/0.1579, allocations: 0.7021 MB / 342.1 MB, free: 5.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005382/0.1633, allocations: 1.138 MB / 343.2 MB, free: 4.461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001847/0.1652, allocations: 499.4 kB / 343.7 MB, free: 3.973 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009322/0.1745, allocations: 5.261 MB / 349 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007593/0.1821, allocations: 4.12 MB / 353.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006837/0.189, allocations: 2.365 MB / 355.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006448/0.1955, allocations: 2.752 MB / 358.2 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002284/0.1978, allocations: 0.6211 MB / 358.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003017/0.2009, allocations: 0.703 MB / 359.5 MB, free: 4.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003336/0.2042, allocations: 1.636 MB / 361.2 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007373/0.2116, allocations: 2.766 MB / 363.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01409/0.2258, allocations: 8.331 MB / 372.3 MB, free: 7.273 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.2258, allocations: 0 / 372.3 MB, free: 7.273 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2258, allocations: 0 / 372.3 MB, free: 7.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002169/0.2261, allocations: 0 / 372.3 MB, free: 7.273 MB / 318.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.01979/0.2459, allocations: 5.087 MB / 377.3 MB, free: 2.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.246, allocations: 12.03 kB / 377.4 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00225/0.2482, allocations: 0.5556 MB / 377.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003742/0.252, allocations: 0.5421 MB / 378.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1633/0.4153, allocations: 2.601 MB / 381.1 MB, free: 48.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/0.4156, allocations: 290 kB / 381.3 MB, free: 48.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008127/0.4164, allocations: 389.5 kB / 381.7 MB, free: 48.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01028/0.4267, allocations: 5.784 MB / 387.5 MB, free: 46.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.206e-05/0.4268, allocations: 5.188 kB / 387.5 MB, free: 46.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003362/0.4272, allocations: 166 kB / 387.7 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002005/0.4274, allocations: 207.1 kB / 387.9 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00802/0.4354, allocations: 5.018 MB / 392.9 MB, free: 44.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01971/0.4551, allocations: 16.39 MB / 409.3 MB, free: 30.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004473/0.4596, allocations: 6.82 MB / 416.1 MB, free: 23.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002779/0.4624, allocations: 2.638 MB / 418.7 MB, free: 20.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002427/0.4627, allocations: 143.1 kB / 418.9 MB, free: 20.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.4628, allocations: 60.5 kB / 418.9 MB, free: 20.72 MB / 318.1 MB Notification: Performance of pre-optimization done (n=249): time 4.058e-06/0.4628, allocations: 0 / 418.9 MB, free: 20.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=256): time 0.01635/0.4791, allocations: 10.7 MB / 429.6 MB, free: 9.781 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/0.4792, allocations: 81.36 kB / 429.7 MB, free: 9.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002897/0.4821, allocations: 2.64 MB / 432.4 MB, free: 7.027 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001552/0.4822, allocations: 65.7 kB / 432.4 MB, free: 6.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006892/0.4829, allocations: 1.636 MB / 434.1 MB, free: 5.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004132/0.4834, allocations: 0.8379 MB / 434.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005199/0.4839, allocations: 416.6 kB / 435.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.253e-05/0.4839, allocations: 305.1 kB / 435.6 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.4855, allocations: 1.339 MB / 436.9 MB, free: 2.418 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001665/0.4872, allocations: 1.647 MB / 438.6 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003982/0.4912, allocations: 3.086 MB / 441.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.4912, allocations: 0 / 441.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=303) (initialization): time 0.007153/0.4984, allocations: 4.457 MB / 446.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.4984, allocations: 4 kB / 446.1 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.4984, allocations: 8 kB / 446.1 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005127/0.5036, allocations: 1.659 MB / 447.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001556/0.5051, allocations: 387.5 kB / 448.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02573/0.5309, allocations: 25.74 MB / 473.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/0.5329, allocations: 103.8 kB / 474 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003186/0.5333, allocations: 72 kB / 474.1 MB, free: 11.56 MB / 366.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.002379/0.5357, allocations: 1.411 MB / 475.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007132/0.5364, allocations: 292.6 kB / 475.8 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00754/0.5439, allocations: 4.383 MB / 480.2 MB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.951e-05/0.544, allocations: 24 kB / 480.2 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.051e-05/0.544, allocations: 12 kB / 480.2 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-05/0.544, allocations: 11.95 kB / 480.2 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01474/0.5588, allocations: 8.879 MB / 489.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.465e-06/0.5588, allocations: 0 / 489.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.56, allocations: 291.6 kB / 489.4 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005305/0.5654, allocations: 1.62 MB / 491 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003163/0.5657, allocations: 59.98 kB / 491.1 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02592/0.5917, allocations: 25.51 MB / 0.5045 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5917, allocations: 0 / 0.5045 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009625/0.6013, allocations: 6.088 MB / 0.5104 GB, free: 9.312 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/0.6028, allocations: 0.6771 MB / 0.5111 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005529/0.6034, allocations: 55.98 kB / 0.5111 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/0.6049, allocations: 119.9 kB / 0.5112 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005062/0.6055, allocations: 213.6 kB / 0.5114 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001536/0.6056, allocations: 67.98 kB / 0.5115 GB, free: 8.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002903/0.6085, allocations: 1.856 MB / 0.5133 GB, free: 6.301 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6085, allocations: 0 / 0.5133 GB, free: 6.301 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003548/0.6121, allocations: 0.9503 MB / 0.5143 GB, free: 5.352 MB / 414.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.01034/0.6225, allocations: 6.801 MB / 0.5209 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0126/0.6351, allocations: 6.961 MB / 0.5277 GB, free: 7.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.6351, allocations: 4.188 kB / 0.5277 GB, free: 7.336 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004855/0.64, allocations: 3.358 MB / 0.531 GB, free: 3.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00438/0.6444, allocations: 0.9585 MB / 0.5319 GB, free: 2.883 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1983/0.8427, allocations: 36.99 MB / 0.568 GB, free: 130.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002327/0.8451, allocations: 3.173 MB / 0.5711 GB, free: 127.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001515/0.8466, allocations: 0.5712 MB / 0.5717 GB, free: 127.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/0.848, allocations: 1.472 MB / 0.5731 GB, free: 126 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.848, allocations: 0 / 0.5731 GB, free: 126 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1557/1.004, allocations: 92.49 MB / 0.6635 GB, free: 34.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/14.17, allocations: 7.938 kB / 0.6635 GB, free: 34.26 MB / 430.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)