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.001171/0.001171, allocations: 98.81 kB / 16.95 MB, free: 6.449 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.001627/0.001627, allocations: 183.6 kB / 17.84 MB, free: 6.004 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.695/1.695, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004952/0.0004953, allocations: 12 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1059, allocations: 47.58 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.009537/0.1154, allocations: 9.197 MB / 337.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01125/0.1267, allocations: 6.084 MB / 343.7 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002298/0.1291, allocations: 43.81 kB / 343.8 MB, free: 4.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.1308, allocations: 361.4 kB / 344.1 MB, free: 4.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003482/0.1343, allocations: 0.7411 MB / 344.9 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00616/0.1405, allocations: 1.817 MB / 346.7 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005879/0.1464, allocations: 3.141 MB / 349.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001906/0.1483, allocations: 0.5886 MB / 350.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002385/0.1507, allocations: 1.043 MB / 351.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002962/0.1537, allocations: 1.249 MB / 352.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001078/0.1548, allocations: 148 kB / 352.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00178/0.1566, allocations: 391.5 kB / 353.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001084/0.1577, allocations: 0.537 MB / 353.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009464/0.1586, allocations: 480.4 kB / 354.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003088/0.1617, allocations: 2.983 MB / 357.2 MB, free: 7.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/0.1618, allocations: 3.984 kB / 357.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1618, allocations: 0 / 357.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.633e-05/0.1618, allocations: 0 / 357.2 MB, free: 7.062 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.006332/0.1682, allocations: 2.674 MB / 359.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.1682, allocations: 8.031 kB / 359.9 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004678/0.1687, allocations: 274.4 kB / 360.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000464/0.1692, allocations: 280.7 kB / 360.5 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.1713, allocations: 1.295 MB / 361.8 MB, free: 2.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.1715, allocations: 241 kB / 362 MB, free: 2.164 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005158/0.172, allocations: 239.7 kB / 362.2 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003889/0.1759, allocations: 2.169 MB / 364.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.11e-05/0.176, allocations: 7.844 kB / 364.4 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001785/0.1762, allocations: 84 kB / 364.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-05/0.1762, allocations: 48 kB / 364.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003784/0.18, allocations: 1.947 MB / 366.5 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01213/0.1922, allocations: 7.884 MB / 374.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003187/0.1954, allocations: 2.1 MB / 376.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001936/0.1974, allocations: 1.243 MB / 377.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.1975, allocations: 33.92 kB / 377.7 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.371e-05/0.1975, allocations: 60.5 kB / 377.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of pre-optimization done (n=208): time 5.37e-06/0.1976, allocations: 4 kB / 377.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=250): time 0.2565/0.4541, allocations: 14.77 MB / 392.6 MB, free: 47.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.4543, allocations: 392.5 kB / 393 MB, free: 46.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001892/0.4562, allocations: 1.49 MB / 394.4 MB, free: 46.37 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002212/0.4564, allocations: 74.55 kB / 394.5 MB, free: 46.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004252/0.4568, allocations: 0.8185 MB / 395.3 MB, free: 45.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005298/0.4574, allocations: 0.8359 MB / 396.2 MB, free: 45.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.4575, allocations: 55.84 kB / 396.2 MB, free: 44.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.4576, allocations: 391 kB / 396.6 MB, free: 44.6 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/0.4594, allocations: 1.013 MB / 397.6 MB, free: 44.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00192/0.4613, allocations: 1.275 MB / 398.9 MB, free: 43.33 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.02498/0.4863, allocations: 7.474 MB / 406.4 MB, free: 36.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.4863, allocations: 7.672 kB / 406.4 MB, free: 36.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.005122/0.4915, allocations: 2.966 MB / 409.3 MB, free: 33.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.4915, allocations: 4 kB / 409.3 MB, free: 33.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.849e-05/0.4915, allocations: 11.92 kB / 409.4 MB, free: 33.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008498/0.4924, allocations: 357.1 kB / 409.7 MB, free: 33.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002231/0.4946, allocations: 0.5539 MB / 410.3 MB, free: 32.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006836/0.5015, allocations: 10.02 MB / 420.3 MB, free: 22.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002331/0.5038, allocations: 146.1 kB / 420.4 MB, free: 21.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003668/0.5042, allocations: 83.94 kB / 420.5 MB, free: 21.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 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.001525/0.5058, allocations: 473.9 kB / 421 MB, free: 21.4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009174/0.5067, allocations: 205.6 kB / 421.2 MB, free: 21.2 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007525/0.5142, allocations: 3.532 MB / 424.7 MB, free: 17.58 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/0.5143, allocations: 28 kB / 424.7 MB, free: 17.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/0.5143, allocations: 4 kB / 424.7 MB, free: 17.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.181e-05/0.5143, allocations: 15.94 kB / 424.7 MB, free: 17.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.5262, allocations: 6.264 MB / 431 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.5263, allocations: 4 kB / 431 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/0.5281, allocations: 437.9 kB / 431.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005165/0.5333, allocations: 1.263 MB / 432.7 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000232/0.5335, allocations: 63.97 kB / 432.8 MB, free: 9.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0194/0.5529, allocations: 17.39 MB / 450.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.553, allocations: 4.031 kB / 450.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01243/0.5654, allocations: 5.017 MB / 455.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/0.567, allocations: 0.5295 MB / 455.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008491/0.5679, allocations: 63.98 kB / 455.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002271/0.5702, allocations: 147.9 kB / 455.9 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006524/0.5708, allocations: 201.8 kB / 456.1 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002367/0.5711, allocations: 71.98 kB / 456.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002106/0.5732, allocations: 1.029 MB / 457.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5732, allocations: 384 / 457.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003737/0.577, allocations: 0.6953 MB / 457.9 MB, free: 14.98 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 (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.01207/0.5891, allocations: 5.715 MB / 463.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006917/0.596, allocations: 3.406 MB / 467 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.5961, allocations: 8 kB / 467 MB, free: 5.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004423/0.6005, allocations: 2.628 MB / 469.7 MB, free: 2.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003234/0.6037, allocations: 366.5 kB / 470 MB, free: 2.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03537/0.6391, allocations: 15.96 MB / 486 MB, free: 1.695 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002034/0.6412, allocations: 1.568 MB / 487.5 MB, free: 96 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002492/0.6438, allocations: 295.9 kB / 487.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001896/0.6457, allocations: 0.9053 MB / 488.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.462e-06/0.6457, allocations: 0 / 488.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.292/0.9377, allocations: 53.23 MB / 0.5293 GB, free: 129.1 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/0.9379, allocations: 258.9 kB / 0.5295 GB, free: 128.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.913/4.851, allocations: 0 / 0.5295 GB, free: 128.8 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1) Environment - environmentSimulation: