Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.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.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",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.001508/0.001508, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.001802/0.001802, allocations: 195.9 kB / 18 MB, free: 4.965 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.353/1.353, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.001181, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2711, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.01083/0.282, allocations: 10.55 MB / 410.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.2933, allocations: 6.281 MB / 417.1 MB, free: 7.922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002296/0.2956, allocations: 35.88 kB / 417.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00173/0.2974, allocations: 491.8 kB / 417.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003712/0.3012, allocations: 0.9271 MB / 418.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006429/0.3076, allocations: 2.511 MB / 421 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005048/0.3127, allocations: 3.473 MB / 424.5 MB, free: 496 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001625/0.3143, allocations: 0.7488 MB / 425.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002502/0.3168, allocations: 1.293 MB / 426.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002441/0.3193, allocations: 1.467 MB / 428 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001336/0.3207, allocations: 328 kB / 428.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001975/0.3226, allocations: 0.5777 MB / 428.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001305/0.324, allocations: 0.7321 MB / 429.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002691/0.3267, allocations: 1.4 MB / 431 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005286/0.332, allocations: 3.934 MB / 435 MB, free: 5.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.332, allocations: 8 kB / 435 MB, free: 5.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.148e-06/0.332, allocations: 0 / 435 MB, free: 5.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.382e-05/0.3321, allocations: 3.938 kB / 435 MB, free: 5.93 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.009266/0.3414, allocations: 3.143 MB / 438.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.24e-05/0.3415, allocations: 12.03 kB / 438.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007672/0.3423, allocations: 274.6 kB / 438.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001032/0.3433, allocations: 291.2 kB / 438.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002832/0.3462, allocations: 1.39 MB / 440.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002289/0.3464, allocations: 237.5 kB / 440.3 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006482/0.3471, allocations: 239.8 kB / 440.6 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004245/0.3513, allocations: 2.177 MB / 442.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.472e-05/0.3514, allocations: 0 / 442.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001874/0.3516, allocations: 84 kB / 442.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.542e-05/0.3517, allocations: 51.98 kB / 442.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004021/0.3557, allocations: 1.916 MB / 444.8 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01333/0.369, allocations: 7.796 MB / 452.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003575/0.3727, allocations: 2.077 MB / 454.6 MB, free: 1.777 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002912/0.3756, allocations: 1.586 MB / 456.2 MB, free: 188 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001111/0.3757, allocations: 33.97 kB / 456.3 MB, free: 152 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.535e-05/0.3758, allocations: 68.5 kB / 456.3 MB, free: 76 kB / 366.1 MB Notification: Performance of pre-optimization done (n=208): time 3.958e-06/0.3758, allocations: 0 / 456.3 MB, free: 76 kB / 366.1 MB Notification: Performance of matching and sorting (n=250): time 0.05472/0.4305, allocations: 14.16 MB / 470.5 MB, free: 1.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001849/0.4308, allocations: 393.8 kB / 470.9 MB, free: 1.285 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002588/0.4334, allocations: 1.514 MB / 472.4 MB, free: 15.76 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004714/0.4339, allocations: 69.7 kB / 472.5 MB, free: 15.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000639/0.4345, allocations: 0.8369 MB / 473.3 MB, free: 14.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001027/0.4355, allocations: 0.8791 MB / 474.2 MB, free: 13.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001166/0.4367, allocations: 412.6 kB / 474.6 MB, free: 13.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.4368, allocations: 301.1 kB / 474.9 MB, free: 13.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002399/0.4392, allocations: 0.9963 MB / 475.9 MB, free: 12.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00258/0.4418, allocations: 1.26 MB / 477.1 MB, free: 10.92 MB / 398.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.03423/0.4761, allocations: 9.429 MB / 486.6 MB, free: 1.367 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.4761, allocations: 0 / 486.6 MB, free: 1.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.007095/0.4832, allocations: 2.953 MB / 489.5 MB, free: 14.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.4833, allocations: 4 kB / 489.5 MB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.574e-05/0.4834, allocations: 8.094 kB / 489.5 MB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/0.4844, allocations: 352.9 kB / 489.9 MB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/0.4871, allocations: 0.5539 MB / 490.4 MB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009849/0.497, allocations: 10.95 MB / 0.4896 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002426/0.4995, allocations: 119.9 kB / 0.4897 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004361/0.4999, allocations: 92.02 kB / 0.4898 GB, free: 1.43 MB / 414.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: transformer.winding13.i = transformer.I1Start[3] transformer.H[2] = transformer.HStart[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 9 (diode6.off,diode5.off,diode4.off,diode3.off,diode2.off,diode1.off,transformer.core3.asc,transformer.core2.asc,transformer.core1.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 247 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,6), (2,6), (2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.001489/0.5014, allocations: 472 kB / 0.4903 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007924/0.5022, allocations: 218.6 kB / 0.4905 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0088/0.511, allocations: 3.457 MB / 0.4939 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.964e-05/0.5111, allocations: 28 kB / 0.4939 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.211e-05/0.5111, allocations: 8.109 kB / 0.4939 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.011e-05/0.5112, allocations: 19.95 kB / 0.4939 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01506/0.5263, allocations: 6.262 MB / 0.5 GB, free: 6.742 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.486e-05/0.5263, allocations: 4 kB / 0.5 GB, free: 6.738 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/0.5286, allocations: 423.4 kB / 0.5004 GB, free: 6.324 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005839/0.5345, allocations: 1.205 MB / 0.5016 GB, free: 5.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004607/0.535, allocations: 63.97 kB / 0.5017 GB, free: 5.027 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02299/0.558, allocations: 18.88 MB / 0.5201 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.5581, allocations: 4.031 kB / 0.5201 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/0.5708, allocations: 4.941 MB / 0.5249 GB, free: 11.83 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001565/0.5724, allocations: 0.5385 MB / 0.5255 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007007/0.5731, allocations: 55.98 kB / 0.5255 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002359/0.5755, allocations: 135.8 kB / 0.5257 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006986/0.5763, allocations: 205.7 kB / 0.5258 GB, free: 10.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002923/0.5766, allocations: 67.98 kB / 0.5259 GB, free: 10.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001848/0.5784, allocations: 1.041 MB / 0.5269 GB, free: 9.777 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5784, allocations: 0 / 0.5269 GB, free: 9.777 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003722/0.5822, allocations: 0.6951 MB / 0.5276 GB, free: 9.082 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (transformer.core1.Hstat,transformer.core1.B,transformer.core2.Hstat,transformer.core2.B,transformer.core3.Hstat,transformer.core3.B,transformer.winding11.i,transformer.winding12.i,transformer.winding13.i,transformer.winding21.i,transformer.winding22.i,transformer.winding23.i,capacitor1.v,capacitor2.v,pdissStatAvg.x[1],pdissStatAvg.x[2],pdissEddyAvg.x[1],pdissEddyAvg.x[2],pdissCopAvg.x[1],pdissCopAvg.x[2],transformer.core3.MagRel,transformer.core2.MagRel,transformer.core1.MagRel) * Number of discrete variables: 9 (transformer.core1.asc,transformer.core2.asc,transformer.core3.asc,diode1.off,diode2.off,diode3.off,diode4.off,diode5.off,diode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(1,8), (1,8), (1,8), (2,6), (2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01341/0.5956, allocations: 5.654 MB / 0.5331 GB, free: 3.301 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2301/0.8257, allocations: 3.366 MB / 0.5364 GB, free: 132.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/0.8258, allocations: 5.062 kB / 0.5364 GB, free: 132.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005295/0.8311, allocations: 2.604 MB / 0.539 GB, free: 131.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00258/0.8337, allocations: 379.7 kB / 0.5393 GB, free: 131.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02901/0.8627, allocations: 19.55 MB / 0.5584 GB, free: 120.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009901/0.8638, allocations: 1.571 MB / 0.5599 GB, free: 119.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001355/0.8651, allocations: 291.8 kB / 0.5602 GB, free: 119 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/0.8662, allocations: 0.9132 MB / 0.5611 GB, free: 118.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.51e-07/0.8662, allocations: 0 / 0.5611 GB, free: 118.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09278/0.959, allocations: 58.1 MB / 0.6179 GB, free: 60.58 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.21/17.17, allocations: 15.98 kB / 0.6179 GB, free: 60.56 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1)