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.001676/0.001676, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.001927/0.001927, allocations: 191.9 kB / 18.51 MB, free: 4.512 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.389/1.389, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001138/0.001138, allocations: 56.14 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07535/0.0765, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.01013/0.08667, allocations: 10.47 MB / 337.9 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009829/0.09653, allocations: 6.298 MB / 344.2 MB, free: 3.523 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.09834, allocations: 43.81 kB / 344.2 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001457/0.09985, allocations: 487.9 kB / 344.7 MB, free: 3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002465/0.1023, allocations: 0.8998 MB / 345.6 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004895/0.1072, allocations: 2.503 MB / 348.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003894/0.1111, allocations: 3.454 MB / 351.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001533/0.1127, allocations: 0.7488 MB / 352.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002345/0.1151, allocations: 1.269 MB / 353.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002533/0.1176, allocations: 1.467 MB / 355 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007339/0.1184, allocations: 332 kB / 355.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001479/0.1199, allocations: 0.566 MB / 355.9 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008661/0.1208, allocations: 0.7321 MB / 356.6 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002/0.1228, allocations: 1.404 MB / 358 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005187/0.128, allocations: 3.874 MB / 361.9 MB, free: 1.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.128, allocations: 3.938 kB / 361.9 MB, free: 1.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.128, allocations: 4 kB / 361.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.039e-05/0.1281, allocations: 0 / 361.9 MB, free: 1.672 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.01132/0.1394, allocations: 3.079 MB / 365 MB, free: 14.53 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.1395, allocations: 8.031 kB / 365 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005095/0.14, allocations: 282.5 kB / 365.3 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008016/0.1408, allocations: 273.8 kB / 365.6 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003261/0.1441, allocations: 1.35 MB / 366.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003047/0.1444, allocations: 245.4 kB / 367.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008404/0.1453, allocations: 243.8 kB / 367.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005617/0.1509, allocations: 2.158 MB / 369.5 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.724e-05/0.151, allocations: 3.938 kB / 369.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002834/0.1513, allocations: 87.98 kB / 369.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.008e-05/0.1514, allocations: 48 kB / 369.7 MB, free: 9.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006006/0.1574, allocations: 1.923 MB / 371.6 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1539/0.3113, allocations: 7.841 MB / 379.4 MB, free: 50.1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004045/0.3154, allocations: 2.075 MB / 381.5 MB, free: 49.97 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002094/0.3176, allocations: 1.229 MB / 382.7 MB, free: 49.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.463e-05/0.3177, allocations: 31.44 kB / 382.8 MB, free: 49.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/0.3177, allocations: 65.27 kB / 382.8 MB, free: 49.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=208): time 4.258e-06/0.3177, allocations: 0 / 382.8 MB, free: 49.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=250): time 0.05083/0.3686, allocations: 14.08 MB / 396.9 MB, free: 44.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.062e-05/0.3687, allocations: 398.5 kB / 397.3 MB, free: 44.38 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/0.3705, allocations: 1.5 MB / 398.8 MB, free: 43.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002761/0.3707, allocations: 72.89 kB / 398.9 MB, free: 43.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003909/0.3711, allocations: 0.8265 MB / 399.7 MB, free: 42.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005004/0.3716, allocations: 0.8312 MB / 400.5 MB, free: 42.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005772/0.3722, allocations: 409.7 kB / 400.9 MB, free: 41.81 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.133e-05/0.3723, allocations: 305.1 kB / 401.2 MB, free: 41.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001819/0.3741, allocations: 0.9893 MB / 402.2 MB, free: 40.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001858/0.376, allocations: 1.253 MB / 403.5 MB, free: 39.45 MB / 318.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.02985/0.4058, allocations: 9.393 MB / 412.9 MB, free: 29.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.4059, allocations: 4 kB / 412.9 MB, free: 29.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.005031/0.4109, allocations: 2.94 MB / 415.8 MB, free: 26.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.411, allocations: 11.94 kB / 415.8 MB, free: 26.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/0.411, allocations: 7.984 kB / 415.8 MB, free: 26.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008023/0.4118, allocations: 360.8 kB / 416.2 MB, free: 26.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002399/0.4142, allocations: 0.5511 MB / 416.7 MB, free: 26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006327/0.4205, allocations: 11.11 MB / 427.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002225/0.4228, allocations: 127.9 kB / 428 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/0.423, allocations: 88.72 kB / 428.1 MB, free: 13.88 MB / 318.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.0008904/0.4239, allocations: 466 kB / 428.5 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004583/0.4244, allocations: 209.5 kB / 428.7 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007309/0.4317, allocations: 3.453 MB / 432.2 MB, free: 9.672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.4317, allocations: 24 kB / 432.2 MB, free: 9.648 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.4317, allocations: 11.92 kB / 432.2 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.059e-05/0.4318, allocations: 15.95 kB / 432.2 MB, free: 9.621 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/0.4426, allocations: 6.177 MB / 438.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.799e-06/0.4426, allocations: 0 / 438.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00184/0.4445, allocations: 419.4 kB / 438.8 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005187/0.4497, allocations: 1.209 MB / 440 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002093/0.4499, allocations: 63.97 kB / 440.1 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0213/0.4712, allocations: 19.04 MB / 459.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4713, allocations: 0 / 459.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/0.4819, allocations: 4.906 MB / 464 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.483, allocations: 0.5294 MB / 464.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003139/0.4833, allocations: 56 kB / 464.6 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001863/0.4852, allocations: 135.9 kB / 464.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005068/0.4857, allocations: 193.8 kB / 464.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/0.4859, allocations: 83.73 kB / 465 MB, free: 7.387 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001362/0.4872, allocations: 1.041 MB / 466.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4873, allocations: 4 kB / 466.1 MB, free: 6.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00239/0.4897, allocations: 0.6952 MB / 466.8 MB, free: 5.656 MB / 350.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.01089/0.5006, allocations: 5.589 MB / 472.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.009433/0.51, allocations: 3.759 MB / 476.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.51, allocations: 8 kB / 476.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003937/0.514, allocations: 2.614 MB / 478.7 MB, free: 9.359 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00207/0.5161, allocations: 388.1 kB / 479.1 MB, free: 8.988 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03295/0.549, allocations: 21.7 MB / 0.4891 GB, free: 1.926 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/0.5502, allocations: 1.575 MB / 0.4906 GB, free: 324 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001325/0.5516, allocations: 295.8 kB / 0.4909 GB, free: 24 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001335/0.5529, allocations: 0.9147 MB / 0.4918 GB, free: 15.12 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5529, allocations: 0 / 0.4918 GB, free: 15.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2877/0.8406, allocations: 57.37 MB / 0.5478 GB, free: 127.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.95/21.79, allocations: 10.08 kB / 0.5478 GB, free: 127.7 MB / 414.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)