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.001127/0.001127, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2625, allocations: 50.54 MB / 409.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.008304/0.2709, allocations: 7.867 MB / 417.1 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00451/0.2754, allocations: 2.472 MB / 419.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008428/0.2763, allocations: 63.69 kB / 419.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009001/0.2772, allocations: 444.9 kB / 420.1 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002066/0.2793, allocations: 0.8431 MB / 420.9 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008827/0.2802, allocations: 402.7 kB / 421.3 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003485/0.2837, allocations: 3.249 MB / 424.6 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002833/0.2865, allocations: 2.899 MB / 427.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001745/0.2883, allocations: 1.414 MB / 428.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00219/0.2905, allocations: 1.697 MB / 430.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005014/0.291, allocations: 360 kB / 430.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009995/0.292, allocations: 491.9 kB / 431.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007506/0.2928, allocations: 0.9037 MB / 432.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001697/0.2945, allocations: 1.618 MB / 433.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004591/0.2991, allocations: 4.71 MB / 438.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.2991, allocations: 0 / 438.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2991, allocations: 3.938 kB / 438.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001123/0.2993, allocations: 4 kB / 438.6 MB, free: 4.055 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.008445/0.3077, allocations: 3.723 MB / 442.4 MB, free: 272 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.3078, allocations: 8.031 kB / 442.4 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004013/0.3118, allocations: 0.764 MB / 443.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00318/0.315, allocations: 1.851 MB / 445 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001337/0.3151, allocations: 197.7 kB / 445.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004051/0.3156, allocations: 264.1 kB / 445.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005753/0.3213, allocations: 3.614 MB / 449.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.426e-05/0.3214, allocations: 3.984 kB / 449.1 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000244/0.3216, allocations: 108 kB / 449.2 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.855e-05/0.3217, allocations: 109.4 kB / 449.3 MB, free: 9.242 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005032/0.3268, allocations: 3.089 MB / 452.4 MB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0148/0.3416, allocations: 10.26 MB / 462.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00469/0.3463, allocations: 4.573 MB / 467.2 MB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001352/0.3477, allocations: 0.9424 MB / 468.1 MB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003699/0.3514, allocations: 2.643 MB / 470.8 MB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.3515, allocations: 43.44 kB / 470.8 MB, free: 2.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 3.115e-06/0.3515, allocations: 3.938 kB / 470.8 MB, free: 2.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=104): time 0.006131/0.3576, allocations: 2.665 MB / 473.5 MB, free: 15.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/0.3577, allocations: 89.98 kB / 473.6 MB, free: 15.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00197/0.3597, allocations: 1.404 MB / 475 MB, free: 14.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.003e-05/0.3598, allocations: 45.7 kB / 475 MB, free: 14.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008675/0.3606, allocations: 1.203 MB / 476.2 MB, free: 13.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002928/0.3609, allocations: 380.8 kB / 476.6 MB, free: 12.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003204/0.3613, allocations: 214.9 kB / 476.8 MB, free: 12.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3614, allocations: 357.9 kB / 477.2 MB, free: 12.08 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00091/0.3623, allocations: 0.5608 MB / 477.7 MB, free: 11.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.3634, allocations: 0.853 MB / 478.6 MB, free: 10.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002071/0.3655, allocations: 1.457 MB / 480 MB, free: 8.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.3655, allocations: 4 kB / 480 MB, free: 8.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003219/0.3687, allocations: 1.965 MB / 482 MB, free: 6.996 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.3688, allocations: 8 kB / 482 MB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.3688, allocations: 8 kB / 482 MB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009929/0.3698, allocations: 401.2 kB / 482.4 MB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007885/0.3706, allocations: 215.6 kB / 482.6 MB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00777/0.3784, allocations: 6.537 MB / 489.2 MB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000992/0.3794, allocations: 155 kB / 489.3 MB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-05/0.3795, allocations: 48 kB / 489.4 MB, free: 15.36 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.001414/0.3809, allocations: 0.8681 MB / 490.2 MB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002516/0.3812, allocations: 143.1 kB / 490.4 MB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002864/0.384, allocations: 1.656 MB / 492 MB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.3841, allocations: 12 kB / 492 MB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.3841, allocations: 8 kB / 492 MB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.3841, allocations: 3.984 kB / 492 MB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006146/0.3902, allocations: 3.922 MB / 496 MB, free: 8.629 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.3903, allocations: 4 kB / 496 MB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005456/0.3908, allocations: 128 kB / 496.1 MB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009228/0.3918, allocations: 401.4 kB / 496.5 MB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.379e-05/0.3918, allocations: 27.98 kB / 496.5 MB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00724/0.3991, allocations: 6.532 MB / 0.4913 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3991, allocations: 4 kB / 0.4913 GB, free: 1.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003917/0.4031, allocations: 2.493 MB / 0.4937 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004118/0.4035, allocations: 251.9 kB / 0.4939 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/0.4036, allocations: 28 kB / 0.494 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007779/0.4044, allocations: 83.91 kB / 0.494 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.4047, allocations: 96.67 kB / 0.4941 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.005e-05/0.4047, allocations: 35.98 kB / 0.4942 GB, free: 14.23 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001275/0.406, allocations: 0.9756 MB / 0.4951 GB, free: 13.25 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.406, allocations: 3.938 kB / 0.4951 GB, free: 13.25 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001778/0.4078, allocations: 0.6853 MB / 0.4958 GB, free: 12.56 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.0003329/0.4082, allocations: 155 kB / 0.4959 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002907/0.4111, allocations: 1.788 MB / 0.4977 GB, free: 10.58 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.4111, allocations: 0 / 0.4977 GB, free: 10.58 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.4129, allocations: 1.13 MB / 0.4988 GB, free: 9.426 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.4144, allocations: 308.4 kB / 0.4991 GB, free: 9.125 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006845/0.4212, allocations: 4.656 MB / 0.5036 GB, free: 4.402 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001808/0.4231, allocations: 2.188 MB / 0.5058 GB, free: 2.18 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009827/0.4241, allocations: 343 kB / 0.5061 GB, free: 1.84 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/0.4243, allocations: 87.42 kB / 0.5062 GB, free: 1.754 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4243, allocations: 0 / 0.5062 GB, free: 1.754 MB / 430.1 MB Notification: Performance of Templates: time 0.03517/0.4595, allocations: 20.91 MB / 0.5266 GB, free: 13.04 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