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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 107.3 kB / 16.92 MB, free: 5.785 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.001728/0.001728, allocations: 191.3 kB / 17.85 MB, free: 5.191 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.319/1.319, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 51.58 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1101, allocations: 49.45 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.008758/0.1189, allocations: 7.249 MB / 357.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004421/0.1234, allocations: 2.184 MB / 359.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001212/0.1246, allocations: 55.81 kB / 359.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.126, allocations: 441 kB / 360.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00288/0.1289, allocations: 0.8882 MB / 361 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.13, allocations: 363.3 kB / 361.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004194/0.1342, allocations: 3.133 MB / 364.5 MB, free: 5.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004235/0.1384, allocations: 2.883 MB / 367.3 MB, free: 3.035 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002141/0.1406, allocations: 1.414 MB / 368.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1932/0.3338, allocations: 1.683 MB / 370.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001215/0.3351, allocations: 358.4 kB / 370.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002109/0.3372, allocations: 481 kB / 371.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001729/0.3389, allocations: 0.8976 MB / 372.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00263/0.3416, allocations: 1.605 MB / 373.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005296/0.3469, allocations: 4.631 MB / 378.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.3469, allocations: 2.469 kB / 378.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3469, allocations: 3.656 kB / 378.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001378/0.3471, allocations: 0.9375 kB / 378.4 MB, free: 12.03 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.01008/0.3572, allocations: 3.615 MB / 382 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.3572, allocations: 9 kB / 382 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007617/0.358, allocations: 445.2 kB / 382.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003543/0.3615, allocations: 0.6886 MB / 383.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003218/0.3648, allocations: 1.737 MB / 384.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/0.365, allocations: 201.1 kB / 385.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004843/0.3654, allocations: 264.7 kB / 385.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006387/0.3718, allocations: 3.622 MB / 389 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.891e-05/0.3719, allocations: 2.031 kB / 389 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002717/0.3722, allocations: 106.5 kB / 389.1 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/0.3723, allocations: 103 kB / 389.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00505/0.3774, allocations: 3.103 MB / 392.3 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01462/0.392, allocations: 10.36 MB / 402.6 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005177/0.3972, allocations: 4.573 MB / 407.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001396/0.3986, allocations: 0.9534 MB / 408.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003778/0.4024, allocations: 2.406 MB / 410.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/0.4025, allocations: 50.06 kB / 410.6 MB, free: 5.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 3.166e-06/0.4025, allocations: 0 / 410.6 MB, free: 5.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.005947/0.4085, allocations: 2.646 MB / 413.3 MB, free: 2.902 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.4085, allocations: 85.98 kB / 413.3 MB, free: 2.801 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002057/0.4106, allocations: 1.382 MB / 414.7 MB, free: 1.406 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.111e-05/0.4107, allocations: 45.69 kB / 414.8 MB, free: 1.355 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007985/0.4115, allocations: 1.167 MB / 415.9 MB, free: 180 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000304/0.4118, allocations: 361.3 kB / 416.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003455/0.4122, allocations: 221.5 kB / 416.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.4123, allocations: 345.9 kB / 416.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008932/0.4132, allocations: 0.5686 MB / 417.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.4143, allocations: 0.8401 MB / 418.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002058/0.4164, allocations: 1.466 MB / 419.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/0.4164, allocations: 8.938 kB / 419.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003289/0.4197, allocations: 1.959 MB / 421.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.4197, allocations: 9.562 kB / 421.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.974e-05/0.4198, allocations: 8 kB / 421.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.4208, allocations: 406.4 kB / 422.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007709/0.4216, allocations: 215 kB / 422.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007459/0.4291, allocations: 6.521 MB / 428.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.4302, allocations: 142.7 kB / 429 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.4304, allocations: 48 kB / 429 MB, free: 2.715 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.001502/0.4319, allocations: 0.8702 MB / 429.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003506/0.4323, allocations: 137.7 kB / 430 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002951/0.4352, allocations: 1.646 MB / 431.7 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.4352, allocations: 12 kB / 431.7 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.4353, allocations: 8 kB / 431.7 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.4353, allocations: 7.969 kB / 431.7 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006822/0.4421, allocations: 3.917 MB / 435.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.4421, allocations: 4 kB / 435.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000559/0.4427, allocations: 134.8 kB / 435.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009332/0.4437, allocations: 401.1 kB / 436.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.4438, allocations: 31.98 kB / 436.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007327/0.4511, allocations: 6.519 MB / 442.7 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4511, allocations: 64 / 442.7 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004095/0.4552, allocations: 2.48 MB / 445.2 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006622/0.4559, allocations: 239.3 kB / 445.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004369/0.4564, allocations: 27.98 kB / 445.4 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.4575, allocations: 87.91 kB / 445.5 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.4577, allocations: 107.8 kB / 445.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.528e-05/0.4578, allocations: 35.98 kB / 445.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001751/0.4596, allocations: 0.963 MB / 446.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4596, allocations: 0 / 446.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002956/0.4625, allocations: 0.6727 MB / 447.3 MB, free: 136 kB / 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.004587/0.4671, allocations: 3.084 MB / 450.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003826/0.471, allocations: 1.938 MB / 452.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.471, allocations: 0 / 452.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001908/0.4729, allocations: 1.12 MB / 453.4 MB, free: 9.973 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001967/0.4749, allocations: 306.7 kB / 453.7 MB, free: 9.672 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02866/0.5036, allocations: 16.99 MB / 470.7 MB, free: 8.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002535/0.5061, allocations: 2.176 MB / 472.9 MB, free: 5.793 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001089/0.5072, allocations: 346.9 kB / 473.2 MB, free: 5.449 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/0.5084, allocations: 0.8625 MB / 474.1 MB, free: 4.59 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5084, allocations: 0 / 474.1 MB, free: 4.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.04/2.549, allocations: 37.68 MB / 0.4998 GB, free: 15.35 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/13.86, allocations: 19.8 kB / 0.4998 GB, free: 15.33 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins1/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