Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 119.5 kB / 18.46 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001542/0.001542, allocations: 214.8 kB / 19.41 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.417/1.417, allocations: 227.7 MB / 247.9 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 63.89 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.229, allocations: 50.55 MB / 410.2 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.009753/0.2387, allocations: 7.871 MB / 418.1 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004776/0.2435, allocations: 2.476 MB / 420.6 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007588/0.2442, allocations: 59.75 kB / 420.6 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009952/0.2452, allocations: 460.9 kB / 421.1 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002232/0.2475, allocations: 0.8703 MB / 421.9 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009584/0.2484, allocations: 413.7 kB / 422.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004143/0.2526, allocations: 3.245 MB / 425.6 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002675/0.2553, allocations: 2.134 MB / 427.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001775/0.257, allocations: 1.421 MB / 429.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001899/0.2589, allocations: 1.693 MB / 430.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004466/0.2594, allocations: 360 kB / 431.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009002/0.2603, allocations: 499.9 kB / 431.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008155/0.2611, allocations: 0.9114 MB / 432.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001631/0.2627, allocations: 1.614 MB / 434.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004964/0.2677, allocations: 4.718 MB / 438.9 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2677, allocations: 0 / 438.9 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2677, allocations: 0 / 438.9 MB, free: 4.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.774e-05/0.2678, allocations: 3.938 kB / 438.9 MB, free: 4.566 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.008533/0.2763, allocations: 3.719 MB / 442.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.2763, allocations: 12.03 kB / 442.6 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004146/0.2805, allocations: 0.7601 MB / 443.4 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003547/0.284, allocations: 1.851 MB / 445.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000162/0.2842, allocations: 201.7 kB / 445.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004444/0.2846, allocations: 264.1 kB / 445.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006181/0.2908, allocations: 3.614 MB / 449.3 MB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/0.2909, allocations: 4 kB / 449.3 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002606/0.2911, allocations: 104 kB / 449.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001093/0.2912, allocations: 105.4 kB / 449.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00543/0.2967, allocations: 3.101 MB / 452.6 MB, free: 6.648 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01677/0.3134, allocations: 10.26 MB / 462.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005293/0.3187, allocations: 4.456 MB / 467.4 MB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001458/0.3202, allocations: 0.8721 MB / 468.2 MB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004212/0.3244, allocations: 2.647 MB / 470.9 MB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.518e-05/0.3244, allocations: 51.44 kB / 470.9 MB, free: 3.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 2.555e-06/0.3245, allocations: 0 / 470.9 MB, free: 3.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=104): time 0.006529/0.331, allocations: 2.642 MB / 473.6 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.331, allocations: 89.98 kB / 473.7 MB, free: 428 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001983/0.333, allocations: 1.404 MB / 475.1 MB, free: 15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.072e-05/0.3331, allocations: 49.7 kB / 475.1 MB, free: 14.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009184/0.334, allocations: 1.199 MB / 476.3 MB, free: 13.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003192/0.3343, allocations: 384.8 kB / 476.7 MB, free: 13.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003401/0.3347, allocations: 218.9 kB / 476.9 MB, free: 13.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3349, allocations: 349.9 kB / 477.2 MB, free: 12.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009717/0.3358, allocations: 0.5647 MB / 477.8 MB, free: 12.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.337, allocations: 0.8491 MB / 478.6 MB, free: 11.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002184/0.3392, allocations: 1.453 MB / 480.1 MB, free: 9.695 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.3392, allocations: 4 kB / 480.1 MB, free: 9.691 MB / 398.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003521/0.3427, allocations: 1.953 MB / 482.1 MB, free: 7.723 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.3428, allocations: 12 kB / 482.1 MB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/0.3428, allocations: 15.98 kB / 482.1 MB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/0.3438, allocations: 402.7 kB / 482.5 MB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008684/0.3447, allocations: 215.6 kB / 482.7 MB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008198/0.3529, allocations: 6.529 MB / 489.2 MB, free: 288 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.3539, allocations: 150.9 kB / 489.4 MB, free: 136 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.939e-05/0.354, allocations: 48 kB / 489.4 MB, free: 88 kB / 398.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.001518/0.3555, allocations: 0.8798 MB / 490.3 MB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002561/0.3558, allocations: 143.1 kB / 490.4 MB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003139/0.3589, allocations: 1.625 MB / 492.1 MB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.3589, allocations: 12 kB / 492.1 MB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.3589, allocations: 8 kB / 492.1 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.3589, allocations: 7.922 kB / 492.1 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006646/0.3656, allocations: 3.915 MB / 496 MB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.3656, allocations: 4 kB / 496 MB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000596/0.3662, allocations: 127.9 kB / 496.1 MB, free: 9.254 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009639/0.3672, allocations: 404.5 kB / 496.5 MB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.487e-05/0.3672, allocations: 31.98 kB / 496.6 MB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008194/0.3754, allocations: 6.51 MB / 0.4913 GB, free: 2.043 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.3754, allocations: 8.016 kB / 0.4913 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00434/0.3798, allocations: 2.474 MB / 0.4937 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000493/0.3803, allocations: 251.9 kB / 0.4939 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.3804, allocations: 28 kB / 0.494 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008153/0.3812, allocations: 83.91 kB / 0.494 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002328/0.3815, allocations: 96.67 kB / 0.4941 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.75e-05/0.3815, allocations: 35.98 kB / 0.4942 GB, free: 15.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001415/0.383, allocations: 0.9834 MB / 0.4951 GB, free: 14.03 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.383, allocations: 0 / 0.4951 GB, free: 14.03 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001882/0.3848, allocations: 0.6814 MB / 0.4958 GB, free: 13.34 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.0003104/0.3851, allocations: 163 kB / 0.496 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003232/0.3884, allocations: 1.73 MB / 0.4976 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3884, allocations: 0 / 0.4976 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001873/0.3903, allocations: 1.09 MB / 0.4987 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.3918, allocations: 315.1 kB / 0.499 GB, free: 9.996 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007928/0.3997, allocations: 4.664 MB / 0.5036 GB, free: 5.266 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00205/0.4017, allocations: 2.188 MB / 0.5057 GB, free: 3.043 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001007/0.4028, allocations: 339 kB / 0.506 GB, free: 2.707 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/0.403, allocations: 83.42 kB / 0.5061 GB, free: 2.625 MB / 430.1 MB Notification: Performance of SimCode: time 8.21e-07/0.403, allocations: 0 / 0.5061 GB, free: 2.625 MB / 430.1 MB Notification: Performance of Templates: time 0.03989/0.4429, allocations: 21.1 MB / 0.5267 GB, free: 13.75 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches