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.001122/0.001122, allocations: 94 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001578/0.001578, allocations: 196.6 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.7 MB / 246.8 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002128/0.0002129, allocations: 8.234 kB / 307.7 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08414/0.08436, allocations: 51.53 MB / 359.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.007551/0.09195, allocations: 7.258 MB / 366.5 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004237/0.09622, allocations: 2.429 MB / 369 MB, free: 3.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000655/0.0969, allocations: 51.81 kB / 369 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007598/0.09767, allocations: 381.9 kB / 369.4 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001806/0.09948, allocations: 0.77 MB / 370.1 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007668/0.1003, allocations: 359.4 kB / 370.5 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1604/0.2607, allocations: 3.538 MB / 374 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0035/0.2642, allocations: 2.408 MB / 376.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001583/0.2658, allocations: 1.036 MB / 377.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001733/0.2676, allocations: 1.393 MB / 378.9 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003022/0.2679, allocations: 152.2 kB / 379 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007258/0.2686, allocations: 290.7 kB / 379.3 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005617/0.2692, allocations: 0.6492 MB / 380 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00132/0.2705, allocations: 1.351 MB / 381.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004207/0.2747, allocations: 4.388 MB / 385.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2748, allocations: 1.156 kB / 385.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2748, allocations: 0 / 385.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.551e-05/0.2749, allocations: 4 kB / 385.7 MB, free: 7.094 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: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.007025/0.2819, allocations: 3.146 MB / 388.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.2819, allocations: 10.09 kB / 388.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004177/0.2861, allocations: 0.7651 MB / 389.6 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002883/0.289, allocations: 1.78 MB / 391.4 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.2892, allocations: 201 kB / 391.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004224/0.2896, allocations: 258.4 kB / 391.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005788/0.2954, allocations: 3.637 MB / 395.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.19e-05/0.2955, allocations: 0 / 395.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002446/0.2957, allocations: 112.7 kB / 395.6 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.519e-05/0.2958, allocations: 100.6 kB / 395.7 MB, free: 1.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004968/0.3008, allocations: 3.126 MB / 398.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01707/0.3179, allocations: 10.41 MB / 409.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005151/0.3231, allocations: 4.571 MB / 413.8 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001438/0.3245, allocations: 0.9579 MB / 414.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004373/0.3289, allocations: 2.655 MB / 417.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.329, allocations: 43.44 kB / 417.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of pre-optimization done (n=104): time 2.635e-06/0.329, allocations: 0 / 417.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=104): time 0.00638/0.3354, allocations: 2.717 MB / 420.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.3354, allocations: 85.98 kB / 420.3 MB, free: 9.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002141/0.3376, allocations: 1.4 MB / 421.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.694e-05/0.3377, allocations: 45.7 kB / 421.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007452/0.3384, allocations: 1.173 MB / 422.9 MB, free: 7.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002677/0.3387, allocations: 355.1 kB / 423.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.3388, allocations: 105.7 kB / 423.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.339, allocations: 361.9 kB / 423.7 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009629/0.3399, allocations: 0.5686 MB / 424.2 MB, free: 5.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.3411, allocations: 0.8681 MB / 425.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002092/0.3432, allocations: 1.479 MB / 426.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.3432, allocations: 3.938 kB / 426.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003371/0.3466, allocations: 1.998 MB / 428.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.3466, allocations: 8 kB / 428.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.3466, allocations: 12 kB / 428.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009513/0.3476, allocations: 406.5 kB / 429 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008238/0.3484, allocations: 225.4 kB / 429.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006931/0.3554, allocations: 5.99 MB / 435.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.3565, allocations: 146.7 kB / 435.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.3566, allocations: 52.05 kB / 435.4 MB, free: 10.28 MB / 350.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.00162/0.3582, allocations: 0.8705 MB / 436.3 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003281/0.3586, allocations: 138.3 kB / 436.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003114/0.3617, allocations: 1.673 MB / 438.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.3617, allocations: 15.94 kB / 438.1 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/0.3617, allocations: 8 kB / 438.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.3618, allocations: 11.97 kB / 438.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007042/0.3688, allocations: 3.945 MB / 442.1 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.3688, allocations: 4 kB / 442.1 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005994/0.3694, allocations: 143 kB / 442.2 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009322/0.3704, allocations: 385.6 kB / 442.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.281e-05/0.3705, allocations: 31.98 kB / 442.6 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006873/0.3774, allocations: 5.986 MB / 448.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.3774, allocations: 4 kB / 448.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00421/0.3816, allocations: 2.512 MB / 451.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.3821, allocations: 251.2 kB / 451.4 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002778/0.3824, allocations: 24 kB / 451.4 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000902/0.3833, allocations: 95.91 kB / 451.5 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002283/0.3836, allocations: 100.2 kB / 451.6 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.893e-05/0.3837, allocations: 31.98 kB / 451.6 MB, free: 9.766 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001676/0.3853, allocations: 0.9795 MB / 452.6 MB, free: 8.781 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3853, allocations: 4 kB / 452.6 MB, free: 8.777 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00209/0.3874, allocations: 0.6804 MB / 453.3 MB, free: 8.094 MB / 366.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.0003562/0.3878, allocations: 152.5 kB / 453.4 MB, free: 7.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003108/0.3909, allocations: 1.802 MB / 455.2 MB, free: 6.145 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.3909, allocations: 320 / 455.2 MB, free: 6.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.3928, allocations: 1.156 MB / 456.4 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001941/0.3947, allocations: 294.9 kB / 456.7 MB, free: 4.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008376/0.4031, allocations: 5.848 MB / 462.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002147/0.4053, allocations: 2.188 MB / 464.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001083/0.4064, allocations: 346.9 kB / 465 MB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.4067, allocations: 87.42 kB / 465.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4067, allocations: 0 / 465.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of Templates: time 0.0356/0.4423, allocations: 19.43 MB / 484.6 MB, free: 8.906 MB / 398.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