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.001194/0.001194, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001178/0.001178, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 51.94 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.301, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.008575/0.3096, allocations: 7.259 MB / 407.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004338/0.314, allocations: 2.176 MB / 409.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000702/0.3147, allocations: 51.81 kB / 409.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009304/0.3157, allocations: 460.9 kB / 410.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00211/0.3178, allocations: 0.9015 MB / 411.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007886/0.3186, allocations: 362 kB / 411.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003386/0.322, allocations: 3.143 MB / 414.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002927/0.325, allocations: 2.887 MB / 417.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001695/0.3267, allocations: 1.421 MB / 418.9 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002169/0.3289, allocations: 1.697 MB / 420.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004865/0.3294, allocations: 360 kB / 420.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009513/0.3303, allocations: 483.9 kB / 421.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00073/0.3311, allocations: 0.8998 MB / 422.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001661/0.3327, allocations: 1.602 MB / 423.9 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004694/0.3374, allocations: 4.69 MB / 428.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3375, allocations: 0 / 428.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3375, allocations: 0 / 428.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001126/0.3376, allocations: 0 / 428.6 MB, free: 12.29 MB / 350.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.008942/0.3465, allocations: 3.699 MB / 432.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.3466, allocations: 8.031 kB / 432.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006703/0.3473, allocations: 437.1 kB / 432.7 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003537/0.3508, allocations: 0.7055 MB / 433.4 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003432/0.3543, allocations: 1.808 MB / 435.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000145/0.3544, allocations: 201.7 kB / 435.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004325/0.3549, allocations: 267.9 kB / 435.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006052/0.3609, allocations: 3.623 MB / 439.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.881e-05/0.361, allocations: 0 / 439.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002547/0.3613, allocations: 112 kB / 439.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/0.3614, allocations: 105.4 kB / 439.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005087/0.3665, allocations: 3.093 MB / 442.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01638/0.3829, allocations: 10.27 MB / 452.9 MB, free: 3.438 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005196/0.3881, allocations: 4.58 MB / 457.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001434/0.3896, allocations: 0.9414 MB / 458.4 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004514/0.3942, allocations: 2.406 MB / 460.8 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.225e-05/0.3942, allocations: 51.38 kB / 460.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 2.876e-06/0.3942, allocations: 0 / 460.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=104): time 0.006265/0.4005, allocations: 2.654 MB / 463.5 MB, free: 8.004 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.4006, allocations: 93.92 kB / 463.6 MB, free: 7.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002277/0.4029, allocations: 1.371 MB / 465 MB, free: 6.508 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.483e-05/0.403, allocations: 45.7 kB / 465 MB, free: 6.457 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009217/0.4039, allocations: 1.203 MB / 466.2 MB, free: 5.242 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003284/0.4043, allocations: 376.8 kB / 466.6 MB, free: 4.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003668/0.4046, allocations: 214.9 kB / 466.8 MB, free: 4.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.4048, allocations: 353.9 kB / 467.2 MB, free: 4.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009694/0.4058, allocations: 0.5608 MB / 467.7 MB, free: 3.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.4069, allocations: 0.8452 MB / 468.6 MB, free: 2.785 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002083/0.409, allocations: 1.461 MB / 470 MB, free: 1.215 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/0.409, allocations: 0 / 470 MB, free: 1.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003482/0.4125, allocations: 1.973 MB / 472 MB, free: 15.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.4126, allocations: 8 kB / 472 MB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/0.4126, allocations: 12.19 kB / 472 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.4136, allocations: 399.5 kB / 472.4 MB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008125/0.4144, allocations: 219.6 kB / 472.6 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007868/0.4223, allocations: 6.539 MB / 479.2 MB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009818/0.4233, allocations: 147 kB / 479.3 MB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.4234, allocations: 48 kB / 479.4 MB, free: 7.59 MB / 398.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.001467/0.4249, allocations: 0.8643 MB / 480.2 MB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003484/0.4253, allocations: 143.1 kB / 480.4 MB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00296/0.4282, allocations: 1.648 MB / 482 MB, free: 4.906 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.4283, allocations: 12 kB / 482 MB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.895e-05/0.4283, allocations: 8 kB / 482 MB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.4283, allocations: 11.91 kB / 482 MB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007027/0.4353, allocations: 3.914 MB / 486 MB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.4354, allocations: 0 / 486 MB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005606/0.4359, allocations: 135.8 kB / 486.1 MB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008925/0.4368, allocations: 389.4 kB / 486.5 MB, free: 364 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.451e-05/0.4369, allocations: 39.91 kB / 486.5 MB, free: 324 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007389/0.4443, allocations: 6.518 MB / 493 MB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.4444, allocations: 7.969 kB / 493 MB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003808/0.4482, allocations: 2.482 MB / 495.5 MB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004958/0.4487, allocations: 244 kB / 495.8 MB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002728/0.449, allocations: 28 kB / 495.8 MB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000901/0.4499, allocations: 95.84 kB / 495.9 MB, free: 6.609 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/0.4501, allocations: 92.67 kB / 496 MB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.102e-05/0.4502, allocations: 35.98 kB / 496 MB, free: 6.484 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001541/0.4517, allocations: 0.9591 MB / 497 MB, free: 5.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4517, allocations: 4 kB / 497 MB, free: 5.516 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001995/0.4537, allocations: 0.6774 MB / 497.6 MB, free: 4.836 MB / 414.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.004218/0.458, allocations: 3.1 MB / 0.489 GB, free: 1.688 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003054/0.461, allocations: 1.786 MB / 0.4907 GB, free: 15.88 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.4611, allocations: 0 / 0.4907 GB, free: 15.88 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001768/0.4628, allocations: 1.14 MB / 0.4919 GB, free: 14.71 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/0.4646, allocations: 297.8 kB / 0.4921 GB, free: 14.42 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02678/0.4913, allocations: 15.95 MB / 0.5077 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002796/0.4942, allocations: 2.188 MB / 0.5099 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000967/0.4952, allocations: 343 kB / 0.5102 GB, free: 11.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/0.4963, allocations: 0.8664 MB / 0.511 GB, free: 10.56 MB / 446.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4963, allocations: 0 / 0.511 GB, free: 10.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2953/0.7917, allocations: 38.54 MB / 0.5487 GB, free: 131.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.65, allocations: 10.69 kB / 0.5487 GB, free: 131.3 MB / 462.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