Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_trunk_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.001391/0.001391, allocations: 117.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.001384/0.001384, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002077/0.002077, allocations: 68.12 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3102, allocations: 50.53 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.01297/0.3233, allocations: 10.59 MB / 419.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01422/0.3375, allocations: 6.378 MB / 425.7 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002846/0.3404, allocations: 39.81 kB / 425.8 MB, free: 484 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001965/0.3424, allocations: 491.9 kB / 426.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004699/0.3472, allocations: 0.8997 MB / 427.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006837/0.3541, allocations: 2.538 MB / 429.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005934/0.36, allocations: 3.481 MB / 433.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001454/0.3615, allocations: 0.7488 MB / 433.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00238/0.3639, allocations: 1.273 MB / 435.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002465/0.3664, allocations: 1.478 MB / 436.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006164/0.367, allocations: 328 kB / 437 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001267/0.3683, allocations: 0.5699 MB / 437.6 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007225/0.369, allocations: 0.736 MB / 438.3 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001768/0.3708, allocations: 1.4 MB / 439.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005259/0.376, allocations: 3.958 MB / 443.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.3761, allocations: 0 / 443.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3761, allocations: 0 / 443.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.411e-05/0.3762, allocations: 0 / 443.7 MB, free: 14.5 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.008581/0.3848, allocations: 3.162 MB / 446.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.3848, allocations: 12.03 kB / 446.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003835/0.3852, allocations: 278.6 kB / 447.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009299/0.3862, allocations: 319.1 kB / 447.4 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00262/0.3888, allocations: 1.402 MB / 448.8 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002572/0.3891, allocations: 245.5 kB / 449.1 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006005/0.3897, allocations: 235.8 kB / 449.3 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004114/0.3938, allocations: 2.173 MB / 451.5 MB, free: 6.477 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.033e-05/0.3939, allocations: 4 kB / 451.5 MB, free: 6.473 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001814/0.3941, allocations: 80 kB / 451.5 MB, free: 6.395 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-05/0.3941, allocations: 44 kB / 451.6 MB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004244/0.3984, allocations: 1.92 MB / 453.5 MB, free: 4.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/0.4128, allocations: 7.8 MB / 461.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003748/0.4166, allocations: 2.072 MB / 463.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003102/0.4197, allocations: 1.586 MB / 465 MB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/0.4198, allocations: 26 kB / 465 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.097e-05/0.4199, allocations: 60.56 kB / 465 MB, free: 8.605 MB / 382.1 MB Notification: Performance of pre-optimization done (n=208): time 4.208e-06/0.4199, allocations: 0 / 465 MB, free: 8.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=250): time 0.05338/0.4733, allocations: 14.18 MB / 479.2 MB, free: 10.26 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002474/0.4736, allocations: 393.8 kB / 479.6 MB, free: 9.789 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002483/0.4761, allocations: 1.523 MB / 481.1 MB, free: 8.258 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004043/0.4765, allocations: 77.64 kB / 481.2 MB, free: 8.176 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007104/0.4772, allocations: 0.837 MB / 482 MB, free: 7.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009308/0.4781, allocations: 0.8714 MB / 482.9 MB, free: 6.449 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007047/0.4789, allocations: 408.6 kB / 483.3 MB, free: 6.043 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.479, allocations: 309.1 kB / 483.6 MB, free: 5.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002237/0.4813, allocations: 0.9924 MB / 484.6 MB, free: 4.742 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002429/0.4837, allocations: 1.272 MB / 485.9 MB, free: 3.402 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.03456/0.5183, allocations: 9.425 MB / 495.3 MB, free: 9.852 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.5183, allocations: 0 / 495.3 MB, free: 9.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.006296/0.5246, allocations: 2.953 MB / 498.3 MB, free: 6.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.5247, allocations: 7.938 kB / 498.3 MB, free: 6.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.102e-05/0.5247, allocations: 11.98 kB / 498.3 MB, free: 6.816 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.5257, allocations: 352.9 kB / 498.6 MB, free: 6.453 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002769/0.5285, allocations: 0.55 MB / 499.2 MB, free: 5.902 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/0.539, allocations: 10.95 MB / 0.4982 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/0.5414, allocations: 115.9 kB / 0.4983 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000245/0.5417, allocations: 88.02 kB / 0.4984 GB, free: 9.918 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.001049/0.5427, allocations: 461.4 kB / 0.4988 GB, free: 9.457 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00052/0.5433, allocations: 222.6 kB / 0.499 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008914/0.5522, allocations: 3.469 MB / 0.5024 GB, free: 5.68 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.802e-05/0.5522, allocations: 24 kB / 0.5024 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/0.5523, allocations: 4 kB / 0.5024 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.898e-05/0.5523, allocations: 11.95 kB / 0.5024 GB, free: 5.641 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/0.5671, allocations: 6.274 MB / 0.5086 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.544e-05/0.5672, allocations: 4 kB / 0.5086 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/0.5694, allocations: 427.4 kB / 0.509 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00599/0.5754, allocations: 1.198 MB / 0.5102 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003831/0.5758, allocations: 59.98 kB / 0.5102 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02348/0.5993, allocations: 18.9 MB / 0.5287 GB, free: 9.375 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.942e-06/0.5993, allocations: 3.984 kB / 0.5287 GB, free: 9.371 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01162/0.611, allocations: 4.941 MB / 0.5335 GB, free: 4.309 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/0.6124, allocations: 0.5461 MB / 0.534 GB, free: 3.742 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003287/0.6127, allocations: 56.06 kB / 0.5341 GB, free: 3.688 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00188/0.6146, allocations: 135.9 kB / 0.5342 GB, free: 3.555 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005839/0.6152, allocations: 205.7 kB / 0.5344 GB, free: 3.352 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000158/0.6154, allocations: 75.97 kB / 0.5345 GB, free: 3.277 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001644/0.617, allocations: 1.041 MB / 0.5355 GB, free: 2.238 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.617, allocations: 0 / 0.5355 GB, free: 2.238 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002731/0.6198, allocations: 0.6952 MB / 0.5362 GB, free: 1.543 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.2248/0.8446, allocations: 5.64 MB / 0.5417 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005369/0.85, allocations: 3.367 MB / 0.545 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.8501, allocations: 0 / 0.545 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003333/0.8534, allocations: 2.614 MB / 0.5475 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.8556, allocations: 379.9 kB / 0.5479 GB, free: 120.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02759/0.8832, allocations: 19.6 MB / 0.567 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008716/0.8841, allocations: 1.561 MB / 0.5685 GB, free: 104.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001191/0.8853, allocations: 287.9 kB / 0.5688 GB, free: 104.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001051/0.8864, allocations: 0.9249 MB / 0.5697 GB, free: 103.2 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8864, allocations: 0 / 0.5697 GB, free: 103.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1366/1.023, allocations: 58.23 MB / 0.6266 GB, free: 45.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.04/18.07, allocations: 11.92 kB / 0.6266 GB, free: 45.45 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/ThreePhaseTransformerWithRectifier/ThreePhaseTransformerWithRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,capacitor1.v,capacitor2.v Variables in the result:time,capacitor1.v,capacitor2.v,pdissCopAvg.x[1],pdissCopAvg.x[2],pdissEddyAvg.x[1]