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.001665/0.001665, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001968/0.001968, allocations: 190.9 kB / 19.28 MB, free: 3.766 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.309/1.309, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001175/0.001175, allocations: 43.94 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08324/0.08443, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.007814/0.09229, allocations: 7.206 MB / 335.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003751/0.09606, allocations: 2.223 MB / 338.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004599/0.09656, allocations: 43.81 kB / 338.2 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008555/0.09743, allocations: 448.9 kB / 338.6 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001769/0.09921, allocations: 0.8781 MB / 339.5 MB, free: 8.906 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006857/0.0999, allocations: 383.2 kB / 339.9 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002919/0.1028, allocations: 3.14 MB / 343 MB, free: 5.379 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002622/0.1055, allocations: 2.859 MB / 345.9 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001381/0.1069, allocations: 1.406 MB / 347.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001736/0.1086, allocations: 1.689 MB / 349 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004009/0.109, allocations: 360 kB / 349.3 MB, free: 15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007403/0.1098, allocations: 483.8 kB / 349.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006772/0.1105, allocations: 0.8959 MB / 350.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001448/0.1119, allocations: 1.614 MB / 352.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003582/0.1155, allocations: 4.638 MB / 356.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1155, allocations: 4 kB / 357 MB, free: 7.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1155, allocations: 0 / 357 MB, free: 7.352 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.632e-05/0.1156, allocations: 4 kB / 357 MB, free: 7.348 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.007139/0.1227, allocations: 3.621 MB / 360.6 MB, free: 3.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.1228, allocations: 8.031 kB / 360.6 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003499/0.1263, allocations: 0.6882 MB / 361.3 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00305/0.1293, allocations: 1.706 MB / 363 MB, free: 1.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.1295, allocations: 197.7 kB / 363.2 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000362/0.1298, allocations: 264.1 kB / 363.4 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005411/0.1353, allocations: 3.61 MB / 367 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.67e-05/0.1353, allocations: 0 / 367 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002332/0.1356, allocations: 108 kB / 367.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.431e-05/0.1357, allocations: 105.4 kB / 367.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004698/0.1404, allocations: 3.089 MB / 370.3 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1553/0.2957, allocations: 10.36 MB / 380.7 MB, free: 47.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004627/0.3004, allocations: 4.676 MB / 385.4 MB, free: 44.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.3018, allocations: 0.9474 MB / 386.3 MB, free: 44.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004482/0.3063, allocations: 2.445 MB / 388.8 MB, free: 43.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.3063, allocations: 52.95 kB / 388.8 MB, free: 43.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 2.896e-06/0.3063, allocations: 0 / 388.8 MB, free: 43.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.006159/0.3125, allocations: 2.696 MB / 391.5 MB, free: 42.51 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.3125, allocations: 88.11 kB / 391.6 MB, free: 42.42 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00166/0.3142, allocations: 1.375 MB / 393 MB, free: 41.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.598e-05/0.3143, allocations: 46.2 kB / 393 MB, free: 41.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005255/0.3148, allocations: 1.164 MB / 394.2 MB, free: 41.1 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.315, allocations: 360.4 kB / 394.5 MB, free: 40.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003012/0.3153, allocations: 218 kB / 394.7 MB, free: 40.72 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.294e-05/0.3154, allocations: 358.1 kB / 395.1 MB, free: 40.39 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008074/0.3162, allocations: 0.5801 MB / 395.7 MB, free: 40.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008407/0.3171, allocations: 0.857 MB / 396.5 MB, free: 39.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001694/0.3188, allocations: 1.488 MB / 398 MB, free: 38.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.3188, allocations: 2.75 kB / 398 MB, free: 38.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002855/0.3216, allocations: 1.999 MB / 400 MB, free: 38.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3217, allocations: 7.906 kB / 400 MB, free: 38.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.3217, allocations: 18.59 kB / 400.1 MB, free: 38.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008298/0.3225, allocations: 395.8 kB / 400.4 MB, free: 37.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007408/0.3233, allocations: 226.5 kB / 400.7 MB, free: 37.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008798/0.3321, allocations: 6.639 MB / 407.3 MB, free: 32.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.3337, allocations: 148.8 kB / 407.4 MB, free: 32.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.3339, allocations: 47.44 kB / 407.5 MB, free: 32.63 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.00184/0.3357, allocations: 0.869 MB / 408.4 MB, free: 32.06 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000398/0.3361, allocations: 146.2 kB / 408.5 MB, free: 31.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003972/0.3401, allocations: 1.664 MB / 410.2 MB, free: 31.03 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.3402, allocations: 11.38 kB / 410.2 MB, free: 31.03 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.3402, allocations: 3.969 kB / 410.2 MB, free: 31.03 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.3402, allocations: 7.422 kB / 410.2 MB, free: 31.03 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009403/0.3496, allocations: 3.99 MB / 414.2 MB, free: 27.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.3497, allocations: 4 kB / 414.2 MB, free: 27.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.3508, allocations: 131.8 kB / 414.3 MB, free: 27.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001657/0.3524, allocations: 405.2 kB / 414.7 MB, free: 26.92 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/0.3526, allocations: 39.92 kB / 414.7 MB, free: 26.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01069/0.3633, allocations: 6.628 MB / 421.4 MB, free: 19.99 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.3633, allocations: 0 / 421.4 MB, free: 19.99 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005976/0.3693, allocations: 2.512 MB / 423.9 MB, free: 17.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000665/0.37, allocations: 243.2 kB / 424.1 MB, free: 17.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004012/0.3704, allocations: 31.98 kB / 424.2 MB, free: 17.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001583/0.372, allocations: 95.91 kB / 424.2 MB, free: 17.05 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003431/0.3724, allocations: 92.67 kB / 424.3 MB, free: 16.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.3726, allocations: 35.98 kB / 424.4 MB, free: 16.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002123/0.3747, allocations: 0.963 MB / 425.3 MB, free: 15.96 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.252e-06/0.3747, allocations: 0 / 425.3 MB, free: 15.96 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002863/0.3776, allocations: 0.6765 MB / 426 MB, free: 15.28 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.0003651/0.378, allocations: 147 kB / 426.2 MB, free: 15.13 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004522/0.3825, allocations: 1.814 MB / 428 MB, free: 13.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.3825, allocations: 4 kB / 428 MB, free: 13.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002761/0.3853, allocations: 1.133 MB / 429.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002451/0.3878, allocations: 307.4 kB / 429.4 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.3986, allocations: 4.586 MB / 434 MB, free: 7.199 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002545/0.4012, allocations: 2.177 MB / 436.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001808/0.4031, allocations: 346.9 kB / 436.5 MB, free: 4.641 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004176/0.4035, allocations: 87.42 kB / 436.6 MB, free: 4.555 MB / 318.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4035, allocations: 0 / 436.6 MB, free: 4.555 MB / 318.1 MB Notification: Performance of Templates: time 0.04775/0.4513, allocations: 20.68 MB / 457.3 MB, free: 15.87 MB / 350.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins1/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