Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.FundamentalWave.Examples.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|converter_e.singlePhaseElectroMagneticConverter.1..Phi.re|converter_e.singlePhaseElectroMagneticConverter.2..Phi.im|loss_m.Phi.im|loss_m.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|converter_e.singlePhaseElectroMagneticConverter.1..Phi.re|converter_e.singlePhaseElectroMagneticConverter.2..Phi.im|loss_m.Phi.im|loss_m.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001032/0.001032, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001036/0.001036, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001167, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2534, allocations: 50.55 MB / 409.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.009047/0.2625, allocations: 7.844 MB / 417.1 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00504/0.2676, allocations: 2.479 MB / 419.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00105/0.2686, allocations: 55.81 kB / 419.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.2697, allocations: 460.9 kB / 420.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002381/0.2721, allocations: 0.8665 MB / 420.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008801/0.273, allocations: 401.5 kB / 421.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003364/0.2764, allocations: 3.238 MB / 424.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002812/0.2792, allocations: 2.907 MB / 427.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001596/0.2808, allocations: 1.425 MB / 428.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001828/0.2827, allocations: 1.697 MB / 430.6 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004318/0.2831, allocations: 360 kB / 431 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008323/0.2839, allocations: 495.8 kB / 431.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007559/0.2847, allocations: 0.9037 MB / 432.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002057/0.2868, allocations: 1.618 MB / 434 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004613/0.2914, allocations: 4.694 MB / 438.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2914, allocations: 0 / 438.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.2914, allocations: 0 / 438.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.351e-05/0.2915, allocations: 4 kB / 438.7 MB, free: 4.145 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.007559/0.2991, allocations: 3.644 MB / 442.3 MB, free: 448 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.2991, allocations: 12.03 kB / 442.3 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003842/0.303, allocations: 0.7468 MB / 443.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002908/0.3059, allocations: 1.843 MB / 444.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.3061, allocations: 201.7 kB / 445.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003839/0.3064, allocations: 268 kB / 445.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005427/0.3119, allocations: 3.607 MB / 449 MB, free: 9.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.937e-05/0.3119, allocations: 4 kB / 449 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002343/0.3122, allocations: 104 kB / 449.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001049/0.3123, allocations: 113.4 kB / 449.2 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00468/0.317, allocations: 3.093 MB / 452.3 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01444/0.3314, allocations: 10.23 MB / 462.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004298/0.3358, allocations: 4.565 MB / 467.1 MB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001291/0.3371, allocations: 0.9503 MB / 468 MB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003588/0.3407, allocations: 2.631 MB / 470.7 MB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.3407, allocations: 47.38 kB / 470.7 MB, free: 2.754 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 2.765e-06/0.3408, allocations: 3.938 kB / 470.7 MB, free: 2.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=104): time 0.005743/0.3465, allocations: 2.653 MB / 473.4 MB, free: 52 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.3466, allocations: 97.92 kB / 473.5 MB, free: 15.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/0.3484, allocations: 1.403 MB / 474.9 MB, free: 14.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.846e-05/0.3484, allocations: 49.64 kB / 474.9 MB, free: 14.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007143/0.3492, allocations: 1.168 MB / 476.1 MB, free: 13.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/0.3494, allocations: 366.7 kB / 476.4 MB, free: 12.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003097/0.3497, allocations: 210.9 kB / 476.6 MB, free: 12.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3498, allocations: 353.9 kB / 477 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008355/0.3507, allocations: 0.5725 MB / 477.6 MB, free: 11.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009998/0.3517, allocations: 0.8413 MB / 478.4 MB, free: 10.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001902/0.3536, allocations: 1.461 MB / 479.9 MB, free: 9.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.3536, allocations: 0 / 479.9 MB, free: 9.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003059/0.3567, allocations: 1.964 MB / 481.8 MB, free: 7.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.3567, allocations: 10.5 kB / 481.8 MB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.3567, allocations: 8 kB / 481.8 MB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009141/0.3577, allocations: 401.2 kB / 482.2 MB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007654/0.3584, allocations: 215.6 kB / 482.4 MB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007009/0.3655, allocations: 6.521 MB / 489 MB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.3665, allocations: 146.7 kB / 489.1 MB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.089e-05/0.3666, allocations: 48 kB / 489.2 MB, free: 15.65 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,19,100.0%), (2,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001609/0.3683, allocations: 0.872 MB / 490 MB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002933/0.3686, allocations: 142.3 kB / 490.2 MB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002759/0.3713, allocations: 1.656 MB / 491.8 MB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.3714, allocations: 16 kB / 491.8 MB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.3714, allocations: 8 kB / 491.8 MB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.3714, allocations: 3.984 kB / 491.8 MB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006163/0.3776, allocations: 3.918 MB / 495.8 MB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.3776, allocations: 4 kB / 495.8 MB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005571/0.3782, allocations: 128 kB / 495.9 MB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009883/0.3792, allocations: 405.3 kB / 496.3 MB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.691e-05/0.3792, allocations: 27.98 kB / 496.3 MB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007123/0.3864, allocations: 6.508 MB / 0.491 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3864, allocations: 3.938 kB / 0.491 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003822/0.3902, allocations: 2.485 MB / 0.4935 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004797/0.3907, allocations: 243.2 kB / 0.4937 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.3909, allocations: 28 kB / 0.4937 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007208/0.3916, allocations: 87.91 kB / 0.4938 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002423/0.3919, allocations: 104.6 kB / 0.4939 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.636e-05/0.3919, allocations: 31.92 kB / 0.4939 GB, free: 14.55 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00127/0.3932, allocations: 0.9834 MB / 0.4949 GB, free: 13.56 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3932, allocations: 3.938 kB / 0.4949 GB, free: 13.55 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00178/0.395, allocations: 0.6804 MB / 0.4956 GB, free: 12.87 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im,loss_m.Phi.re,loss_m.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,21,100.0%), (2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002947/0.3953, allocations: 151.1 kB / 0.4957 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002852/0.3982, allocations: 1.785 MB / 0.4975 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3982, allocations: 0 / 0.4975 GB, free: 10.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.3999, allocations: 1.126 MB / 0.4986 GB, free: 9.754 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/0.4012, allocations: 312.4 kB / 0.4989 GB, free: 9.449 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006833/0.4081, allocations: 4.583 MB / 0.5033 GB, free: 4.805 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001686/0.4098, allocations: 2.184 MB / 0.5055 GB, free: 2.586 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008742/0.4107, allocations: 343 kB / 0.5058 GB, free: 2.246 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.4109, allocations: 87.42 kB / 0.5059 GB, free: 2.16 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4109, allocations: 0 / 0.5059 GB, free: 2.16 MB / 430.1 MB Notification: Performance of Templates: time 0.03597/0.4469, allocations: 20.9 MB / 0.5263 GB, free: 13.46 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches