Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.001085/0.001085, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.00117/0.00117, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 47.58 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08373/0.08476, allocations: 49.43 MB / 350.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.007691/0.0925, allocations: 7.249 MB / 357.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003301/0.09582, allocations: 2.184 MB / 359.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004344/0.09627, allocations: 51.81 kB / 359.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007815/0.09709, allocations: 441 kB / 360 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001702/0.09881, allocations: 0.8946 MB / 360.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006623/0.09948, allocations: 354.8 kB / 361.2 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002952/0.1024, allocations: 3.149 MB / 364.4 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002807/0.1053, allocations: 2.883 MB / 367.2 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001505/0.1068, allocations: 1.406 MB / 368.6 MB, free: 1.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001756/0.1086, allocations: 1.693 MB / 370.3 MB, free: 4 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1456/0.2542, allocations: 359.4 kB / 370.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.2555, allocations: 477.6 kB / 371.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007031/0.2562, allocations: 0.9023 MB / 372.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001595/0.2578, allocations: 1.606 MB / 373.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004186/0.262, allocations: 4.622 MB / 378.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.262, allocations: 3.375 kB / 378.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.262, allocations: 0 / 378.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001026/0.2621, allocations: 0.625 kB / 378.3 MB, free: 13.38 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.008026/0.2701, allocations: 3.627 MB / 381.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.2702, allocations: 9.562 kB / 381.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00349/0.2737, allocations: 0.6945 MB / 382.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002645/0.2764, allocations: 1.738 MB / 384.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.2765, allocations: 196.1 kB / 384.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003694/0.2769, allocations: 266.7 kB / 384.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0052/0.2821, allocations: 3.619 MB / 388.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.769e-05/0.2821, allocations: 0 / 388.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002512/0.2824, allocations: 110 kB / 388.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-05/0.2825, allocations: 103.5 kB / 388.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004474/0.287, allocations: 3.1 MB / 391.7 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01424/0.3012, allocations: 10.35 MB / 402.1 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004886/0.3061, allocations: 4.571 MB / 406.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.3076, allocations: 0.9534 MB / 407.6 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003852/0.3114, allocations: 2.399 MB / 410 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/0.3115, allocations: 51.44 kB / 410.1 MB, free: 7.055 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 2.935e-06/0.3115, allocations: 0 / 410.1 MB, free: 7.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.005902/0.3174, allocations: 2.652 MB / 412.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.188e-05/0.3175, allocations: 89.97 kB / 412.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00187/0.3194, allocations: 1.37 MB / 414.2 MB, free: 2.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.872e-05/0.3194, allocations: 45.7 kB / 414.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006796/0.3201, allocations: 1.165 MB / 415.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002571/0.3204, allocations: 361.6 kB / 415.7 MB, free: 1.312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003145/0.3207, allocations: 218.4 kB / 415.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3208, allocations: 357.9 kB / 416.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008418/0.3217, allocations: 0.5647 MB / 416.9 MB, free: 180 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.3227, allocations: 0.8471 MB / 417.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00188/0.3246, allocations: 1.456 MB / 419.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.3246, allocations: 4 kB / 419.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003584/0.3282, allocations: 1.96 MB / 421.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/0.3283, allocations: 8 kB / 421.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.296e-05/0.3283, allocations: 8.125 kB / 421.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.3298, allocations: 403.2 kB / 421.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.3311, allocations: 221.8 kB / 421.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/0.3424, allocations: 6.531 MB / 428.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.3443, allocations: 138.8 kB / 428.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/0.3445, allocations: 51.92 kB / 428.5 MB, free: 4.191 MB / 334.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.002236/0.3467, allocations: 0.8679 MB / 429.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005196/0.3473, allocations: 142.4 kB / 429.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004888/0.3522, allocations: 1.652 MB / 431.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/0.3522, allocations: 12 kB / 431.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.3522, allocations: 4 kB / 431.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.3523, allocations: 3.984 kB / 431.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01205/0.3643, allocations: 3.914 MB / 435.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.521e-05/0.3644, allocations: 4 kB / 435.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.3655, allocations: 130.5 kB / 435.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001827/0.3674, allocations: 410.5 kB / 435.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001275/0.3675, allocations: 27.98 kB / 435.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01267/0.3802, allocations: 6.503 MB / 442.1 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.161e-05/0.3802, allocations: 7.969 kB / 442.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007227/0.3875, allocations: 2.481 MB / 444.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000849/0.3884, allocations: 243.2 kB / 444.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005253/0.3889, allocations: 28 kB / 444.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001709/0.3907, allocations: 83.91 kB / 445 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003918/0.3911, allocations: 104.2 kB / 445.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.3912, allocations: 31.98 kB / 445.1 MB, free: 3.262 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002689/0.3939, allocations: 0.963 MB / 446.1 MB, free: 2.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.394, allocations: 4 kB / 446.1 MB, free: 2.289 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003539/0.3975, allocations: 0.6688 MB / 446.7 MB, free: 1.617 MB / 350.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.0004914/0.398, allocations: 149.8 kB / 446.9 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006328/0.4044, allocations: 1.928 MB / 448.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.4044, allocations: 0 / 448.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003422/0.4079, allocations: 1.132 MB / 449.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002963/0.4108, allocations: 301.8 kB / 450.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/0.4238, allocations: 4.62 MB / 454.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003216/0.4271, allocations: 2.18 MB / 457 MB, free: 7.223 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001908/0.429, allocations: 343 kB / 457.4 MB, free: 6.883 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003944/0.4294, allocations: 95.34 kB / 457.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4295, allocations: 0 / 457.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of Templates: time 0.06993/0.4994, allocations: 20.48 MB / 477.9 MB, free: 2.598 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches