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.00142/0.00142, allocations: 100.4 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.001101/0.001102, allocations: 192 kB / 18.51 MB, free: 4.508 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.282/1.282, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002037/0.002038, allocations: 47.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08901/0.09106, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.008128/0.09923, allocations: 7.199 MB / 334.6 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004136/0.1034, allocations: 2.232 MB / 336.8 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006253/0.1041, allocations: 43.81 kB / 336.9 MB, free: 10.85 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008865/0.105, allocations: 445 kB / 337.3 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002067/0.1071, allocations: 0.8703 MB / 338.2 MB, free: 9.539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007904/0.1079, allocations: 383.2 kB / 338.5 MB, free: 9.164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003245/0.1111, allocations: 3.125 MB / 341.7 MB, free: 6.027 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002869/0.114, allocations: 2.855 MB / 344.5 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001672/0.1157, allocations: 1.398 MB / 345.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001975/0.1177, allocations: 1.689 MB / 347.6 MB, free: 12 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005241/0.1182, allocations: 360 kB / 348 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009174/0.1192, allocations: 487.8 kB / 348.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007049/0.1199, allocations: 0.8959 MB / 349.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.1216, allocations: 1.61 MB / 350.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004088/0.1257, allocations: 4.615 MB / 355.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1258, allocations: 0 / 355.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1258, allocations: 0 / 355.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.073e-05/0.1258, allocations: 0 / 355.5 MB, free: 8.039 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.007959/0.1338, allocations: 3.625 MB / 359.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.1339, allocations: 12.03 kB / 359.2 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007008/0.1346, allocations: 437.1 kB / 359.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003576/0.1382, allocations: 0.6843 MB / 360.3 MB, free: 3.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003117/0.1413, allocations: 1.679 MB / 362 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.1414, allocations: 197.7 kB / 362.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004534/0.1419, allocations: 271.8 kB / 362.4 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005974/0.1479, allocations: 3.611 MB / 366 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.416e-05/0.148, allocations: 0 / 366 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002417/0.1482, allocations: 108 kB / 366.1 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-05/0.1483, allocations: 113.4 kB / 366.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005152/0.1535, allocations: 3.093 MB / 369.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1922/0.3457, allocations: 10.51 MB / 379.9 MB, free: 47.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009583/0.3554, allocations: 4.676 MB / 384.5 MB, free: 44.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002707/0.3582, allocations: 0.9528 MB / 385.5 MB, free: 44.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007449/0.3656, allocations: 2.445 MB / 387.9 MB, free: 43.33 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.227e-05/0.3657, allocations: 47.28 kB / 388 MB, free: 43.29 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 5.26e-06/0.3658, allocations: 0 / 388 MB, free: 43.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.01107/0.3768, allocations: 2.699 MB / 390.7 MB, free: 42.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/0.377, allocations: 88.44 kB / 390.8 MB, free: 42.33 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00332/0.3803, allocations: 1.378 MB / 392.1 MB, free: 41.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.3805, allocations: 47.27 kB / 392.2 MB, free: 41.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.3816, allocations: 1.167 MB / 393.4 MB, free: 41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004488/0.382, allocations: 359.2 kB / 393.7 MB, free: 40.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000549/0.3826, allocations: 219.4 kB / 393.9 MB, free: 40.62 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3828, allocations: 361.5 kB / 394.3 MB, free: 40.29 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001587/0.3844, allocations: 0.5825 MB / 394.9 MB, free: 40.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/0.3859, allocations: 0.861 MB / 395.7 MB, free: 39.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003167/0.3891, allocations: 1.483 MB / 397.2 MB, free: 38.76 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.3891, allocations: 2.219 kB / 397.2 MB, free: 38.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.005769/0.3949, allocations: 1.996 MB / 399.2 MB, free: 38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.094e-05/0.395, allocations: 9.125 kB / 399.2 MB, free: 38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.24e-05/0.395, allocations: 8.281 kB / 399.2 MB, free: 38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001549/0.3966, allocations: 408.7 kB / 399.6 MB, free: 37.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.3979, allocations: 223.2 kB / 399.8 MB, free: 37.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/0.408, allocations: 6.65 MB / 406.5 MB, free: 32.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/0.4098, allocations: 143 kB / 406.6 MB, free: 32.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.4099, allocations: 50.45 kB / 406.7 MB, free: 32.6 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.002272/0.4122, allocations: 0.8708 MB / 407.5 MB, free: 32.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004935/0.4127, allocations: 132.7 kB / 407.7 MB, free: 31.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004154/0.4169, allocations: 1.669 MB / 409.3 MB, free: 31.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/0.4169, allocations: 10.38 kB / 409.4 MB, free: 31.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/0.417, allocations: 11.42 kB / 409.4 MB, free: 31.01 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.417, allocations: 3.984 kB / 409.4 MB, free: 31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008945/0.426, allocations: 3.99 MB / 413.4 MB, free: 27.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.426, allocations: 6.312 kB / 413.4 MB, free: 27.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008035/0.4268, allocations: 135.8 kB / 413.5 MB, free: 27.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001276/0.4281, allocations: 401.4 kB / 413.9 MB, free: 27.03 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.4282, allocations: 35.97 kB / 413.9 MB, free: 27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009418/0.4377, allocations: 6.642 MB / 420.6 MB, free: 20.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4377, allocations: 4 kB / 420.6 MB, free: 20.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005242/0.443, allocations: 2.508 MB / 423.1 MB, free: 17.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005756/0.4436, allocations: 251.2 kB / 423.3 MB, free: 17.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002731/0.4439, allocations: 24 kB / 423.3 MB, free: 17.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.4451, allocations: 99.89 kB / 423.4 MB, free: 17.15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003237/0.4454, allocations: 92.67 kB / 423.5 MB, free: 17.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.941e-05/0.4456, allocations: 35.98 kB / 423.6 MB, free: 17.03 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001723/0.4473, allocations: 0.9591 MB / 424.5 MB, free: 16.06 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4473, allocations: 4.469 kB / 424.5 MB, free: 16.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002906/0.4502, allocations: 0.6766 MB / 425.2 MB, free: 15.38 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.005968/0.4562, allocations: 3.113 MB / 428.3 MB, free: 12.22 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005004/0.4613, allocations: 1.964 MB / 430.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/0.4613, allocations: 1.188 kB / 430.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002606/0.4639, allocations: 1.144 MB / 431.4 MB, free: 9.062 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/0.4666, allocations: 318.9 kB / 431.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03783/0.5045, allocations: 17.12 MB / 448.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003264/0.5078, allocations: 2.184 MB / 451 MB, free: 4.652 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001847/0.5097, allocations: 347 kB / 451.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001675/0.5114, allocations: 0.8664 MB / 452.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of SimCode: time 1.684e-06/0.5114, allocations: 0 / 452.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1296/0.641, allocations: 37.97 MB / 490.2 MB, free: 13.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.93/17.57, allocations: 7.797 kB / 490.2 MB, free: 13.34 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