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.001594/0.001594, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001325/0.001325, allocations: 191.4 kB / 17.85 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.635/2.635, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 47.5 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1334, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.0216/0.1551, allocations: 10.56 MB / 360.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02248/0.1776, allocations: 6.274 MB / 367 MB, free: 3.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004029/0.1817, allocations: 39.81 kB / 367 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003392/0.1852, allocations: 487.9 kB / 367.5 MB, free: 2.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00694/0.1922, allocations: 0.9037 MB / 368.4 MB, free: 1.977 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2639/0.4561, allocations: 2.494 MB / 370.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007339/0.4635, allocations: 3.454 MB / 374.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002737/0.4663, allocations: 0.7482 MB / 375.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004688/0.471, allocations: 1.275 MB / 376.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004883/0.4759, allocations: 1.465 MB / 377.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002118/0.4781, allocations: 327.6 kB / 378.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003648/0.4817, allocations: 0.5716 MB / 378.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002087/0.4839, allocations: 0.7303 MB / 379.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005876/0.4898, allocations: 1.399 MB / 380.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0129/0.5027, allocations: 3.884 MB / 384.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.346e-05/0.5028, allocations: 3.938 kB / 384.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.5029, allocations: 1.188 kB / 384.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002338/0.5031, allocations: 4.656 kB / 384.8 MB, free: 7.727 MB / 302.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.01842/0.5216, allocations: 3.068 MB / 387.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.776e-05/0.5217, allocations: 9.906 kB / 387.9 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001197/0.5229, allocations: 279.2 kB / 388.1 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001438/0.5244, allocations: 277.3 kB / 388.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004708/0.5291, allocations: 1.353 MB / 389.7 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004288/0.5295, allocations: 241.9 kB / 390 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00144/0.531, allocations: 252 kB / 390.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008197/0.5392, allocations: 2.166 MB / 392.4 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.981e-05/0.5394, allocations: 6.25 kB / 392.4 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004515/0.5399, allocations: 81.91 kB / 392.5 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.269e-05/0.5399, allocations: 46.84 kB / 392.5 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007911/0.5479, allocations: 1.917 MB / 394.4 MB, free: 2.164 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0268/0.5747, allocations: 7.835 MB / 402.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007834/0.5826, allocations: 2.076 MB / 404.4 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004714/0.5874, allocations: 1.231 MB / 405.6 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002544/0.5877, allocations: 33.05 kB / 405.6 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001082/0.5878, allocations: 74.48 kB / 405.7 MB, free: 9.086 MB / 318.1 MB Notification: Performance of pre-optimization done (n=208): time 1.089e-05/0.5879, allocations: 0 / 405.7 MB, free: 9.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=250): time 0.08057/0.6685, allocations: 14.06 MB / 419.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002023/0.6687, allocations: 389.8 kB / 420.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003096/0.6718, allocations: 1.514 MB / 421.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005246/0.6724, allocations: 69.7 kB / 421.7 MB, free: 8.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008209/0.6732, allocations: 0.8266 MB / 422.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001164/0.6744, allocations: 0.8336 MB / 423.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001385/0.6758, allocations: 415.9 kB / 423.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.676, allocations: 305.1 kB / 424.1 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003745/0.6797, allocations: 0.9885 MB / 425.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00412/0.6839, allocations: 1.245 MB / 426.3 MB, free: 4.199 MB / 334.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.06597/0.7499, allocations: 9.41 MB / 435.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.534e-05/0.7499, allocations: 0 / 435.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.01385/0.7638, allocations: 2.938 MB / 438.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.7639, allocations: 4 kB / 438.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.634e-05/0.764, allocations: 16.08 kB / 438.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002165/0.7662, allocations: 353.8 kB / 439 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006072/0.7723, allocations: 0.55 MB / 439.6 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01727/0.7896, allocations: 11.11 MB / 450.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004701/0.7944, allocations: 127.9 kB / 450.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007395/0.7952, allocations: 75.97 kB / 450.9 MB, free: 10.76 MB / 366.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.winding12.i = transformer.I1Start[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 (256): * Single equations (assignments): 244 * 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,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.002309/0.7975, allocations: 470 kB / 451.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001324/0.7989, allocations: 205.6 kB / 451.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01795/0.8168, allocations: 3.463 MB / 455 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.177e-05/0.8169, allocations: 24 kB / 455 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-05/0.817, allocations: 4 kB / 455 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.852e-05/0.8171, allocations: 19.95 kB / 455.1 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02827/0.8454, allocations: 6.168 MB / 461.2 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.971e-05/0.8455, allocations: 4.125 kB / 461.2 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004513/0.85, allocations: 423.7 kB / 461.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01152/0.8616, allocations: 1.217 MB / 462.9 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008168/0.8624, allocations: 63.91 kB / 462.9 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04286/0.9053, allocations: 19.03 MB / 481.9 MB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.139e-05/0.9054, allocations: 8.062 kB / 482 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0231/0.9285, allocations: 4.896 MB / 486.9 MB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002412/0.931, allocations: 0.5295 MB / 487.4 MB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001165/0.9322, allocations: 59.94 kB / 487.4 MB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004377/0.9366, allocations: 135.8 kB / 487.6 MB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00119/0.9378, allocations: 201.8 kB / 487.8 MB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004524/0.9383, allocations: 75.97 kB / 487.8 MB, free: 4.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003261/0.9416, allocations: 1.041 MB / 488.9 MB, free: 3.273 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.9416, allocations: 0 / 488.9 MB, free: 3.273 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006224/0.9479, allocations: 0.6953 MB / 489.6 MB, free: 2.578 MB / 398.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 (202): * Single equations (assignments): 193 * 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,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02371/0.9716, allocations: 5.62 MB / 495.2 MB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.02134/0.993, allocations: 3.751 MB / 499 MB, free: 8.961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.096e-05/0.9931, allocations: 4.375 kB / 499 MB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008254/1.001, allocations: 2.615 MB / 0.4898 GB, free: 6.223 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005218/1.007, allocations: 394.1 kB / 0.4902 GB, free: 5.848 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07407/1.081, allocations: 21.7 MB / 0.5114 GB, free: 14.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002393/1.083, allocations: 1.561 MB / 0.5129 GB, free: 13.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003169/1.086, allocations: 295.8 kB / 0.5132 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002865/1.089, allocations: 0.9132 MB / 0.5141 GB, free: 11.96 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/1.089, allocations: 0 / 0.5141 GB, free: 11.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.438/1.527, allocations: 57.36 MB / 0.5701 GB, free: 128.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.67/22.2, allocations: 24.12 kB / 0.5701 GB, free: 128.8 MB / 446.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)