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.001711/0.001711, 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.002038/0.002038, 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 2.306/2.306, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001895, allocations: 50.36 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1501, allocations: 49.44 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.01528/0.1655, allocations: 7.241 MB / 357.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00597/0.1715, allocations: 2.192 MB / 359.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001542/0.1731, allocations: 55.75 kB / 359.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001262/0.1744, allocations: 437 kB / 360.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003052/0.1775, allocations: 0.8975 MB / 361 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009224/0.1784, allocations: 353 kB / 361.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004403/0.1828, allocations: 3.133 MB / 364.5 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003911/0.1868, allocations: 2.887 MB / 367.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002082/0.1889, allocations: 1.421 MB / 368.8 MB, free: 1.602 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2522/0.4411, allocations: 1.676 MB / 370.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001498/0.4427, allocations: 358.5 kB / 370.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002089/0.4448, allocations: 482.7 kB / 371.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001784/0.4466, allocations: 0.896 MB / 372.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003736/0.4503, allocations: 1.614 MB / 373.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008861/0.4592, allocations: 4.625 MB / 378.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.275e-05/0.4593, allocations: 3.469 kB / 378.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.4593, allocations: 2.781 kB / 378.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002534/0.4596, allocations: 0 / 378.4 MB, free: 12.02 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.01946/0.4791, allocations: 3.619 MB / 382 MB, free: 10.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.386e-05/0.4792, allocations: 10.16 kB / 382 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001942/0.4811, allocations: 438.7 kB / 382.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008625/0.4898, allocations: 0.6901 MB / 383.1 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007593/0.4974, allocations: 1.742 MB / 384.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004122/0.4979, allocations: 200.9 kB / 385.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001832/0.4997, allocations: 263.1 kB / 385.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01613/0.5159, allocations: 3.62 MB / 389 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001653/0.5161, allocations: 1.562 kB / 389 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001306/0.5175, allocations: 111.8 kB / 389.1 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001953/0.5177, allocations: 104.9 kB / 389.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01208/0.5298, allocations: 3.098 MB / 392.3 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0365/0.5664, allocations: 10.37 MB / 402.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01027/0.5767, allocations: 4.564 MB / 407.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003371/0.5801, allocations: 0.9564 MB / 408.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008666/0.5888, allocations: 2.398 MB / 410.6 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.637e-05/0.589, allocations: 46.16 kB / 410.6 MB, free: 5.582 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 6.202e-06/0.589, allocations: 0 / 410.6 MB, free: 5.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.01321/0.6022, allocations: 2.653 MB / 413.3 MB, free: 2.906 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.6024, allocations: 93.98 kB / 413.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004741/0.6072, allocations: 1.378 MB / 414.7 MB, free: 1.406 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003423/0.6076, allocations: 47.95 kB / 414.8 MB, free: 1.355 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.6091, allocations: 1.162 MB / 415.9 MB, free: 184 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008232/0.61, allocations: 365 kB / 416.3 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009269/0.611, allocations: 214.8 kB / 416.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002462/0.6112, allocations: 353.9 kB / 416.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002145/0.6134, allocations: 0.5647 MB / 417.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002218/0.6156, allocations: 0.8507 MB / 418.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004106/0.6198, allocations: 1.457 MB / 419.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.189e-05/0.6198, allocations: 4 kB / 419.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.007098/0.6269, allocations: 1.959 MB / 421.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.81e-05/0.6271, allocations: 8 kB / 421.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.232e-05/0.6271, allocations: 11.75 kB / 421.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002384/0.6295, allocations: 399.2 kB / 422.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/0.6313, allocations: 217.9 kB / 422.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01511/0.6464, allocations: 6.531 MB / 428.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003241/0.6498, allocations: 142.7 kB / 429 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005949/0.6505, allocations: 52.05 kB / 429 MB, free: 2.703 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.004569/0.6551, allocations: 0.866 MB / 429.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001127/0.6562, allocations: 138.3 kB / 430 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006346/0.6626, allocations: 1.652 MB / 431.7 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.805e-05/0.6626, allocations: 8 kB / 431.7 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-05/0.6627, allocations: 8 kB / 431.7 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.261e-05/0.6627, allocations: 3.984 kB / 431.7 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01317/0.6759, allocations: 3.914 MB / 435.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/0.676, allocations: 11.92 kB / 435.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009369/0.6769, allocations: 134.7 kB / 435.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001649/0.6786, allocations: 396.9 kB / 436.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001553/0.6788, allocations: 35.36 kB / 436.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01285/0.6916, allocations: 6.516 MB / 442.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.6917, allocations: 0 / 442.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007284/0.699, allocations: 2.479 MB / 445.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009846/0.7, allocations: 235.3 kB / 445.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006773/0.7007, allocations: 28 kB / 445.4 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001715/0.7025, allocations: 87.91 kB / 445.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004391/0.7029, allocations: 98.64 kB / 445.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/0.7031, allocations: 35.98 kB / 445.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002979/0.7061, allocations: 0.9676 MB / 446.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7061, allocations: 0 / 446.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00412/0.7103, allocations: 0.6687 MB / 447.3 MB, free: 132 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.007974/0.7183, allocations: 3.091 MB / 450.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006184/0.7245, allocations: 1.933 MB / 452.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/0.7246, allocations: 0 / 452.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003157/0.7277, allocations: 1.122 MB / 453.4 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003681/0.7315, allocations: 309.2 kB / 453.7 MB, free: 9.664 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04989/0.7814, allocations: 16.99 MB / 470.7 MB, free: 7.996 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0049/0.7864, allocations: 2.18 MB / 472.9 MB, free: 5.777 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002055/0.7885, allocations: 339 kB / 473.2 MB, free: 5.441 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002326/0.7908, allocations: 0.8664 MB / 474.1 MB, free: 4.578 MB / 382.1 MB Notification: Performance of SimCode: time 1.643e-06/0.7908, allocations: 0 / 474.1 MB, free: 4.578 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1257/0.9165, allocations: 37.67 MB / 0.4998 GB, free: 15.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.97/16.89, allocations: 23.8 kB / 0.4998 GB, free: 15.32 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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