Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 105.3 kB / 17.58 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001788/0.001788, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 56.39 kB / 280.7 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08168/0.08298, allocations: 46.63 MB / 327.3 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.008415/0.09143, allocations: 7.198 MB / 334.5 MB, free: 13.22 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004179/0.09564, allocations: 2.224 MB / 336.7 MB, free: 10.99 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009193/0.09664, allocations: 51.75 kB / 336.8 MB, free: 10.94 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.09769, allocations: 449 kB / 337.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002103/0.0998, allocations: 0.8703 MB / 338.1 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007539/0.1006, allocations: 383.2 kB / 338.4 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00316/0.1037, allocations: 3.121 MB / 341.6 MB, free: 6.113 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002668/0.1064, allocations: 2.852 MB / 344.4 MB, free: 3.199 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001442/0.1079, allocations: 1.406 MB / 345.8 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001764/0.1097, allocations: 1.685 MB / 347.5 MB, free: 100 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000466/0.1101, allocations: 360 kB / 347.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008613/0.111, allocations: 479.8 kB / 348.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006925/0.1117, allocations: 0.9076 MB / 349.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001444/0.1132, allocations: 1.61 MB / 350.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003505/0.1167, allocations: 4.603 MB / 355.4 MB, free: 8.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1167, allocations: 0 / 355.4 MB, free: 8.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1167, allocations: 3.938 kB / 355.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.606e-05/0.1167, allocations: 0 / 355.4 MB, free: 8.129 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.006964/0.1237, allocations: 3.621 MB / 359.1 MB, free: 4.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1238, allocations: 8.031 kB / 359.1 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003423/0.1272, allocations: 0.696 MB / 359.8 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002401/0.1296, allocations: 1.671 MB / 361.4 MB, free: 2.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.1297, allocations: 197.7 kB / 361.6 MB, free: 1.812 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003614/0.1301, allocations: 264.1 kB / 361.9 MB, free: 1.555 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005205/0.1353, allocations: 3.614 MB / 365.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/0.1354, allocations: 0 / 365.5 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002532/0.1356, allocations: 108 kB / 365.6 MB, free: 13.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.075e-05/0.1357, allocations: 105.4 kB / 365.7 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004594/0.1403, allocations: 3.093 MB / 368.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1595/0.2999, allocations: 10.5 MB / 379.3 MB, free: 48.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004369/0.3043, allocations: 4.675 MB / 384 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.3055, allocations: 0.9444 MB / 384.9 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003375/0.3089, allocations: 2.457 MB / 387.4 MB, free: 44.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.309, allocations: 48.41 kB / 387.4 MB, free: 44.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 2.765e-06/0.309, allocations: 0 / 387.4 MB, free: 44.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.005764/0.3147, allocations: 2.699 MB / 390.1 MB, free: 43.35 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.3148, allocations: 89.58 kB / 390.2 MB, free: 43.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/0.3164, allocations: 1.377 MB / 391.6 MB, free: 42.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.54e-05/0.3165, allocations: 42.3 kB / 391.6 MB, free: 42.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004748/0.3169, allocations: 1.163 MB / 392.8 MB, free: 41.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/0.3171, allocations: 370.4 kB / 393.2 MB, free: 41.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002762/0.3174, allocations: 215.5 kB / 393.4 MB, free: 41.55 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.209e-05/0.3175, allocations: 356.8 kB / 393.7 MB, free: 41.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007764/0.3183, allocations: 0.579 MB / 394.3 MB, free: 41.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008842/0.3192, allocations: 0.858 MB / 395.2 MB, free: 40.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.3208, allocations: 1.488 MB / 396.6 MB, free: 39.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.3208, allocations: 5.406 kB / 396.6 MB, free: 39.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002932/0.3237, allocations: 2.003 MB / 398.6 MB, free: 38.92 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.3237, allocations: 8.25 kB / 398.7 MB, free: 38.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.3238, allocations: 8.25 kB / 398.7 MB, free: 38.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00084/0.3246, allocations: 408.7 kB / 399.1 MB, free: 38.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006917/0.3253, allocations: 215.5 kB / 399.3 MB, free: 38.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005311/0.3306, allocations: 6.658 MB / 405.9 MB, free: 33.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007655/0.3314, allocations: 144.1 kB / 406.1 MB, free: 33.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.239e-05/0.3315, allocations: 42.22 kB / 406.1 MB, free: 33.66 MB / 318.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.001134/0.3326, allocations: 0.8689 MB / 407 MB, free: 33.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002187/0.3329, allocations: 140.2 kB / 407.1 MB, free: 33.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002387/0.3353, allocations: 1.67 MB / 408.8 MB, free: 32.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.3353, allocations: 11.09 kB / 408.8 MB, free: 32.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3353, allocations: 7.875 kB / 408.8 MB, free: 32.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.3353, allocations: 5.391 kB / 408.8 MB, free: 32.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004612/0.3399, allocations: 3.994 MB / 412.8 MB, free: 28.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.3399, allocations: 0 / 412.8 MB, free: 28.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004939/0.3404, allocations: 135.8 kB / 412.9 MB, free: 28.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007171/0.3412, allocations: 397.5 kB / 413.3 MB, free: 28.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.145e-05/0.3412, allocations: 43.17 kB / 413.4 MB, free: 28.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005104/0.3464, allocations: 6.63 MB / 420 MB, free: 21.44 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3464, allocations: 6.344 kB / 420 MB, free: 21.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002853/0.3492, allocations: 2.516 MB / 422.5 MB, free: 18.88 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002749/0.3495, allocations: 243.2 kB / 422.8 MB, free: 18.62 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001524/0.3497, allocations: 31.98 kB / 422.8 MB, free: 18.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000725/0.3504, allocations: 87.91 kB / 422.9 MB, free: 18.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.3506, allocations: 100.7 kB / 423 MB, free: 18.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.307e-05/0.3507, allocations: 27.98 kB / 423 MB, free: 18.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009529/0.3516, allocations: 0.963 MB / 424 MB, free: 17.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3516, allocations: 7.656 kB / 424 MB, free: 17.4 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001561/0.3532, allocations: 0.6766 MB / 424.7 MB, free: 16.72 MB / 318.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,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].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.0002615/0.3535, allocations: 151.6 kB / 424.8 MB, free: 16.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.3562, allocations: 1.961 MB / 426.8 MB, free: 14.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3562, allocations: 1.188 kB / 426.8 MB, free: 14.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.3575, allocations: 1.143 MB / 427.9 MB, free: 13.42 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/0.3589, allocations: 307.9 kB / 428.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005508/0.3644, allocations: 4.635 MB / 432.8 MB, free: 8.438 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.3658, allocations: 2.184 MB / 435 MB, free: 6.215 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008523/0.3666, allocations: 343 kB / 435.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.3669, allocations: 87.42 kB / 435.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3669, allocations: 4 kB / 435.4 MB, free: 5.785 MB / 318.1 MB Notification: Performance of Templates: time 0.03332/0.4002, allocations: 20.76 MB / 456.2 MB, free: 1.031 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches