Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001595/0.001598, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.104/2.104, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001193/0.001193, allocations: 89.8 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004001/0.0004002, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3367, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.01199/0.3487, allocations: 8.417 MB / 383.1 MB, free: 38.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01482/0.3636, allocations: 6.172 MB / 389.2 MB, free: 34.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002485/0.3662, allocations: 36.59 kB / 389.3 MB, free: 34.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002038/0.3683, allocations: 397.3 kB / 389.6 MB, free: 33.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004215/0.3725, allocations: 0.888 MB / 390.5 MB, free: 32.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007931/0.3805, allocations: 1.758 MB / 392.3 MB, free: 31.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005209/0.3857, allocations: 2.114 MB / 394.4 MB, free: 29.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001387/0.3872, allocations: 0.5886 MB / 395 MB, free: 28.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002446/0.3897, allocations: 1.032 MB / 396 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002775/0.3925, allocations: 1.21 MB / 397.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008856/0.3935, allocations: 148 kB / 397.4 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001939/0.3954, allocations: 375.6 kB / 397.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008717/0.3963, allocations: 0.5255 MB / 398.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009121/0.3973, allocations: 484.4 kB / 398.7 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00428/0.4016, allocations: 2.976 MB / 401.7 MB, free: 21.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4016, allocations: 0 / 401.7 MB, free: 21.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.787e-06/0.4016, allocations: 0 / 401.7 MB, free: 21.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001131/0.4018, allocations: 0 / 401.7 MB, free: 21.68 MB / 298.7 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.01069/0.4125, allocations: 2.662 MB / 404.4 MB, free: 18.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.4125, allocations: 8.031 kB / 404.4 MB, free: 18.95 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009148/0.4135, allocations: 282.4 kB / 404.7 MB, free: 18.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007703/0.4143, allocations: 280.7 kB / 404.9 MB, free: 18.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003214/0.4175, allocations: 1.299 MB / 406.2 MB, free: 17.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002504/0.4178, allocations: 240.9 kB / 406.5 MB, free: 16.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009705/0.4188, allocations: 231.9 kB / 406.7 MB, free: 16.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00624/0.425, allocations: 2.161 MB / 408.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.642e-05/0.4252, allocations: 0 / 408.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002875/0.4255, allocations: 83.98 kB / 408.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-05/0.4255, allocations: 52 kB / 409 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007115/0.4326, allocations: 1.943 MB / 410.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01911/0.4518, allocations: 7.884 MB / 418.8 MB, free: 4.105 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00589/0.4578, allocations: 2.104 MB / 420.9 MB, free: 1.973 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002106/0.458, allocations: 25.98 kB / 421 MB, free: 1.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.453e-05/0.4581, allocations: 60.56 kB / 421 MB, free: 1.883 MB / 298.7 MB Notification: Performance of pre-optimization done (n=208): time 5.34e-06/0.4581, allocations: 4 kB / 421 MB, free: 1.879 MB / 298.7 MB Notification: Performance of matching and sorting (n=250): time 0.1003/0.5584, allocations: 14.77 MB / 435.8 MB, free: 2.938 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002543/0.5588, allocations: 393.8 kB / 436.2 MB, free: 2.465 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003553/0.5623, allocations: 1.494 MB / 437.7 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005998/0.563, allocations: 77.69 kB / 437.7 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008153/0.5638, allocations: 0.7773 MB / 438.5 MB, free: 96 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001359/0.5652, allocations: 0.8394 MB / 439.4 MB, free: 15.24 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/0.5655, allocations: 51.88 kB / 439.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002663/0.5657, allocations: 403.6 kB / 439.8 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004149/0.5699, allocations: 1.008 MB / 440.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004619/0.5746, allocations: 1.26 MB / 442.1 MB, free: 12.44 MB / 330.7 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.05285/0.6275, allocations: 7.032 MB / 449.1 MB, free: 5.344 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.6275, allocations: 0 / 449.1 MB, free: 5.344 MB / 330.7 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.01173/0.6393, allocations: 2.867 MB / 452 MB, free: 2.414 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.6394, allocations: 15.94 kB / 452 MB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.672e-05/0.6394, allocations: 4 kB / 452 MB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001676/0.6411, allocations: 352.9 kB / 452.3 MB, free: 2.031 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005432/0.6466, allocations: 0.55 MB / 452.9 MB, free: 1.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01436/0.661, allocations: 10.1 MB / 463 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003769/0.6648, allocations: 140 kB / 463.1 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005237/0.6654, allocations: 79.97 kB / 463.2 MB, free: 6.359 MB / 346.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: transformer.H[1] = transformer.HStart[1] transformer.H[3] = transformer.HStart[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * 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 initialization (256): * Single equations (assignments): 244 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.001652/0.6671, allocations: 476 kB / 463.7 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008047/0.6679, allocations: 209.5 kB / 463.9 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01627/0.6842, allocations: 3.535 MB / 467.4 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-05/0.6843, allocations: 28 kB / 467.4 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.262e-05/0.6843, allocations: 4 kB / 467.4 MB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.458e-05/0.6844, allocations: 19.94 kB / 467.5 MB, free: 2.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02496/0.7094, allocations: 6.27 MB / 473.7 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.809e-05/0.7095, allocations: 4 kB / 473.7 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004301/0.7138, allocations: 435.4 kB / 474.2 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01116/0.725, allocations: 1.245 MB / 475.4 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005489/0.7256, allocations: 67.97 kB / 475.5 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03539/0.761, allocations: 17.67 MB / 493.1 MB, free: 6.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.761, allocations: 8.016 kB / 493.1 MB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02042/0.7815, allocations: 5.04 MB / 498.2 MB, free: 1.742 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00184/0.7834, allocations: 0.5295 MB / 498.7 MB, free: 1.191 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005514/0.7839, allocations: 56 kB / 498.8 MB, free: 1.137 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003453/0.7874, allocations: 155.9 kB / 498.9 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008845/0.7883, allocations: 197.7 kB / 499.1 MB, free: 0.7891 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/0.7886, allocations: 75.97 kB / 499.2 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002394/0.791, allocations: 1.029 MB / 0.4885 GB, free: 15.69 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.791, allocations: 0 / 0.4885 GB, free: 15.69 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004229/0.7953, allocations: 0.6992 MB / 0.4892 GB, free: 14.99 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 6 {1 8,1 8,1 8,2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0339/0.8292, allocations: 5.957 MB / 0.495 GB, free: 8.891 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0116/0.8409, allocations: 3.415 MB / 0.4983 GB, free: 5.348 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.8409, allocations: 0 / 0.4983 GB, free: 5.348 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007738/0.8487, allocations: 2.636 MB / 0.5009 GB, free: 2.59 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00335/0.8521, allocations: 323.5 kB / 0.5012 GB, free: 2.277 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.283/1.135, allocations: 8.731 MB / 0.5097 GB, free: 119.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001635/1.137, allocations: 1.612 MB / 0.5113 GB, free: 118.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002512/1.139, allocations: 0.9196 MB / 0.5122 GB, free: 118.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.132e-06/1.139, allocations: 0 / 0.5122 GB, free: 118.3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.434/5.574, allocations: 99.53 MB / 0.6094 GB, free: 26.05 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1)