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.001604/0.001604, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001526/0.001526, allocations: 195.9 kB / 18.51 MB, free: 4.5 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.388/1.388, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001659/0.001659, allocations: 48.34 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09795, allocations: 46.63 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.0103/0.1083, allocations: 7.191 MB / 334.6 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005667/0.114, allocations: 2.235 MB / 336.8 MB, free: 10.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.1152, allocations: 43.81 kB / 336.9 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.1163, allocations: 445 kB / 337.3 MB, free: 10.4 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002347/0.1187, allocations: 0.8741 MB / 338.2 MB, free: 9.523 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008403/0.1195, allocations: 379.2 kB / 338.5 MB, free: 9.152 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003579/0.1231, allocations: 3.121 MB / 341.7 MB, free: 6.02 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003212/0.1264, allocations: 2.855 MB / 344.5 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001723/0.1281, allocations: 1.41 MB / 345.9 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002071/0.1302, allocations: 1.685 MB / 347.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005033/0.1307, allocations: 356 kB / 348 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009566/0.1317, allocations: 487.8 kB / 348.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008469/0.1325, allocations: 0.8998 MB / 349.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001839/0.1344, allocations: 1.606 MB / 350.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004627/0.139, allocations: 4.611 MB / 355.6 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.139, allocations: 4 kB / 355.6 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.139, allocations: 0 / 355.6 MB, free: 8.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.24e-05/0.1391, allocations: 0 / 355.6 MB, free: 8.027 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.008381/0.1475, allocations: 3.629 MB / 359.2 MB, free: 4.336 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.1475, allocations: 15.97 kB / 359.2 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006413/0.1482, allocations: 433.1 kB / 359.6 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003528/0.1517, allocations: 0.6922 MB / 360.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002857/0.1546, allocations: 1.671 MB / 362 MB, free: 1.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001562/0.1548, allocations: 197.7 kB / 362.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004059/0.1552, allocations: 271.8 kB / 362.4 MB, free: 1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005957/0.1611, allocations: 3.615 MB / 366.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.461e-05/0.1612, allocations: 0 / 366.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002597/0.1615, allocations: 115.9 kB / 366.2 MB, free: 13.22 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001047/0.1616, allocations: 97.44 kB / 366.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005339/0.1669, allocations: 3.101 MB / 369.4 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1476/0.3146, allocations: 10.5 MB / 379.9 MB, free: 47.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004469/0.3191, allocations: 4.672 MB / 384.5 MB, free: 44.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001273/0.3204, allocations: 0.9502 MB / 385.5 MB, free: 44.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003568/0.324, allocations: 2.45 MB / 387.9 MB, free: 43.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.324, allocations: 50.38 kB / 388 MB, free: 43.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 2.745e-06/0.324, allocations: 0 / 388 MB, free: 43.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.006077/0.3301, allocations: 2.693 MB / 390.7 MB, free: 42.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.3301, allocations: 97 kB / 390.8 MB, free: 42.3 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.3318, allocations: 1.375 MB / 392.2 MB, free: 41.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.406e-05/0.3319, allocations: 50.55 kB / 392.2 MB, free: 41.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005779/0.3325, allocations: 1.167 MB / 393.4 MB, free: 40.97 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.3327, allocations: 363.6 kB / 393.7 MB, free: 40.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000321/0.333, allocations: 219 kB / 393.9 MB, free: 40.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.368e-05/0.3331, allocations: 356.9 kB / 394.3 MB, free: 40.26 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008441/0.334, allocations: 0.5779 MB / 394.9 MB, free: 40.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008318/0.3348, allocations: 0.8556 MB / 395.7 MB, free: 39.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001646/0.3365, allocations: 1.493 MB / 397.2 MB, free: 38.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.3365, allocations: 1.469 kB / 397.2 MB, free: 38.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002872/0.3394, allocations: 1.991 MB / 399.2 MB, free: 37.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.3394, allocations: 12.78 kB / 399.2 MB, free: 37.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.3394, allocations: 10.19 kB / 399.2 MB, free: 37.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008342/0.3403, allocations: 407 kB / 399.6 MB, free: 37.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007235/0.341, allocations: 218.5 kB / 399.8 MB, free: 37.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005467/0.3465, allocations: 6.648 MB / 406.5 MB, free: 32.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008188/0.3473, allocations: 147.8 kB / 406.6 MB, free: 32.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.824e-05/0.3474, allocations: 48.16 kB / 406.7 MB, free: 32.55 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.001079/0.3485, allocations: 0.8738 MB / 407.6 MB, free: 31.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/0.3487, allocations: 130.8 kB / 407.7 MB, free: 31.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002387/0.3511, allocations: 1.669 MB / 409.4 MB, free: 30.96 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.3511, allocations: 11.31 kB / 409.4 MB, free: 30.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3511, allocations: 11.38 kB / 409.4 MB, free: 30.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.3511, allocations: 3.984 kB / 409.4 MB, free: 30.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004749/0.3559, allocations: 3.989 MB / 413.4 MB, free: 27.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.3559, allocations: 3.938 kB / 413.4 MB, free: 27.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005175/0.3564, allocations: 131.8 kB / 413.5 MB, free: 27.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007774/0.3572, allocations: 401.4 kB / 413.9 MB, free: 27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.31e-05/0.3573, allocations: 37.2 kB / 413.9 MB, free: 26.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005318/0.3626, allocations: 6.644 MB / 420.6 MB, free: 20.05 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3626, allocations: 4.062 kB / 420.6 MB, free: 20.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002947/0.3656, allocations: 2.504 MB / 423.1 MB, free: 17.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.3658, allocations: 243.2 kB / 423.3 MB, free: 17.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.366, allocations: 42.5 kB / 423.4 MB, free: 17.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007267/0.3667, allocations: 84.78 kB / 423.4 MB, free: 17.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.3669, allocations: 100.7 kB / 423.5 MB, free: 17.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.528e-05/0.367, allocations: 31.98 kB / 423.6 MB, free: 17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009433/0.3679, allocations: 0.963 MB / 424.5 MB, free: 16.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3679, allocations: 0 / 424.5 MB, free: 16.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001494/0.3694, allocations: 0.6766 MB / 425.2 MB, free: 15.35 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.00316/0.3726, allocations: 3.126 MB / 428.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002727/0.3753, allocations: 1.961 MB / 430.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.3754, allocations: 8 kB / 430.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001393/0.3768, allocations: 1.133 MB / 431.4 MB, free: 9.027 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.3781, allocations: 314.8 kB / 431.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02126/0.3994, allocations: 17.12 MB / 448.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00205/0.4015, allocations: 2.18 MB / 451 MB, free: 4.617 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.4025, allocations: 343 kB / 451.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001055/0.4035, allocations: 0.8703 MB / 452.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4036, allocations: 0 / 452.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0866/0.4902, allocations: 37.96 MB / 490.2 MB, free: 13.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/11.03, allocations: 15.84 kB / 490.2 MB, free: 13.31 MB / 382.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