Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_3_2_3_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.001425/0.001425, allocations: 110.6 kB / 17.73 MB, free: 5.301 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.001578/0.001578, allocations: 194.9 kB / 18.67 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.518/1.518, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 51.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1073, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.2535/0.3608, allocations: 10.46 MB / 385.1 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.3744, allocations: 6.307 MB / 391.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003592/0.378, allocations: 40.06 kB / 391.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002321/0.3805, allocations: 488.2 kB / 391.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005699/0.3862, allocations: 0.9249 MB / 392.9 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008392/0.3946, allocations: 2.506 MB / 395.4 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006497/0.4011, allocations: 3.472 MB / 398.9 MB, free: 72 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001667/0.4029, allocations: 0.7547 MB / 399.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00302/0.4059, allocations: 1.29 MB / 400.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00273/0.4086, allocations: 1.469 MB / 402.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000588/0.4092, allocations: 331.7 kB / 402.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001497/0.4107, allocations: 0.5685 MB / 403.3 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000913/0.4117, allocations: 0.7351 MB / 404 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002005/0.4137, allocations: 1.404 MB / 405.4 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006046/0.4198, allocations: 3.939 MB / 409.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.4198, allocations: 1.062 kB / 409.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4198, allocations: 0 / 409.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001236/0.4199, allocations: 0 / 409.3 MB, free: 9.629 MB / 334.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.01017/0.4301, allocations: 3.153 MB / 412.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.355e-05/0.4302, allocations: 9.906 kB / 412.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000474/0.4307, allocations: 280.6 kB / 412.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008047/0.4315, allocations: 287.5 kB / 413.1 MB, free: 7.113 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002739/0.4342, allocations: 1.388 MB / 414.4 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003015/0.4346, allocations: 243.5 kB / 414.7 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006224/0.4352, allocations: 245.1 kB / 414.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004515/0.4397, allocations: 2.166 MB / 417.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.245e-05/0.4398, allocations: 1.375 kB / 417.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001876/0.44, allocations: 87.23 kB / 417.2 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.869e-05/0.44, allocations: 46.75 kB / 417.2 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004537/0.4446, allocations: 1.92 MB / 419.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01395/0.4585, allocations: 7.788 MB / 426.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003532/0.4621, allocations: 2.081 MB / 429 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003015/0.4651, allocations: 1.598 MB / 430.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.726e-05/0.4652, allocations: 22 kB / 430.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.975e-05/0.4653, allocations: 72.48 kB / 430.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=208): time 3.516e-06/0.4653, allocations: 0 / 430.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=250): time 0.05621/0.5215, allocations: 14.16 MB / 444.9 MB, free: 9.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00024/0.5218, allocations: 401.8 kB / 445.3 MB, free: 8.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003134/0.525, allocations: 1.506 MB / 446.8 MB, free: 7.074 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004446/0.5254, allocations: 69.7 kB / 446.8 MB, free: 7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007864/0.5262, allocations: 0.833 MB / 447.7 MB, free: 6.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001101/0.5273, allocations: 0.8791 MB / 448.5 MB, free: 5.273 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000921/0.5283, allocations: 404.7 kB / 448.9 MB, free: 4.871 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.5284, allocations: 301.1 kB / 449.2 MB, free: 4.574 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00229/0.5307, allocations: 1 MB / 450.2 MB, free: 3.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002568/0.5333, allocations: 1.268 MB / 451.5 MB, free: 2.234 MB / 366.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.0344/0.5677, allocations: 9.421 MB / 460.9 MB, free: 8.684 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.385e-06/0.5677, allocations: 4 kB / 460.9 MB, free: 8.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.007336/0.5751, allocations: 2.953 MB / 463.9 MB, free: 5.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.5752, allocations: 11.94 kB / 463.9 MB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.307e-05/0.5752, allocations: 7.984 kB / 463.9 MB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.5762, allocations: 345.1 kB / 464.2 MB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002806/0.5791, allocations: 0.5578 MB / 464.8 MB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.5903, allocations: 10.94 MB / 475.7 MB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003202/0.5936, allocations: 128 kB / 475.9 MB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004774/0.5941, allocations: 83.95 kB / 475.9 MB, free: 8.75 MB / 398.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.001692/0.5958, allocations: 468.9 kB / 476.4 MB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001114/0.5969, allocations: 218.6 kB / 476.6 MB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009929/0.6068, allocations: 3.457 MB / 480.1 MB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.623e-05/0.6069, allocations: 24 kB / 480.1 MB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.621e-05/0.6069, allocations: 8 kB / 480.1 MB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.905e-05/0.607, allocations: 15.95 kB / 480.1 MB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/0.6225, allocations: 6.274 MB / 486.4 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.598e-05/0.6226, allocations: 128 / 486.4 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002174/0.6248, allocations: 431.4 kB / 486.8 MB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005713/0.6305, allocations: 1.194 MB / 488 MB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003358/0.6309, allocations: 59.97 kB / 488.1 MB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02288/0.6538, allocations: 18.91 MB / 0.4951 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.6538, allocations: 0 / 0.4951 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01235/0.6662, allocations: 4.945 MB / 0.4999 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/0.6676, allocations: 0.5423 MB / 0.5004 GB, free: 2.574 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006773/0.6683, allocations: 52 kB / 0.5005 GB, free: 2.523 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002267/0.6706, allocations: 135.9 kB / 0.5006 GB, free: 2.391 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005624/0.6712, allocations: 209.7 kB / 0.5008 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/0.6714, allocations: 67.98 kB / 0.5009 GB, free: 2.117 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001617/0.673, allocations: 1.041 MB / 0.5019 GB, free: 1.078 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.673, allocations: 0 / 0.5019 GB, free: 1.078 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003287/0.6763, allocations: 0.6913 MB / 0.5026 GB, free: 396 kB / 430.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.01152/0.6878, allocations: 5.637 MB / 0.5081 GB, free: 10.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006245/0.6941, allocations: 3.364 MB / 0.5114 GB, free: 7.129 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.6941, allocations: 4 kB / 0.5114 GB, free: 7.125 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003985/0.6981, allocations: 2.609 MB / 0.5139 GB, free: 4.395 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002608/0.7007, allocations: 390.4 kB / 0.5143 GB, free: 4.016 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03518/0.7359, allocations: 19.53 MB / 0.5334 GB, free: 116 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001439/0.7374, allocations: 1.565 MB / 0.5349 GB, free: 14.51 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001365/0.7388, allocations: 291.8 kB / 0.5352 GB, free: 14.22 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001418/0.7402, allocations: 0.9093 MB / 0.5361 GB, free: 13.31 MB / 478.1 MB Notification: Performance of SimCode: time 8.72e-07/0.7402, allocations: 3.938 kB / 0.5361 GB, free: 13.31 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3164/1.057, allocations: 58.1 MB / 0.5928 GB, free: 133.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.87/17.93, allocations: 17.33 kB / 0.5928 GB, free: 133 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1)