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: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|capacitor1.v|capacitor2.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|capacitor1.v|capacitor2.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001618/0.001618, allocations: 114.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002421/0.002421, allocations: 207.9 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.644/2.644, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002249/0.00225, allocations: 55.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4566/0.4588, allocations: 50.54 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.02156/0.4805, allocations: 10.59 MB / 420.5 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02306/0.5036, allocations: 6.379 MB / 426.9 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003421/0.5071, allocations: 39.81 kB / 426.9 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003497/0.5106, allocations: 485.2 kB / 427.4 MB, free: 68 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006692/0.5174, allocations: 0.9075 MB / 428.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01219/0.5297, allocations: 2.535 MB / 430.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009322/0.539, allocations: 3.465 MB / 434.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002385/0.5415, allocations: 0.7566 MB / 435.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003854/0.5454, allocations: 1.293 MB / 436.4 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004491/0.5499, allocations: 1.467 MB / 437.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001515/0.5515, allocations: 331.9 kB / 438.2 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002578/0.5541, allocations: 0.5777 MB / 438.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001323/0.5555, allocations: 0.7321 MB / 439.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002777/0.5583, allocations: 1.404 MB / 440.9 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007579/0.5659, allocations: 3.936 MB / 444.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/0.566, allocations: 0 / 444.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.566, allocations: 0 / 444.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001298/0.5661, allocations: 0 / 444.8 MB, free: 14.59 MB / 366.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.01492/0.5811, allocations: 3.087 MB / 447.9 MB, free: 11.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/0.5812, allocations: 15.97 kB / 447.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00145/0.5826, allocations: 305.6 kB / 448.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005429/0.5881, allocations: 1.397 MB / 449.6 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004649/0.5886, allocations: 233.5 kB / 449.8 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001411/0.59, allocations: 243.9 kB / 450.1 MB, free: 9.188 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008389/0.5984, allocations: 2.162 MB / 452.2 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.541e-05/0.5986, allocations: 3.938 kB / 452.2 MB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003675/0.599, allocations: 88 kB / 452.3 MB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.557e-05/0.599, allocations: 48 kB / 452.4 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009245/0.6083, allocations: 1.92 MB / 454.3 MB, free: 4.887 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02774/0.6361, allocations: 7.779 MB / 462.1 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007682/0.6439, allocations: 2.08 MB / 464.2 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006867/0.6508, allocations: 1.582 MB / 465.7 MB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003146/0.6512, allocations: 33.86 kB / 465.8 MB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.222e-05/0.6513, allocations: 68.55 kB / 465.8 MB, free: 9.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=208): time 7.624e-06/0.6513, allocations: 0 / 465.8 MB, free: 9.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=250): time 0.1216/0.773, allocations: 14.07 MB / 479.9 MB, free: 10.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002704/0.7733, allocations: 397.8 kB / 480.3 MB, free: 10.35 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004167/0.7775, allocations: 1.519 MB / 481.8 MB, free: 8.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007077/0.7782, allocations: 69.7 kB / 481.9 MB, free: 8.746 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001131/0.7794, allocations: 0.8276 MB / 482.7 MB, free: 7.906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/0.7811, allocations: 0.8393 MB / 483.6 MB, free: 7.055 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001299/0.7824, allocations: 412.5 kB / 484 MB, free: 6.645 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.7826, allocations: 305.1 kB / 484.3 MB, free: 6.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00466/0.7872, allocations: 0.9963 MB / 485.2 MB, free: 5.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004831/0.7921, allocations: 1.256 MB / 486.5 MB, free: 4.02 MB / 398.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.06874/0.8609, allocations: 9.425 MB / 495.9 MB, free: 10.47 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.078e-05/0.8611, allocations: 3.938 kB / 495.9 MB, free: 10.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.02025/0.8813, allocations: 2.944 MB / 498.9 MB, free: 7.457 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.391e-05/0.8814, allocations: 11.94 kB / 498.9 MB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-05/0.8815, allocations: 4 kB / 498.9 MB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00166/0.8832, allocations: 352.9 kB / 499.2 MB, free: 7.078 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006305/0.8895, allocations: 0.5461 MB / 499.8 MB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01945/0.909, allocations: 10.94 MB / 0.4987 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004087/0.9132, allocations: 131.9 kB / 0.4989 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007664/0.914, allocations: 83.95 kB / 0.499 GB, free: 10.55 MB / 430.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.002632/0.9166, allocations: 465.3 kB / 0.4994 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001446/0.9181, allocations: 213.5 kB / 0.4996 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0184/0.9366, allocations: 3.457 MB / 0.503 GB, free: 6.328 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.786e-05/0.9367, allocations: 35.98 kB / 0.503 GB, free: 6.293 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-05/0.9367, allocations: 4 kB / 0.503 GB, free: 6.289 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.374e-05/0.9368, allocations: 15.94 kB / 0.503 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02935/0.9662, allocations: 6.262 MB / 0.5091 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.193e-05/0.9663, allocations: 4 kB / 0.5092 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004996/0.9713, allocations: 427.4 kB / 0.5096 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01114/0.9826, allocations: 1.206 MB / 0.5107 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008274/0.9834, allocations: 63.97 kB / 0.5108 GB, free: 14.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04258/1.026, allocations: 18.87 MB / 0.5292 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.026, allocations: 4.031 kB / 0.5292 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02336/1.05, allocations: 4.932 MB / 0.534 GB, free: 4.973 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002338/1.052, allocations: 0.5334 MB / 0.5346 GB, free: 4.418 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/1.053, allocations: 55.98 kB / 0.5346 GB, free: 4.363 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004303/1.057, allocations: 135.8 kB / 0.5348 GB, free: 4.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00167/1.059, allocations: 201.8 kB / 0.5349 GB, free: 4.031 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007261/1.06, allocations: 67.92 kB / 0.535 GB, free: 3.965 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00386/1.064, allocations: 1.053 MB / 0.536 GB, free: 2.914 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.313e-06/1.064, allocations: 7.938 kB / 0.536 GB, free: 2.906 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006397/1.07, allocations: 0.6913 MB / 0.5367 GB, free: 2.215 MB / 462.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.001573/1.072, allocations: 258.2 kB / 0.537 GB, free: 1.953 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.3508/1.423, allocations: 3.353 MB / 0.5402 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.202e-05/1.423, allocations: 1.281 kB / 0.5402 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008893/1.432, allocations: 2.595 MB / 0.5428 GB, free: 124 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005129/1.437, allocations: 383.6 kB / 0.5431 GB, free: 124 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01791/1.455, allocations: 5.372 MB / 0.5484 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/1.457, allocations: 1.563 MB / 0.5499 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001646/1.458, allocations: 179.1 kB / 0.5501 GB, free: 121.1 MB / 462.1 MB Notification: Performance of SimCode: time 9.82e-07/1.458, allocations: 0 / 0.5501 GB, free: 121.1 MB / 462.1 MB Notification: Performance of Templates: time 0.1358/1.594, allocations: 97.34 MB / 0.6451 GB, free: 28.29 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/ThreePhaseTransformerWithRectifier/ThreePhaseTransformerWithRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches