Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_4_1_0-beta_om_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 trunk/package.mo): time 0.001761/0.001761, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002079/0.002079, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.565/1.565, allocations: 227.7 MB / 247.2 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003114/0.003114, allocations: 63.89 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3373, allocations: 50.54 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.01356/0.3509, allocations: 10.59 MB / 419.7 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01329/0.3643, allocations: 6.37 MB / 426 MB, free: 344 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002449/0.3668, allocations: 39.81 kB / 426.1 MB, free: 304 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001893/0.3687, allocations: 496 kB / 426.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003865/0.3726, allocations: 0.8997 MB / 427.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00719/0.3798, allocations: 2.54 MB / 430 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006135/0.386, allocations: 3.483 MB / 433.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001599/0.3876, allocations: 0.7488 MB / 434.2 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002728/0.3904, allocations: 1.281 MB / 435.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002691/0.3931, allocations: 1.467 MB / 437 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008575/0.394, allocations: 328 kB / 437.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001709/0.3957, allocations: 0.5699 MB / 437.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009227/0.3966, allocations: 0.7399 MB / 438.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002174/0.3988, allocations: 1.404 MB / 440 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005485/0.4043, allocations: 3.946 MB / 444 MB, free: 14.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.4044, allocations: 0 / 444 MB, free: 14.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4044, allocations: 0 / 444 MB, free: 14.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001012/0.4045, allocations: 0 / 444 MB, free: 14.32 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: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.008806/0.4133, allocations: 3.162 MB / 447.1 MB, free: 11.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.4134, allocations: 16.92 kB / 447.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004261/0.4138, allocations: 278.6 kB / 447.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008981/0.4147, allocations: 319.1 kB / 447.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/0.4175, allocations: 1.402 MB / 449.1 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003368/0.4179, allocations: 241.5 kB / 449.4 MB, free: 8.781 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006228/0.4185, allocations: 239.8 kB / 449.6 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004474/0.423, allocations: 2.165 MB / 451.8 MB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.536e-05/0.4231, allocations: 4 kB / 451.8 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002041/0.4233, allocations: 84 kB / 451.8 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.32e-05/0.4233, allocations: 44 kB / 451.9 MB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004553/0.4279, allocations: 1.92 MB / 453.8 MB, free: 4.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01562/0.4435, allocations: 7.804 MB / 461.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004551/0.4481, allocations: 2.076 MB / 463.7 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003812/0.452, allocations: 1.578 MB / 465.3 MB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001566/0.4522, allocations: 33.98 kB / 465.3 MB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.535e-05/0.4523, allocations: 64.5 kB / 465.4 MB, free: 8.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=208): time 4.338e-06/0.4523, allocations: 0 / 465.4 MB, free: 8.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=250): time 0.05741/0.5097, allocations: 14.17 MB / 479.5 MB, free: 10.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003101/0.5101, allocations: 393.8 kB / 479.9 MB, free: 9.605 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002913/0.513, allocations: 1.523 MB / 481.4 MB, free: 8.074 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005219/0.5136, allocations: 73.7 kB / 481.5 MB, free: 7.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007781/0.5144, allocations: 0.837 MB / 482.4 MB, free: 7.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001286/0.5157, allocations: 0.8753 MB / 483.2 MB, free: 6.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008311/0.5165, allocations: 408.6 kB / 483.6 MB, free: 5.859 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.5167, allocations: 309.1 kB / 483.9 MB, free: 5.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002476/0.5192, allocations: 1 MB / 484.9 MB, free: 4.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002674/0.5219, allocations: 1.256 MB / 486.2 MB, free: 3.227 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.0359/0.5578, allocations: 9.433 MB / 495.6 MB, free: 9.668 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.5578, allocations: 7.875 kB / 495.6 MB, free: 9.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.007423/0.5653, allocations: 2.949 MB / 498.6 MB, free: 6.648 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.347e-05/0.5653, allocations: 7.938 kB / 498.6 MB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.079e-05/0.5654, allocations: 11.98 kB / 498.6 MB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.5665, allocations: 349 kB / 498.9 MB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003135/0.5696, allocations: 0.55 MB / 499.5 MB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/0.5817, allocations: 10.95 MB / 0.4985 GB, free: 9.934 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002911/0.5847, allocations: 119.9 kB / 0.4986 GB, free: 9.816 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000415/0.5852, allocations: 83.95 kB / 0.4987 GB, free: 9.734 MB / 430.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.00132/0.5865, allocations: 468.8 kB / 0.4991 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007683/0.5873, allocations: 222.6 kB / 0.4993 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009464/0.5967, allocations: 3.469 MB / 0.5027 GB, free: 5.492 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-05/0.5968, allocations: 24 kB / 0.5027 GB, free: 5.469 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.801e-05/0.5969, allocations: 8.125 kB / 0.5027 GB, free: 5.461 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.322e-05/0.5969, allocations: 19.94 kB / 0.5028 GB, free: 5.441 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01584/0.6127, allocations: 6.262 MB / 0.5089 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.883e-05/0.6128, allocations: 0 / 0.5089 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00235/0.6152, allocations: 431.4 kB / 0.5093 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00593/0.6211, allocations: 1.198 MB / 0.5105 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004458/0.6216, allocations: 59.97 kB / 0.5105 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02642/0.6481, allocations: 18.9 MB / 0.529 GB, free: 9.188 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.6481, allocations: 0 / 0.529 GB, free: 9.188 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01357/0.6617, allocations: 4.949 MB / 0.5338 GB, free: 4.117 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001468/0.6632, allocations: 0.5423 MB / 0.5343 GB, free: 3.555 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006341/0.6638, allocations: 59.98 kB / 0.5344 GB, free: 3.496 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002087/0.6659, allocations: 127.9 kB / 0.5345 GB, free: 3.371 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007456/0.6667, allocations: 201.7 kB / 0.5347 GB, free: 3.172 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/0.6669, allocations: 75.97 kB / 0.5348 GB, free: 3.098 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001905/0.6688, allocations: 1.049 MB / 0.5358 GB, free: 2.051 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6688, allocations: 0 / 0.5358 GB, free: 2.051 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003865/0.6727, allocations: 0.6913 MB / 0.5365 GB, free: 1.359 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.2342/0.9069, allocations: 5.637 MB / 0.542 GB, free: 123.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006154/0.9131, allocations: 3.363 MB / 0.5453 GB, free: 122 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-05/0.9132, allocations: 0 / 0.5453 GB, free: 122 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004659/0.9179, allocations: 2.611 MB / 0.5478 GB, free: 120.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002787/0.9207, allocations: 392.8 kB / 0.5482 GB, free: 120.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0343/0.955, allocations: 19.58 MB / 0.5673 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009778/0.9561, allocations: 1.561 MB / 0.5688 GB, free: 104 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001526/0.9576, allocations: 295.9 kB / 0.5691 GB, free: 103.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/0.9589, allocations: 0.9132 MB / 0.57 GB, free: 102.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.894e-06/0.9589, allocations: 7.938 kB / 0.57 GB, free: 102.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1494/1.108, allocations: 58.24 MB / 0.6269 GB, free: 45.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.01/18.12, allocations: 8.438 kB / 0.6269 GB, free: 45.07 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1)