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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_3_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.00188/0.00188, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001797/0.001797, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.568/1.568, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.002032/0.002032, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1209, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.236/0.3569, allocations: 7.194 MB / 381.8 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005731/0.3627, allocations: 2.234 MB / 384.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.364, allocations: 49.19 kB / 384.1 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.3651, allocations: 452.6 kB / 384.6 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002656/0.3678, allocations: 0.8882 MB / 385.5 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001288/0.3691, allocations: 375.8 kB / 385.8 MB, free: 7.828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004896/0.374, allocations: 3.143 MB / 389 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003486/0.3775, allocations: 2.849 MB / 391.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002808/0.3803, allocations: 1.427 MB / 393.2 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002839/0.3832, allocations: 1.677 MB / 394.9 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007248/0.3839, allocations: 362.9 kB / 395.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001453/0.3854, allocations: 479.3 kB / 395.7 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008239/0.3862, allocations: 0.9155 MB / 396.7 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002092/0.3883, allocations: 1.6 MB / 398.3 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005463/0.3938, allocations: 4.676 MB / 402.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3938, allocations: 0 / 402.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3938, allocations: 0 / 402.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001106/0.394, allocations: 1.156 kB / 402.9 MB, free: 15.8 MB / 334.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.009938/0.4039, allocations: 3.697 MB / 406.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.404, allocations: 9.688 kB / 406.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000725/0.4047, allocations: 438.3 kB / 407.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003972/0.4087, allocations: 0.7027 MB / 407.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003523/0.4122, allocations: 1.707 MB / 409.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.4124, allocations: 195.9 kB / 409.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000454/0.4128, allocations: 266 kB / 409.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006796/0.4196, allocations: 3.617 MB / 413.5 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.773e-05/0.4197, allocations: 0 / 413.5 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002533/0.4199, allocations: 108 kB / 413.6 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001071/0.4201, allocations: 105.4 kB / 413.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005173/0.4252, allocations: 3.105 MB / 416.9 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01771/0.443, allocations: 10.4 MB / 427.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005563/0.4486, allocations: 4.686 MB / 431.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.45, allocations: 0.9576 MB / 432.9 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004404/0.4544, allocations: 2.449 MB / 435.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.4545, allocations: 51.44 kB / 435.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=104): time 2.615e-06/0.4545, allocations: 0 / 435.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=104): time 0.006291/0.4608, allocations: 2.696 MB / 438.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.4609, allocations: 105.9 kB / 438.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002073/0.463, allocations: 1.371 MB / 439.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.726e-05/0.4631, allocations: 49.64 kB / 439.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008496/0.4639, allocations: 1.199 MB / 440.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002939/0.4642, allocations: 380.8 kB / 441.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003395/0.4646, allocations: 218.9 kB / 441.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.4647, allocations: 349.9 kB / 441.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009257/0.4657, allocations: 0.5803 MB / 442.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.4668, allocations: 0.8608 MB / 443.2 MB, free: 9.957 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00205/0.4689, allocations: 1.488 MB / 444.7 MB, free: 8.352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.4689, allocations: 4 kB / 444.7 MB, free: 8.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003342/0.4722, allocations: 2 MB / 446.7 MB, free: 6.336 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.4723, allocations: 8 kB / 446.7 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.4723, allocations: 8 kB / 446.7 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.4733, allocations: 409.2 kB / 447.1 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008367/0.4742, allocations: 219.6 kB / 447.3 MB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007823/0.482, allocations: 6.66 MB / 454 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.4833, allocations: 147 kB / 454.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.16e-05/0.4833, allocations: 52.05 kB / 454.2 MB, free: 14.56 MB / 382.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.001644/0.485, allocations: 0.8604 MB / 455 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002671/0.4853, allocations: 143.1 kB / 455.2 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00294/0.4882, allocations: 1.667 MB / 456.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.4882, allocations: 15.98 kB / 456.8 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.4883, allocations: 8 kB / 456.8 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.4883, allocations: 7.984 kB / 456.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006586/0.4949, allocations: 3.981 MB / 460.8 MB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.4949, allocations: 4 kB / 460.8 MB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000573/0.4955, allocations: 135.8 kB / 461 MB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009411/0.4964, allocations: 405.8 kB / 461.4 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.27e-05/0.4965, allocations: 43.91 kB / 461.4 MB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/0.5069, allocations: 6.641 MB / 468.1 MB, free: 260 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5069, allocations: 3.938 kB / 468.1 MB, free: 256 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006419/0.5133, allocations: 2.505 MB / 470.6 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.5144, allocations: 252 kB / 470.8 MB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007386/0.5152, allocations: 32 kB / 470.8 MB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/0.5169, allocations: 95.83 kB / 470.9 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004051/0.5173, allocations: 96.67 kB / 471 MB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/0.5175, allocations: 39.92 kB / 471.1 MB, free: 13.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002855/0.5203, allocations: 0.9591 MB / 472 MB, free: 12.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5204, allocations: 0 / 472 MB, free: 12.22 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004032/0.5244, allocations: 0.6852 MB / 472.7 MB, free: 11.53 MB / 398.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.006926/0.5314, allocations: 3.119 MB / 475.8 MB, free: 8.355 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003846/0.5352, allocations: 1.824 MB / 477.7 MB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/0.5353, allocations: 0 / 477.7 MB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002904/0.5382, allocations: 1.137 MB / 478.8 MB, free: 5.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003177/0.5414, allocations: 307.1 kB / 479.1 MB, free: 5.043 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03/0.5714, allocations: 16.1 MB / 495.2 MB, free: 4.465 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002663/0.5741, allocations: 2.18 MB / 497.4 MB, free: 2.246 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001101/0.5752, allocations: 346.9 kB / 497.7 MB, free: 1.902 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/0.5765, allocations: 0.8664 MB / 498.6 MB, free: 1.035 MB / 414.1 MB Notification: Performance of SimCode: time 1.183e-06/0.5766, allocations: 0 / 498.6 MB, free: 1.035 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08211/0.6587, allocations: 38.83 MB / 0.5248 GB, free: 10.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/13.02, allocations: 19.69 kB / 0.5248 GB, free: 10.07 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > 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.csv","/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