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.001111/0.001111, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001195/0.001195, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.45 kB / 307.1 MB, free: 492 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09113, allocations: 50.52 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.01063/0.1018, allocations: 10.59 MB / 368.2 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1658/0.2676, allocations: 6.359 MB / 374.5 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001643/0.2693, allocations: 42.06 kB / 374.6 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.2704, allocations: 488.3 kB / 375.1 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002161/0.2726, allocations: 0.9036 MB / 376 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005572/0.2782, allocations: 2.543 MB / 378.5 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003494/0.2817, allocations: 3.451 MB / 381.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000889/0.2826, allocations: 0.7592 MB / 382.7 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001594/0.2842, allocations: 1.275 MB / 384 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.2858, allocations: 1.468 MB / 385.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004833/0.2863, allocations: 329.1 kB / 385.8 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.2874, allocations: 0.5686 MB / 386.3 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004952/0.2879, allocations: 0.736 MB / 387.1 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.289, allocations: 1.402 MB / 388.5 MB, free: 4.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002857/0.2919, allocations: 3.892 MB / 392.4 MB, free: 1.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2919, allocations: 0 / 392.4 MB, free: 1.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2919, allocations: 0 / 392.4 MB, free: 1.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.463e-05/0.292, allocations: 5.219 kB / 392.4 MB, free: 1.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.006931/0.2989, allocations: 3.091 MB / 395.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.299, allocations: 9.625 kB / 395.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00034/0.2993, allocations: 280.6 kB / 395.7 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008585/0.3002, allocations: 302.7 kB / 396 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002253/0.3024, allocations: 1.363 MB / 397.4 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.3027, allocations: 243.6 kB / 397.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005844/0.3033, allocations: 255.2 kB / 397.9 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003824/0.3071, allocations: 2.161 MB / 400.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.756e-05/0.3072, allocations: 3.219 kB / 400.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001844/0.3074, allocations: 82.62 kB / 400.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.117e-05/0.3074, allocations: 46.94 kB / 400.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003672/0.3111, allocations: 1.917 MB / 402.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01403/0.3251, allocations: 7.84 MB / 409.9 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003715/0.3289, allocations: 2.084 MB / 412 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002181/0.3311, allocations: 1.231 MB / 413.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.965e-05/0.3312, allocations: 29.14 kB / 413.3 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.288e-05/0.3313, allocations: 64.5 kB / 413.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of pre-optimization done (n=208): time 4.548e-06/0.3313, allocations: 0 / 413.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of matching and sorting (n=250): time 0.05244/0.3837, allocations: 14.09 MB / 427.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001806/0.3839, allocations: 389.8 kB / 427.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002061/0.386, allocations: 1.522 MB / 429.3 MB, free: 324 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001841/0.3862, allocations: 69.7 kB / 429.4 MB, free: 248 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006781/0.3869, allocations: 0.8377 MB / 430.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006461/0.3875, allocations: 0.833 MB / 431.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006693/0.3882, allocations: 404.6 kB / 431.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3883, allocations: 309 kB / 431.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/0.3904, allocations: 0.9885 MB / 432.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002295/0.3927, allocations: 1.252 MB / 434 MB, free: 11.6 MB / 350.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.03343/0.4262, allocations: 9.399 MB / 443.4 MB, free: 2.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.4262, allocations: 4 kB / 443.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.006026/0.4322, allocations: 2.939 MB / 446.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.4323, allocations: 8 kB / 446.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.509e-05/0.4323, allocations: 8 kB / 446.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009355/0.4333, allocations: 359.8 kB / 446.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003162/0.4364, allocations: 0.55 MB / 447.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009294/0.4457, allocations: 11.12 MB / 458.4 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002386/0.4482, allocations: 127.8 kB / 458.5 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001883/0.4484, allocations: 83.17 kB / 458.6 MB, free: 2.012 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.0009483/0.4493, allocations: 483 kB / 459.1 MB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004117/0.4497, allocations: 201.6 kB / 459.3 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008202/0.4579, allocations: 3.454 MB / 462.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.891e-05/0.458, allocations: 28 kB / 462.8 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.458, allocations: 8 kB / 462.8 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.168e-05/0.4581, allocations: 11.95 kB / 462.8 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01284/0.4709, allocations: 6.18 MB / 469 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.4709, allocations: 0 / 469 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/0.4729, allocations: 419.5 kB / 469.4 MB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005515/0.4784, allocations: 1.212 MB / 470.6 MB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002154/0.4787, allocations: 67.97 kB / 470.6 MB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02159/0.5003, allocations: 19.03 MB / 489.7 MB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.5003, allocations: 4.031 kB / 489.7 MB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01158/0.5119, allocations: 4.911 MB / 494.6 MB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/0.5133, allocations: 0.5333 MB / 495.1 MB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003565/0.5137, allocations: 56 kB / 495.2 MB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001939/0.5156, allocations: 135.9 kB / 495.3 MB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005783/0.5162, allocations: 193.8 kB / 495.5 MB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001637/0.5164, allocations: 75.97 kB / 495.6 MB, free: 11.47 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00152/0.5179, allocations: 1.045 MB / 496.6 MB, free: 10.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5179, allocations: 0 / 496.6 MB, free: 10.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002806/0.5207, allocations: 0.6952 MB / 497.3 MB, free: 9.73 MB / 414.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.011/0.5318, allocations: 5.614 MB / 0.4911 GB, free: 3.996 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00926/0.541, allocations: 3.755 MB / 0.4948 GB, free: 116 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.5411, allocations: 8 kB / 0.4948 GB, free: 108 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003871/0.545, allocations: 2.611 MB / 0.4974 GB, free: 13.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002222/0.5472, allocations: 387.8 kB / 0.4977 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03492/0.5821, allocations: 21.76 MB / 0.519 GB, free: 5.867 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001395/0.5836, allocations: 1.569 MB / 0.5205 GB, free: 4.262 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00169/0.5853, allocations: 295.9 kB / 0.5208 GB, free: 3.969 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001418/0.5867, allocations: 0.9132 MB / 0.5217 GB, free: 3.055 MB / 446.1 MB Notification: Performance of SimCode: time 1.011e-06/0.5867, allocations: 0 / 0.5217 GB, free: 3.055 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2526/0.8393, allocations: 57.5 MB / 0.5778 GB, free: 114.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.55, allocations: 4.438 kB / 0.5778 GB, free: 114.7 MB / 446.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)